diff options
author | Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> | 2020-01-19 22:13:12 +0300 |
---|---|---|
committer | Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> | 2020-01-19 22:13:12 +0300 |
commit | 3a39e636ae09abd4d7aab6493e635a1fff1332e5 (patch) | |
tree | b218c12a9210af45dc5e33bf64379b67ddb60cf6 /theme | |
parent | d3cd422b46bed0445ab9b4662a56a829814a61bd (diff) |
Introduced Style module
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
Diffstat (limited to 'theme')
-rw-r--r-- | theme/Style/Style.qml | 41 | ||||
-rw-r--r-- | theme/Style/qmldir | 2 |
2 files changed, 43 insertions, 0 deletions
diff --git a/theme/Style/Style.qml b/theme/Style/Style.qml new file mode 100644 index 000000000..68d6df22d --- /dev/null +++ b/theme/Style/Style.qml @@ -0,0 +1,41 @@ +pragma Singleton
+
+// Minimum for this is Qt 5.5
+import QtQuick 2.5
+
+QtObject {
+ // Colors
+ property color ncBlue: "#0082c9"
+ property color ncBlueHover: "#009dd9"
+
+ // Fonts
+ // We are using pixel size because this is cross platform comparable, point size isn't
+ property int topLinePixelSize: 12
+ property int subLinePixelSize: 10
+
+ // Dimensions and sizes
+ property int trayWindowWidth: 400
+ property int trayWindowHeight: 510
+ property int trayWindowRadius: 10
+ property int trayWindowBorderWidth: 1
+ property int trayWindowHeaderHeight: 60
+
+ property int currentAccountButtonWidth: 220
+ property int currentAccountButtonRadius: 2
+ property int currentAccountLabelWidth: 128
+
+ property int accountAvatarSize: (trayWindowHeaderHeight - 16)
+ property int accountAvatarStateIndicatorSize: 16
+
+ property int accountDropDownCaretSize: 20
+ property int accountDropDownCaretMargin: 8
+
+ property int addAccountButtonHeight: 50
+
+ property int headerButtonIconSize: (trayWindowHeaderHeight / 2.2)
+
+ property int activityLabelBaseWidth: 240
+
+ // Visual behaviour
+ property bool hoverEffectsEnabled: true
+}
diff --git a/theme/Style/qmldir b/theme/Style/qmldir new file mode 100644 index 000000000..026b5b926 --- /dev/null +++ b/theme/Style/qmldir @@ -0,0 +1,2 @@ +module Style
+singleton Style 1.0 Style.qml
|