CheckBox {
id: selectItem
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
minimumHeight: Style.minimumHeightResolveConflictsDialog
title: qsTr('Solve sync conflicts')
- // TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: Style.backgroundColor
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
onClosing: function(close) {
Systray.destroyDialog(self);
close.accepted = true
Layout.fillWidth: true
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
text: qsTr('All local versions')
leftPadding: 0
Layout.fillWidth: true
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
text: qsTr('All server versions')
leftPadding: 0
title: qsTr("File details of %1 ยท %2").arg(fileDetailsPage.fileDetails.name).arg(Systray.windowTitle)
- // TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: Style.backgroundColor
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
FileDetailsView {
id: fileDetailsPage
anchors.fill: parent
active: !root.isFolderItem && !root.isEncryptedItem
visible: active
sourceComponent: CheckBox {
- // TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally.
- //
- // Additionally, we need to override the entire palette when we
- // set one palette property, as otherwise we default back to the
- // theme palette -- not the parent palette
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: Style.menuBorder
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding
indicator.width: scrollContentsColumn.indicatorItemWidth
Layout.fillWidth: true
- // TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally.
- //
- // Additionally, we need to override the entire palette when we
- // set one palette property, as otherwise we default back to the
- // theme palette -- not the parent palette
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding
indicator.width: scrollContentsColumn.indicatorItemWidth
anchors.left: parent.left
anchors.right: parent.right
- // TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally.
- //
- // Additionally, we need to override the entire palette when we
- // set one palette property, as otherwise we default back to the
- // theme palette -- not the parent palette
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: palette.dark // NOTE: Fusion theme uses darker window colour for the border of the checkbox
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding
indicator.width: scrollContentsColumn.indicatorItemWidth
Layout.fillWidth: true
- // TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally.
- //
- // Additionally, we need to override the entire palette when we
- // set one palette property, as otherwise we default back to the
- // theme palette -- not the parent palette
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: Style.menuBorder
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding
indicator.width: scrollContentsColumn.indicatorItemWidth
Layout.fillWidth: true
- // TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally.
- //
- // Additionally, we need to override the entire palette when we
- // set one palette property, as otherwise we default back to the
- // theme palette -- not the parent palette
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: Style.menuBorder
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding
indicator.width: scrollContentsColumn.indicatorItemWidth
Layout.fillWidth: true
- // TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally.
- //
- // Additionally, we need to override the entire palette when we
- // set one palette property, as otherwise we default back to the
- // theme palette -- not the parent palette
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: Style.menuBorder
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
spacing: scrollContentsColumn.indicatorSpacing
padding: scrollContentsColumn.itemPadding
indicator.width: scrollContentsColumn.indicatorItemWidth
title: qsTr("Virtual files settings")
- // TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally.
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: Style.backgroundColor
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
background: Rectangle {
color: palette.window
border.width: root.showBorder ? Style.normalBorderWidth : 0
width: root.windowWidth
height: rootBackground.height
- // TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: Style.backgroundColor
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
Component.onCompleted: {
Systray.forceWindowInit(root);
Systray.positionNotificationWindow(root);
readonly property real fontPixelSize: Style.topLinePixelSize * 1.5
readonly property real iconWidth: fontPixelSize * 2
- // TODO: Rather than setting all these palette colours manually,
- // create a custom style and do it for all components globally
- palette {
- text: Style.ncTextColor
- windowText: Style.ncTextColor
- buttonText: Style.ncTextColor
- brightText: Style.ncTextBrightColor
- highlight: Style.lightHover
- highlightedText: Style.ncTextColor
- light: Style.lightHover
- midlight: Style.ncSecondaryTextColor
- mid: Style.darkerHover
- dark: Style.menuBorder
- button: Style.buttonBackgroundColor
- window: Style.backgroundColor
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
Component.onCompleted: {
Systray.forceWindowInit(root);
x = Screen.width / 2 - width / 2
height: visible ? implicitHeight : 0\r
text: qsTr("Set status")\r
font.pixelSize: Style.topLinePixelSize\r
- palette.windowText: Style.ncTextColor\r
hoverEnabled: true\r
onClicked: showUserStatusSelector(index)\r
}\r
MenuItem {\r
text: model.isConnected ? qsTr("Log out") : qsTr("Log in")\r
font.pixelSize: Style.topLinePixelSize\r
- palette.windowText: Style.ncTextColor\r
hoverEnabled: true\r
onClicked: {\r
model.isConnected ? UserModel.logout(index) : UserModel.login(index)\r
id: removeAccountButton\r
text: qsTr("Remove account")\r
font.pixelSize: Style.topLinePixelSize\r
- palette.windowText: Style.ncTextColor\r
hoverEnabled: true\r
onClicked: {\r
UserModel.removeAccount(index)\r
height: Style.trayWindowHeight\r
flags: Systray.useNormalWindow ? Qt.Window : Qt.Dialog | Qt.FramelessWindowHint\r
\r
- // TODO: Rather than setting all these palette colours manually,\r
- // create a custom style and do it for all components globally\r
- palette {\r
- text: Style.ncTextColor\r
- windowText: Style.ncTextColor\r
- buttonText: Style.ncTextColor\r
- brightText: Style.ncTextBrightColor\r
- highlight: Style.lightHover\r
- highlightedText: Style.ncTextColor\r
- light: Style.lightHover\r
- midlight: Style.ncSecondaryTextColor\r
- mid: Style.darkerHover\r
- dark: Style.menuBorder\r
- button: Style.buttonBackgroundColor\r
- window: Style.backgroundColor\r
- base: Style.backgroundColor\r
- toolTipBase: Style.backgroundColor\r
- toolTipText: Style.ncTextColor\r
- }\r
-\r
readonly property int maxMenuHeight: Style.trayWindowHeight - Style.trayWindowHeaderHeight - 2 * Style.trayWindowBorderWidth\r
\r
Component.onCompleted: Systray.forceWindowInit(trayWindow)\r