diff options
Diffstat (limited to 'imports/Bootstrap/Bootstrap.qml')
-rw-r--r-- | imports/Bootstrap/Bootstrap.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/imports/Bootstrap/Bootstrap.qml b/imports/Bootstrap/Bootstrap.qml new file mode 100644 index 0000000..321eedf --- /dev/null +++ b/imports/Bootstrap/Bootstrap.qml @@ -0,0 +1,24 @@ +pragma Singleton + +import QtQuick 2.15 + +QtObject { + readonly property color btnColor: "#ffffff" + readonly property color btnBg: "#066ac9" + readonly property color btnActiveBg: "#0555a1" + readonly property color btnDisabledBg: "#a6066ac9" + + readonly property bool haveRoboto: Qt.platform.os === "android" + || Qt.platform.os === "linux" + || Qt.platform.os === "osx" + || Qt.platform.os === "unix" + || Qt.platform.os === "windows" + readonly property FontLoader medium: FontLoader { + source: haveRoboto ? "" : "../../Roboto/Roboto-Medium.ttf" + } + readonly property font btnFont: Qt.font({ + pointSize: 15, + family: haveRoboto ? "Roboto" : medium.name, + weight: Font.Medium + }) +} |