From 6f46e95ed7e02bc16aaf26393942383ce8667e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 11 Apr 2023 16:07:10 +0800 Subject: Qeduport now relies on Qootstrap Qeduport should now be installed to the system too. When used from app, Qeduport will refer to libqootstrap installed in the system. When used from Designer / Design Studio, Qeduport will refer to the non attached property QML version instead. --- imports/Bootstrap/Bootstrap.qml | 14 ++++++++++++++ imports/Bootstrap/qmldir | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 imports/Bootstrap/Bootstrap.qml create mode 100644 imports/Bootstrap/qmldir (limited to 'imports/Bootstrap') diff --git a/imports/Bootstrap/Bootstrap.qml b/imports/Bootstrap/Bootstrap.qml new file mode 100644 index 0000000..d31cfb0 --- /dev/null +++ b/imports/Bootstrap/Bootstrap.qml @@ -0,0 +1,14 @@ +pragma Singleton +import QtQuick 2.15 + +QtObject { + enum Mode { + Light, + Dark + } + property int mode: Bootstrap.Mode.Light + + readonly property color bodyColor: mode ? "#a1a1a8" : "#747579" + readonly property color bodyBg: mode ? "#222529" : "#fff" + readonly property color borderColor: mode ? "#12ffffff" : "#eff1f2" +} diff --git a/imports/Bootstrap/qmldir b/imports/Bootstrap/qmldir new file mode 100644 index 0000000..8e5154b --- /dev/null +++ b/imports/Bootstrap/qmldir @@ -0,0 +1,2 @@ +module Eduport +singleton Bootstrap 5.3 Bootstrap.qml -- cgit v1.2.3