leftPadding: 0
spacing: 0
- // 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the checkbox
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
onToggled: function() {
selectedChanged()
}
import com.nextcloud.desktopclient 1.0
import "./tray"
-QtWindow.Window {
+ApplicationWindow {
id: conflictsDialog
required property var allConflicts
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
- // 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.ncTextColor // 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
- // 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.ncTextColor // 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
DialogButtonBox {
Layout.fillWidth: true
- // 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.backgroundColor
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
Button {
text: qsTr("Resolve conflicts")
DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole
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
padding: Style.standardSpacing * 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.backgroundColor
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
background: Rectangle {
color: Style.backgroundColor
visible: root.backgroundsVisible
sourceComponent: CheckBox {
// 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the checkbox
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
+ palette.window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the checkbox
spacing: moreMenu.indicatorSpacing
padding: moreMenu.itemPadding
indicator.width: moreMenu.indicatorItemWidth
// 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the checkbox
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
+ palette.window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the checkbox
spacing: moreMenu.indicatorSpacing
padding: moreMenu.itemPadding
// 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the checkbox
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
+ palette.window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the checkbox
spacing: moreMenu.indicatorSpacing
padding: moreMenu.itemPadding
// 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the checkbox
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
+ palette.window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the checkbox
spacing: moreMenu.indicatorSpacing
padding: moreMenu.itemPadding
// 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the checkbox
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
+ palette.window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the checkbox
spacing: moreMenu.indicatorSpacing
padding: moreMenu.itemPadding
modal: true
closePolicy: Popup.NoAutoClose
- // 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.backgroundColor
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
visible: false
onAccepted: {
readonly property bool isTalkReplyPossible: model.conversationToken !== ""
property bool isTalkReplyOptionVisible: model.messageSent !== ""
- // 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.backgroundColor
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
padding: Style.standardSpacing
Accessible.role: Accessible.ListItem
signal openFile(string filePath)
signal activityItemClicked(int index)
- // 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.backgroundColor
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
contentWidth: availableWidth
padding: 0
focus: false
import QtQuick.Controls 2.15
import QtGraphicalEffects 1.15
-Window {
+ApplicationWindow {
id: root
color: "transparent"
flags: Qt.Dialog | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint
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);
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
-Window {
+ApplicationWindow {
id: root
flags: Qt.Dialog | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint
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
// 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.lightHover
- mid: Style.ncSecondaryTextColor
- dark: Style.menuBorder
- button: Style.menuBorder
- window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the progress bar
- base: Style.backgroundColor
- toolTipBase: Style.backgroundColor
- toolTipText: Style.ncTextColor
- }
-
+ palette.window: Style.ncTextColor // NOTE: Fusion theme uses darker window colour for the border of the progress bar
value: syncStatus.syncProgress
}
}
color: "transparent"\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
height: Math.min(implicitHeight, maxMenuHeight)\r
closePolicy: Menu.CloseOnPressOutsideParent | Menu.CloseOnEscape\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.lightHover\r
- mid: Style.ncSecondaryTextColor\r
- dark: Style.menuBorder\r
- button: Style.menuBorder\r
- window: Style.backgroundColor\r
- base: Style.backgroundColor\r
- toolTipBase: Style.backgroundColor\r
- toolTipText: Style.ncTextColor\r
- }\r
-\r
background: Rectangle {\r
border.color: Style.menuBorder\r
color: Style.backgroundColor\r
height: implicitHeight + y > Style.trayWindowHeight ? Style.trayWindowHeight - y : implicitHeight\r
closePolicy: Menu.CloseOnPressOutsideParent | Menu.CloseOnEscape\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.lightHover\r
- mid: Style.ncSecondaryTextColor\r
- dark: Style.menuBorder\r
- button: Style.menuBorder\r
- window: Style.backgroundColor\r
- base: Style.backgroundColor\r
- toolTipBase: Style.backgroundColor\r
- toolTipText: Style.ncTextColor\r
- }\r
-\r
background: Rectangle {\r
border.color: Style.menuBorder\r
color: Style.backgroundColor\r