2020-01-19 22:13:12 +03:00
|
|
|
pragma Singleton
|
|
|
|
|
|
|
|
// Minimum for this is Qt 5.5
|
|
|
|
import QtQuick 2.5
|
|
|
|
|
2020-10-21 14:46:51 +03:00
|
|
|
import com.nextcloud.desktopclient 1.0
|
|
|
|
|
2020-01-19 22:13:12 +03:00
|
|
|
QtObject {
|
|
|
|
// Colors
|
2020-10-21 14:46:51 +03:00
|
|
|
property color ncBlue: Theme.wizardHeaderBackgroundColor
|
|
|
|
property color ncTextColor: Theme.wizardHeaderTitleColor
|
2020-04-25 11:17:53 +03:00
|
|
|
property color lightHover: "#f7f7f7"
|
2020-06-19 23:38:34 +03:00
|
|
|
property color menuBorder: "#bdbdbd"
|
2020-01-19 22:13:12 +03:00
|
|
|
|
|
|
|
// 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
|
2021-06-21 21:50:49 +03:00
|
|
|
property int trayWindowMouseAreaWidth: 396
|
2020-01-19 22:13:12 +03:00
|
|
|
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
|
|
|
|
|
2020-11-23 08:45:26 +03:00
|
|
|
property url stateOnlineImageSource: Theme.stateOnlineImageSource
|
|
|
|
property url stateOfflineImageSource: Theme.stateOfflineImageSource
|
|
|
|
|
2020-01-19 22:13:12 +03:00
|
|
|
property int accountAvatarSize: (trayWindowHeaderHeight - 16)
|
|
|
|
property int accountAvatarStateIndicatorSize: 16
|
2021-03-16 22:24:11 +03:00
|
|
|
property int folderStateIndicatorSize: 16
|
2020-01-19 22:40:49 +03:00
|
|
|
property int accountLabelWidth: 128
|
2020-01-19 22:13:12 +03:00
|
|
|
|
|
|
|
property int accountDropDownCaretSize: 20
|
|
|
|
property int accountDropDownCaretMargin: 8
|
|
|
|
|
|
|
|
property int addAccountButtonHeight: 50
|
|
|
|
|
2020-06-15 20:05:21 +03:00
|
|
|
property int headerButtonIconSize: 32
|
2020-01-19 22:13:12 +03:00
|
|
|
|
|
|
|
property int activityLabelBaseWidth: 240
|
2021-05-18 21:45:34 +03:00
|
|
|
|
|
|
|
property int userStatusEmojiSize: 8
|
2021-05-18 23:28:59 +03:00
|
|
|
property int userStatusSpacing: 6
|
|
|
|
property int userStatusAnchorsMargin: 2
|
|
|
|
property int accountServerAnchorsMargin: 10
|
|
|
|
property int accountLabelsSpacing: 4
|
|
|
|
property int accountLabelsAnchorsMargin: 7
|
2021-05-25 23:17:33 +03:00
|
|
|
property int accountLabelsLayoutMargin: 12
|
|
|
|
property int accountLabelsLayoutTopMargin: 10
|
2020-01-19 22:13:12 +03:00
|
|
|
|
|
|
|
// Visual behaviour
|
|
|
|
property bool hoverEffectsEnabled: true
|
|
|
|
}
|