Scaling: many improvements and fixes
- radius are not pixels, they should not be scaled - use "screen" instead of "Screen" which helps a lot in some places
This commit is contained in:
parent
eda65a9948
commit
d3be5b760b
43 changed files with 532 additions and 538 deletions
11
Bar/Bar.qml
11
Bar/Bar.qml
|
|
@ -47,19 +47,20 @@ Scope {
|
||||||
id: barBackground
|
id: barBackground
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 36 * Theme.scale(Screen)
|
height: 36 * Theme.scale(panel.screen)
|
||||||
color: Theme.backgroundPrimary
|
color: Theme.backgroundPrimary
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
id: leftWidgetsRow
|
id: leftWidgetsRow
|
||||||
|
|
||||||
anchors.verticalCenter: barBackground.verticalCenter
|
anchors.verticalCenter: barBackground.verticalCenter
|
||||||
anchors.left: barBackground.left
|
anchors.left: barBackground.left
|
||||||
anchors.leftMargin: 18 * Theme.scale(Screen)
|
anchors.leftMargin: 18 * Theme.scale(panel.screen)
|
||||||
spacing: 12 * Theme.scale(Screen)
|
spacing: 12 * Theme.scale(panel.screen)
|
||||||
|
|
||||||
SystemInfo {
|
SystemInfo {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -92,8 +93,8 @@ Scope {
|
||||||
|
|
||||||
anchors.verticalCenter: barBackground.verticalCenter
|
anchors.verticalCenter: barBackground.verticalCenter
|
||||||
anchors.right: barBackground.right
|
anchors.right: barBackground.right
|
||||||
anchors.rightMargin: 18 * Theme.scale(Screen)
|
anchors.rightMargin: 18 * Theme.scale(panel.screen)
|
||||||
spacing: 12 * Theme.scale(Screen)
|
spacing: 12 * Theme.scale(panel.screen)
|
||||||
|
|
||||||
SystemTray {
|
SystemTray {
|
||||||
id: systemTrayModule
|
id: systemTrayModule
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ PanelWindow {
|
||||||
Text {
|
Text {
|
||||||
id: activeWindowTitle
|
id: activeWindowTitle
|
||||||
text: ToplevelManager?.activeToplevel?.title && ToplevelManager?.activeToplevel?.title.length > 60 ? ToplevelManager?.activeToplevel?.title.substring(0, 60) + "..." : ToplevelManager?.activeToplevel?.title || ""
|
text: ToplevelManager?.activeToplevel?.title && ToplevelManager?.activeToplevel?.title.length > 60 ? ToplevelManager?.activeToplevel?.title.substring(0, 60) + "..." : ToplevelManager?.activeToplevel?.title || ""
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
anchors.left: icon.right
|
anchors.left: icon.right
|
||||||
anchors.leftMargin: Settings.settings.showActiveWindowIcon ? 4 : 6
|
anchors.leftMargin: Settings.settings.showActiveWindowIcon ? 4 : 6
|
||||||
|
|
|
||||||
|
|
@ -532,7 +532,7 @@ PanelWithOverlay {
|
||||||
Text {
|
Text {
|
||||||
text: "search"
|
text: "search"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: Theme.fontSizeHeader * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeHeader * Theme.scale(screen)
|
||||||
color: searchField.activeFocus ? Theme.accentPrimary : Theme.textSecondary
|
color: searchField.activeFocus ? Theme.accentPrimary : Theme.textSecondary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
@ -545,7 +545,7 @@ PanelWithOverlay {
|
||||||
placeholderTextColor: Theme.textSecondary
|
placeholderTextColor: Theme.textSecondary
|
||||||
background: null
|
background: null
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: Theme.fontSizeBody * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeBody * Theme.scale(screen)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
onTextChanged: root.updateFilter()
|
onTextChanged: root.updateFilter()
|
||||||
|
|
@ -689,7 +689,7 @@ PanelWithOverlay {
|
||||||
visible: !modelData.isCalculator && !modelData.isClipboard && !modelData.isCommand && !parent.iconLoaded && modelData.type !== 'image'
|
visible: !modelData.isCalculator && !modelData.isClipboard && !modelData.isCommand && !parent.iconLoaded && modelData.type !== 'image'
|
||||||
text: "broken_image"
|
text: "broken_image"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: Theme.fontSizeHeader * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeHeader * Theme.scale(screen)
|
||||||
color: Theme.accentPrimary
|
color: Theme.accentPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -702,7 +702,7 @@ PanelWithOverlay {
|
||||||
text: modelData.name
|
text: modelData.name
|
||||||
color: (hovered || isSelected) ? Theme.onAccent : (appLauncherPanel.isPinned(modelData) ? Theme.textPrimary : Theme.textPrimary)
|
color: (hovered || isSelected) ? Theme.onAccent : (appLauncherPanel.isPinned(modelData) ? Theme.textPrimary : Theme.textPrimary)
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: Theme.fontSizeSmall * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeSmall * Theme.scale(screen)
|
||||||
font.bold: hovered || isSelected
|
font.bold: hovered || isSelected
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -716,7 +716,7 @@ PanelWithOverlay {
|
||||||
(modelData.comment || modelData.genericName || "No description available")
|
(modelData.comment || modelData.genericName || "No description available")
|
||||||
color: (hovered || isSelected) ? Theme.onAccent : (appLauncherPanel.isPinned(modelData) ? Theme.textSecondary : Theme.textSecondary)
|
color: (hovered || isSelected) ? Theme.onAccent : (appLauncherPanel.isPinned(modelData) ? Theme.textSecondary : Theme.textSecondary)
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: Theme.fontSizeCaption * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeCaption * Theme.scale(screen)
|
||||||
font.italic: !(modelData.comment || modelData.genericName)
|
font.italic: !(modelData.comment || modelData.genericName)
|
||||||
opacity: modelData.isClipboard ? 0.8 : modelData.isCommand ? 0.9 : ((modelData.comment || modelData.genericName) ? 1.0 : 0.6)
|
opacity: modelData.isClipboard ? 0.8 : modelData.isCommand ? 0.9 : ((modelData.comment || modelData.genericName) ? 1.0 : 0.6)
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -734,7 +734,7 @@ PanelWithOverlay {
|
||||||
Text {
|
Text {
|
||||||
text: modelData.isCalculator ? "content_copy" : "chevron_right"
|
text: modelData.isCalculator ? "content_copy" : "chevron_right"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: Theme.fontSizeBody * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeBody * Theme.scale(screen)
|
||||||
color: (hovered || isSelected)
|
color: (hovered || isSelected)
|
||||||
? Theme.onAccent
|
? Theme.onAccent
|
||||||
: (appLauncherPanel.isPinned(modelData) ? Theme.textPrimary : Theme.textSecondary)
|
: (appLauncherPanel.isPinned(modelData) ? Theme.textPrimary : Theme.textSecondary)
|
||||||
|
|
@ -818,7 +818,7 @@ PanelWithOverlay {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "star"
|
text: "star"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: Theme.fontSizeSmall * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeSmall * Theme.scale(screen)
|
||||||
color: (parent.MouseArea.containsMouse || hovered || isSelected)
|
color: (parent.MouseArea.containsMouse || hovered || isSelected)
|
||||||
? Theme.onAccent
|
? Theme.onAccent
|
||||||
: (appLauncherPanel.isPinned(modelData) ? Theme.textPrimary : Theme.textDisabled)
|
: (appLauncherPanel.isPinned(modelData) ? Theme.textPrimary : Theme.textDisabled)
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ PanelWithOverlay {
|
||||||
Text {
|
Text {
|
||||||
text: "volume_up"
|
text: "volume_up"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: (Pipewire.defaultAudioSink && Pipewire.defaultAudioSink.id === modelData.id) ? Theme.accentPrimary : Theme.textPrimary
|
color: (Pipewire.defaultAudioSink && Pipewire.defaultAudioSink.id === modelData.id) ? Theme.accentPrimary : Theme.textPrimary
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
@ -168,7 +168,7 @@ PanelWithOverlay {
|
||||||
Text {
|
Text {
|
||||||
text: modelData.nickname || modelData.description || modelData.name
|
text: modelData.nickname || modelData.description || modelData.name
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: (Pipewire.defaultAudioSink && Pipewire.defaultAudioSink.id === modelData.id) ? Theme.accentPrimary : Theme.textPrimary
|
color: (Pipewire.defaultAudioSink && Pipewire.defaultAudioSink.id === modelData.id) ? Theme.accentPrimary : Theme.textPrimary
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
|
|
@ -177,7 +177,7 @@ PanelWithOverlay {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: modelData.description !== modelData.nickname ? modelData.description : ""
|
text: modelData.description !== modelData.nickname ? modelData.description : ""
|
||||||
font.pixelSize: 10 * Theme.scale(Screen)
|
font.pixelSize: 10 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
|
|
@ -200,7 +200,7 @@ PanelWithOverlay {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "Set"
|
text: "Set"
|
||||||
color: Theme.onAccent
|
color: Theme.onAccent
|
||||||
font.pixelSize: 10 * Theme.scale(Screen)
|
font.pixelSize: 10 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -216,7 +216,7 @@ PanelWithOverlay {
|
||||||
text: "(Current)"
|
text: "(Current)"
|
||||||
visible: Pipewire.defaultAudioSink && Pipewire.defaultAudioSink.id === modelData.id
|
visible: Pipewire.defaultAudioSink && Pipewire.defaultAudioSink.id === modelData.id
|
||||||
color: Theme.accentPrimary
|
color: Theme.accentPrimary
|
||||||
font.pixelSize: 10 * Theme.scale(Screen)
|
font.pixelSize: 10 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -267,7 +267,7 @@ PanelWithOverlay {
|
||||||
Text {
|
Text {
|
||||||
text: "mic"
|
text: "mic"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: (Pipewire.defaultAudioSource && Pipewire.defaultAudioSource.id === modelData.id) ? Theme.accentPrimary : Theme.textPrimary
|
color: (Pipewire.defaultAudioSource && Pipewire.defaultAudioSource.id === modelData.id) ? Theme.accentPrimary : Theme.textPrimary
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
@ -280,7 +280,7 @@ PanelWithOverlay {
|
||||||
Text {
|
Text {
|
||||||
text: modelData.nickname || modelData.description || modelData.name
|
text: modelData.nickname || modelData.description || modelData.name
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: (Pipewire.defaultAudioSource && Pipewire.defaultAudioSource.id === modelData.id) ? Theme.accentPrimary : Theme.textPrimary
|
color: (Pipewire.defaultAudioSource && Pipewire.defaultAudioSource.id === modelData.id) ? Theme.accentPrimary : Theme.textPrimary
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
|
|
@ -289,7 +289,7 @@ PanelWithOverlay {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: modelData.description !== modelData.nickname ? modelData.description : ""
|
text: modelData.description !== modelData.nickname ? modelData.description : ""
|
||||||
font.pixelSize: 10 * Theme.scale(Screen)
|
font.pixelSize: 10 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
|
|
@ -312,7 +312,7 @@ PanelWithOverlay {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "Set"
|
text: "Set"
|
||||||
color: Theme.onAccent
|
color: Theme.onAccent
|
||||||
font.pixelSize: 10 * Theme.scale(Screen)
|
font.pixelSize: 10 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -328,7 +328,7 @@ PanelWithOverlay {
|
||||||
text: "(Current)"
|
text: "(Current)"
|
||||||
visible: Pipewire.defaultAudioSource && Pipewire.defaultAudioSource.id === modelData.id
|
visible: Pipewire.defaultAudioSource && Pipewire.defaultAudioSource.id === modelData.id
|
||||||
color: Theme.accentPrimary
|
color: Theme.accentPrimary
|
||||||
font.pixelSize: 10 * Theme.scale(Screen)
|
font.pixelSize: 10 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ PanelWithOverlay {
|
||||||
text: calendar.title
|
text: calendar.title
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
opacity: 0.7
|
opacity: 0.7
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
@ -78,7 +78,7 @@ PanelWithOverlay {
|
||||||
text: shortName
|
text: shortName
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
opacity: 0.8
|
opacity: 0.8
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.bold: true
|
font.bold: true
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
@ -161,7 +161,7 @@ PanelWithOverlay {
|
||||||
text: model.day
|
text: model.day
|
||||||
color: model.today ? Theme.onAccent : Theme.textPrimary
|
color: model.today ? Theme.onAccent : Theme.textPrimary
|
||||||
opacity: model.month === calendar.month ? (mouseArea2.containsMouse ? 1 : 0.7) : 0.3
|
opacity: model.month === calendar.month ? (mouseArea2.containsMouse ? 1 : 0.7) : 0.3
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.bold: model.today ? true : false
|
font.bold: model.today ? true : false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ Rectangle {
|
||||||
text: Time.time
|
text: Time.time
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
font.pixelSize: Theme.fontSizeSmall * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeSmall * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ PopupWindow {
|
||||||
color: (modelData?.enabled ?? true) ? bg.hoverTextColor : Theme.textDisabled;
|
color: (modelData?.enabled ?? true) ? bg.hoverTextColor : Theme.textDisabled;
|
||||||
text: modelData?.text ?? "";
|
text: modelData?.text ?? "";
|
||||||
font.family: Theme.fontFamily;
|
font.family: Theme.fontFamily;
|
||||||
font.pixelSize: Theme.fontSizeSmall * Theme.scale(Screen);
|
font.pixelSize: Theme.fontSizeSmall * Theme.scale(screen);
|
||||||
verticalAlignment: Text.AlignVCenter;
|
verticalAlignment: Text.AlignVCenter;
|
||||||
elide: Text.ElideRight;
|
elide: Text.ElideRight;
|
||||||
}
|
}
|
||||||
|
|
@ -145,7 +145,7 @@ PopupWindow {
|
||||||
// Material Symbols Outlined chevron right for submenu
|
// Material Symbols Outlined chevron right for submenu
|
||||||
text: modelData?.hasChildren ? "menu" : "";
|
text: modelData?.hasChildren ? "menu" : "";
|
||||||
font.family: "Material Symbols Outlined";
|
font.family: "Material Symbols Outlined";
|
||||||
font.pixelSize: 18 * Theme.scale(Screen);
|
font.pixelSize: 18 * Theme.scale(screen);
|
||||||
verticalAlignment: Text.AlignVCenter;
|
verticalAlignment: Text.AlignVCenter;
|
||||||
visible: modelData?.hasChildren ?? false;
|
visible: modelData?.hasChildren ?? false;
|
||||||
color: Theme.textPrimary;
|
color: Theme.textPrimary;
|
||||||
|
|
@ -362,7 +362,7 @@ PopupWindow {
|
||||||
color: (modelData?.enabled ?? true) ? bg.hoverTextColor : Theme.textDisabled;
|
color: (modelData?.enabled ?? true) ? bg.hoverTextColor : Theme.textDisabled;
|
||||||
text: modelData?.text ?? "";
|
text: modelData?.text ?? "";
|
||||||
font.family: Theme.fontFamily;
|
font.family: Theme.fontFamily;
|
||||||
font.pixelSize: Theme.fontSizeSmall * Theme.scale(Screen);
|
font.pixelSize: Theme.fontSizeSmall * Theme.scale(screen);
|
||||||
verticalAlignment: Text.AlignVCenter;
|
verticalAlignment: Text.AlignVCenter;
|
||||||
elide: Text.ElideRight;
|
elide: Text.ElideRight;
|
||||||
}
|
}
|
||||||
|
|
@ -378,7 +378,7 @@ PopupWindow {
|
||||||
Text {
|
Text {
|
||||||
text: modelData?.hasChildren ? "\uE5CC" : "";
|
text: modelData?.hasChildren ? "\uE5CC" : "";
|
||||||
font.family: "Material Symbols Outlined";
|
font.family: "Material Symbols Outlined";
|
||||||
font.pixelSize: 18 * Theme.scale(Screen);
|
font.pixelSize: 18 * Theme.scale(screen);
|
||||||
verticalAlignment: Text.AlignVCenter;
|
verticalAlignment: Text.AlignVCenter;
|
||||||
visible: modelData?.hasChildren ?? false;
|
visible: modelData?.hasChildren ?? false;
|
||||||
color: Theme.textPrimary;
|
color: Theme.textPrimary;
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ Item {
|
||||||
width: 20 * Theme.scale(Screen)
|
width: 20 * Theme.scale(Screen)
|
||||||
height: 20 * Theme.scale(Screen)
|
height: 20 * Theme.scale(Screen)
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
radius: 12 * Theme.scale(Screen) // circle
|
radius: 12 // circle
|
||||||
color: Qt.darker(Theme.surface, 1.1)
|
color: Qt.darker(Theme.surface, 1.1)
|
||||||
border.color: Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.3)
|
border.color: Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.3)
|
||||||
border.width: 1
|
border.width: 1
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ Item {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "settings"
|
text: "settings"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: mouseArea.containsMouse ? Theme.accentPrimary : Theme.textPrimary
|
color: mouseArea.containsMouse ? Theme.accentPrimary : Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ Row {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: 16 * Theme.scale(Screen)
|
width: 16 * Theme.scale(Screen)
|
||||||
height: 16 * Theme.scale(Screen)
|
height: 16 * Theme.scale(Screen)
|
||||||
radius: 6 * Theme.scale(Screen)
|
radius: 6
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ Item {
|
||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
height: 36 * Theme.scale(Screen)
|
height: 36 * Theme.scale(screen)
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
localWorkspaces.clear();
|
localWorkspaces.clear();
|
||||||
|
|
@ -115,14 +115,14 @@ Item {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: workspaceBackground
|
id: workspaceBackground
|
||||||
width: parent.width - 15 * Theme.scale(Screen)
|
width: parent.width - 15 * Theme.scale(screen)
|
||||||
height: 26 * Theme.scale(Screen)
|
height: 26 * Theme.scale(screen)
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
radius: 12 * Theme.scale(Screen)
|
radius: 12
|
||||||
color: Theme.surfaceVariant
|
color: Theme.surfaceVariant
|
||||||
border.color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.1)
|
border.color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.1)
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
layer.effect: MultiEffect {
|
layer.effect: MultiEffect {
|
||||||
shadowColor: "black"
|
shadowColor: "black"
|
||||||
|
|
@ -145,7 +145,7 @@ Item {
|
||||||
model: localWorkspaces
|
model: localWorkspaces
|
||||||
Item {
|
Item {
|
||||||
id: workspacePillContainer
|
id: workspacePillContainer
|
||||||
height: 12 * Theme.scale(Screen)
|
height: 12 * Theme.scale(screen)
|
||||||
width: {
|
width: {
|
||||||
if (model.isFocused)
|
if (model.isFocused)
|
||||||
return 44;
|
return 44;
|
||||||
|
|
@ -245,12 +245,12 @@ Item {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: pillBurst
|
id: pillBurst
|
||||||
anchors.centerIn: workspacePillContainer
|
anchors.centerIn: workspacePillContainer
|
||||||
width: workspacePillContainer.width + 18 * root.masterProgress * Theme.scale(Screen)
|
width: workspacePillContainer.width + 18 * root.masterProgress * Theme.scale(screen)
|
||||||
height: workspacePillContainer.height + 18 * root.masterProgress * Theme.scale(Screen)
|
height: workspacePillContainer.height + 18 * root.masterProgress * Theme.scale(screen)
|
||||||
radius: width / 2
|
radius: width / 2
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.color: root.effectColor
|
border.color: root.effectColor
|
||||||
border.width: (2 + 6 * (1.0 - root.masterProgress)) * Theme.scale(Screen)
|
border.width: (2 + 6 * (1.0 - root.masterProgress)) * Theme.scale(screen)
|
||||||
opacity: root.effectsActive && model.isFocused ? (1.0 - root.masterProgress) * 0.7 : 0
|
opacity: root.effectsActive && model.isFocused ? (1.0 - root.masterProgress) * 0.7 : 0
|
||||||
visible: root.effectsActive && model.isFocused
|
visible: root.effectsActive && model.isFocused
|
||||||
z: 1
|
z: 1
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ Item {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "person"
|
text: "person"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: Theme.onAccent
|
color: Theme.onAccent
|
||||||
visible: Settings.settings.profileImage === undefined || Settings.settings.profileImage === ""
|
visible: Settings.settings.profileImage === undefined || Settings.settings.profileImage === ""
|
||||||
z: 0
|
z: 0
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ Rectangle {
|
||||||
property int size: 80
|
property int size: 80
|
||||||
property color backgroundColor: Theme.surfaceVariant
|
property color backgroundColor: Theme.surfaceVariant
|
||||||
property color progressColor: Theme.accentPrimary
|
property color progressColor: Theme.accentPrimary
|
||||||
property int strokeWidth: 6 * Theme.scale(Screen)
|
property int strokeWidth: 6 * Theme.scale(screen)
|
||||||
property bool showText: true
|
property bool showText: true
|
||||||
property string units: "%"
|
property string units: "%"
|
||||||
property string text: Math.round(progress * 100) + units
|
property string text: Math.round(progress * 100) + units
|
||||||
property int textSize: 10 * Theme.scale(Screen)
|
property int textSize: 10 * Theme.scale(screen)
|
||||||
property color textColor: Theme.textPrimary
|
property color textColor: Theme.textPrimary
|
||||||
|
|
||||||
// Notch properties
|
// Notch properties
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,11 @@ Shape {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property string position: "topleft" // Corner position: topleft/topright/bottomleft/bottomright
|
property string position: "topleft" // Corner position: topleft/topright/bottomleft/bottomright
|
||||||
property real size: 1.0 * Theme.scale(Screen) // Scale multiplier for entire corner
|
property real size: 1.0 * Theme.scale(screen) // Scale multiplier for entire corner
|
||||||
property int concaveWidth: 100 * size
|
property int concaveWidth: 100 * size
|
||||||
property int concaveHeight: 60 * size
|
property int concaveHeight: 60 * size
|
||||||
property int offsetX: -20 * Theme.scale(Screen)
|
property int offsetX: -20 * Theme.scale(screen)
|
||||||
property int offsetY: -20 * Theme.scale(Screen)
|
property int offsetY: -20 * Theme.scale(screen)
|
||||||
property color fillColor: Theme.accentPrimary
|
property color fillColor: Theme.accentPrimary
|
||||||
property int arcRadius: 20 * size
|
property int arcRadius: 20 * size
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ MouseArea {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: 8 * Theme.scale(Screen)
|
radius: 8
|
||||||
color: root.hovering ? Theme.accentPrimary : "transparent"
|
color: root.hovering ? Theme.accentPrimary : "transparent"
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
|
|
@ -27,7 +27,7 @@ MouseArea {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: root.icon
|
text: root.icon
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: root.hovering ? Theme.onAccent : Theme.textPrimary
|
color: root.hovering ? Theme.onAccent : Theme.textPrimary
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Item {
|
||||||
property bool running: false
|
property bool running: false
|
||||||
property color color: "white"
|
property color color: "white"
|
||||||
property int size: 16
|
property int size: 16
|
||||||
property int strokeWidth: 2 * Theme.scale(Screen)
|
property int strokeWidth: 2 * Theme.scale(screen)
|
||||||
property int duration: 1000
|
property int duration: 1000
|
||||||
|
|
||||||
implicitWidth: size
|
implicitWidth: size
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,8 @@ Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _showNow() {
|
function _showNow() {
|
||||||
width = Math.max(50 * Theme.scale(Screen), tooltipText.implicitWidth + 24 * Theme.scale(Screen))
|
width = Math.max(50 * Theme.scale(screen), tooltipText.implicitWidth + 24 * Theme.scale(screen))
|
||||||
height = Math.max(50 * Theme.scale(Screen), tooltipText.implicitHeight + 16 * Theme.scale(Screen))
|
height = Math.max(50 * Theme.scale(screen), tooltipText.implicitHeight + 16 * Theme.scale(screen))
|
||||||
|
|
||||||
if (!targetItem) return;
|
if (!targetItem) return;
|
||||||
|
|
||||||
|
|
@ -75,10 +75,10 @@ Window {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: 20 * Theme.scale(Screen)
|
radius: 18
|
||||||
color: Theme.backgroundTertiary || "#222"
|
color: Theme.backgroundTertiary || "#222"
|
||||||
border.color: Theme.outline || "#444"
|
border.color: Theme.outline || "#444"
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
opacity: 0.97
|
opacity: 0.97
|
||||||
z: 1
|
z: 1
|
||||||
}
|
}
|
||||||
|
|
@ -88,7 +88,7 @@ Window {
|
||||||
text: tooltipWindow.text
|
text: tooltipWindow.text
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: Theme.fontSizeSmall * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeSmall * Theme.scale(screen)
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
|
@ -105,7 +105,7 @@ Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
width = Math.max(minimumWidth * Theme.scale(Screen), tooltipText.implicitWidth + 24 * Theme.scale(Screen));
|
width = Math.max(minimumWidth * Theme.scale(screen), tooltipText.implicitWidth + 24 * Theme.scale(screen));
|
||||||
height = Math.max(minimumHeight * Theme.scale(Screen), tooltipText.implicitHeight + 16 * Theme.scale(Screen));
|
height = Math.max(minimumHeight * Theme.scale(screen), tooltipText.implicitHeight + 16 * Theme.scale(screen));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -17,8 +17,8 @@ Item {
|
||||||
model: root.tabsModel
|
model: root.tabsModel
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
id: tabWrapper
|
id: tabWrapper
|
||||||
implicitHeight: tab.height * Theme.scale(Screen)
|
implicitHeight: tab.height * Theme.scale(screen)
|
||||||
implicitWidth: 56 * Theme.scale(Screen)
|
implicitWidth: 56 * Theme.scale(screen)
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
property bool hovered: false
|
property bool hovered: false
|
||||||
|
|
@ -48,7 +48,7 @@ Item {
|
||||||
Text {
|
Text {
|
||||||
text: modelData.icon
|
text: modelData.icon
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 22 * Theme.scale(Screen)
|
font.pixelSize: 22 * Theme.scale(screen)
|
||||||
color: index === root.currentIndex ? (Theme ? Theme.accentPrimary : "#7C3AED") : tabWrapper.hovered ? (Theme ? Theme.accentPrimary : "#7C3AED") : (Theme ? Theme.textSecondary : "#444")
|
color: index === root.currentIndex ? (Theme ? Theme.accentPrimary : "#7C3AED") : tabWrapper.hovered ? (Theme ? Theme.accentPrimary : "#7C3AED") : (Theme ? Theme.textSecondary : "#444")
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
}
|
}
|
||||||
|
|
@ -56,7 +56,7 @@ Item {
|
||||||
// Label
|
// Label
|
||||||
Text {
|
Text {
|
||||||
text: modelData.label
|
text: modelData.label
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
font.bold: index === root.currentIndex
|
font.bold: index === root.currentIndex
|
||||||
color: index === root.currentIndex ? (Theme ? Theme.accentPrimary : "#7C3AED") : tabWrapper.hovered ? (Theme ? Theme.accentPrimary : "#7C3AED") : (Theme ? Theme.textSecondary : "#444")
|
color: index === root.currentIndex ? (Theme ? Theme.accentPrimary : "#7C3AED") : tabWrapper.hovered ? (Theme ? Theme.accentPrimary : "#7C3AED") : (Theme ? Theme.textSecondary : "#444")
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
|
|
@ -64,9 +64,9 @@ Item {
|
||||||
|
|
||||||
// Underline for active tab
|
// Underline for active tab
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 24 * Theme.scale(Screen)
|
width: 24 * Theme.scale(screen)
|
||||||
height: 2 * Theme.scale(Screen)
|
height: 2 * Theme.scale(screen)
|
||||||
radius: 1 * Theme.scale(Screen)
|
radius: 1
|
||||||
color: index === root.currentIndex ? (Theme ? Theme.accentPrimary : "#7C3AED") : "transparent"
|
color: index === root.currentIndex ? (Theme ? Theme.accentPrimary : "#7C3AED") : "transparent"
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,19 +19,19 @@ ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 4 * Theme.scale(Screen)
|
spacing: 4 * Theme.scale(screen)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: label
|
text: label
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: description
|
text: description
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -42,20 +42,20 @@ ColumnLayout {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: switcher
|
id: switcher
|
||||||
|
|
||||||
width: 52 * Theme.scale(Screen)
|
width: 52 * Theme.scale(screen)
|
||||||
height: 32 * Theme.scale(Screen)
|
height: 32 * Theme.scale(screen)
|
||||||
radius: 16 * Theme.scale(Screen)
|
radius: 16
|
||||||
color: value ? Theme.accentPrimary : Theme.surfaceVariant
|
color: value ? Theme.accentPrimary : Theme.surfaceVariant
|
||||||
border.color: value ? Theme.accentPrimary : Theme.outline
|
border.color: value ? Theme.accentPrimary : Theme.outline
|
||||||
border.width: 2 * Theme.scale(Screen)
|
border.width: 2 * Theme.scale(screen)
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 28 * Theme.scale(Screen)
|
width: 28 * Theme.scale(screen)
|
||||||
height: 28 * Theme.scale(Screen)
|
height: 28 * Theme.scale(screen)
|
||||||
radius: 14 * Theme.scale(Screen)
|
radius: 14
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
border.color: Theme.outline
|
border.color: Theme.outline
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
y: 2
|
y: 2
|
||||||
x: value ? switcher.width - width - 2 : 2
|
x: value ? switcher.width - width - 2 : 2
|
||||||
|
|
||||||
|
|
@ -82,7 +82,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
height: 8 * Theme.scale(Screen)
|
height: 8 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,17 +9,14 @@ Singleton {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
// Design screen width
|
// Design screen width
|
||||||
readonly property int designScreenWidth: 1920
|
readonly property int designScreenWidth: 2560
|
||||||
|
|
||||||
// Scaling dampening factor - reduces the scaling effect for higher resolutions
|
|
||||||
readonly property real scalingDampening: 0.2
|
|
||||||
|
|
||||||
// Automatic scaling based on screen width
|
// Automatic scaling based on screen width
|
||||||
function scale(currentScreen) {
|
function scale(currentScreen) {
|
||||||
if (currentScreen !== undefined) {
|
if (currentScreen.width != 0) {
|
||||||
var rawRatio = currentScreen.width / designScreenWidth;
|
var ratio = currentScreen.width / designScreenWidth;
|
||||||
// Apply dampening to reduce scaling for higher resolutions
|
// Limit the final scale range between [0.8...2]
|
||||||
return Math.min(2.0, 1.0 + (rawRatio - 1.0) * scalingDampening);
|
return Math.max(0.8, Math.min(2.0, ratio));
|
||||||
}
|
}
|
||||||
return 1.0;
|
return 1.0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -310,7 +310,7 @@ Variants {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
text: "close"
|
text: "close"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(dockWindow.screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -318,7 +318,7 @@ Variants {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
text: "Close"
|
text: "Close"
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(dockWindow.screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ Item {
|
||||||
Text {
|
Text {
|
||||||
text: batteryIcon()
|
text: batteryIcon()
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 28 * Theme.scale(Screen)
|
font.pixelSize: 28 * Theme.scale(screen)
|
||||||
color: charging ? Theme.accentPrimary : Theme.textSecondary
|
color: charging ? Theme.accentPrimary : Theme.textSecondary
|
||||||
verticalAlignment: Text.AlignVBottom
|
verticalAlignment: Text.AlignVBottom
|
||||||
}
|
}
|
||||||
|
|
@ -66,7 +66,7 @@ Item {
|
||||||
Text {
|
Text {
|
||||||
text: Math.round(percent) + "%"
|
text: Math.round(percent) + "%"
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
verticalAlignment: Text.AlignVBottom
|
verticalAlignment: Text.AlignVBottom
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -152,21 +152,21 @@ WlSessionLock {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 30
|
spacing: 30
|
||||||
width: Math.min(parent.width * 0.8, 400 * Theme.scale(Screen))
|
width: Math.min(parent.width * 0.8, 400 * Theme.scale(screen))
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
width: 80 * Theme.scale(Screen)
|
width: 80 * Theme.scale(screen)
|
||||||
height: 80 * Theme.scale(Screen)
|
height: 80 * Theme.scale(screen)
|
||||||
radius: 40 * Theme.scale(Screen)
|
radius: 40
|
||||||
color: Theme.accentPrimary
|
color: Theme.accentPrimary
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
radius: 40 * Theme.scale(Screen)
|
radius: 40
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 3 * Theme.scale(Screen)
|
border.width: 3 * Theme.scale(screen)
|
||||||
z: 2
|
z: 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -183,28 +183,28 @@ WlSessionLock {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
text: Quickshell.env("USER")
|
text: Quickshell.env("USER")
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
font.weight: Font.Medium
|
font.weight: Font.Medium
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: 50 * Theme.scale(Screen)
|
height: 50 * Theme.scale(screen)
|
||||||
radius: 25 * Theme.scale(Screen)
|
radius: 25
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
opacity: passwordInput.activeFocus ? 0.8 : 0.3
|
opacity: passwordInput.activeFocus ? 0.8 : 0.3
|
||||||
border.color: passwordInput.activeFocus ? Theme.accentPrimary : Theme.outline
|
border.color: passwordInput.activeFocus ? Theme.accentPrimary : Theme.outline
|
||||||
border.width: 2 * Theme.scale(Screen)
|
border.width: 2 * Theme.scale(screen)
|
||||||
|
|
||||||
TextInput {
|
TextInput {
|
||||||
id: passwordInput
|
id: passwordInput
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 15 * Theme.scale(Screen)
|
anchors.margins: 15 * Theme.scale(screen)
|
||||||
verticalAlignment: TextInput.AlignVCenter
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
horizontalAlignment: TextInput.AlignHCenter
|
horizontalAlignment: TextInput.AlignHCenter
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
echoMode: TextInput.Password
|
echoMode: TextInput.Password
|
||||||
passwordCharacter: "●"
|
passwordCharacter: "●"
|
||||||
|
|
@ -218,7 +218,7 @@ WlSessionLock {
|
||||||
text: "Enter password..."
|
text: "Enter password..."
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
visible: !passwordInput.text && !passwordInput.activeFocus
|
visible: !passwordInput.text && !passwordInput.activeFocus
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -238,9 +238,9 @@ WlSessionLock {
|
||||||
id: errorMessageRect
|
id: errorMessageRect
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
width: parent.width * 0.8
|
width: parent.width * 0.8
|
||||||
height: 44 * Theme.scale(Screen)
|
height: 44 * Theme.scale(screen)
|
||||||
color: Theme.overlay
|
color: Theme.overlay
|
||||||
radius: 20 * Theme.scale(Screen)
|
radius: 18
|
||||||
visible: lock.errorMessage !== ""
|
visible: lock.errorMessage !== ""
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|
@ -248,7 +248,7 @@ WlSessionLock {
|
||||||
text: lock.errorMessage
|
text: lock.errorMessage
|
||||||
color: Theme.error
|
color: Theme.error
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
opacity: 1
|
opacity: 1
|
||||||
visible: lock.errorMessage !== ""
|
visible: lock.errorMessage !== ""
|
||||||
}
|
}
|
||||||
|
|
@ -256,13 +256,13 @@ WlSessionLock {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
width: 120 * Theme.scale(Screen)
|
width: 120 * Theme.scale(screen)
|
||||||
height: 44 * Theme.scale(Screen)
|
height: 44 * Theme.scale(screen)
|
||||||
radius: 20 * Theme.scale(Screen)
|
radius: 18
|
||||||
opacity: unlockButtonArea.containsMouse ? 0.8 : 0.5
|
opacity: unlockButtonArea.containsMouse ? 0.8 : 0.5
|
||||||
color: unlockButtonArea.containsMouse ? Theme.accentPrimary : Theme.surface
|
color: unlockButtonArea.containsMouse ? Theme.accentPrimary : Theme.surface
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 2 * Theme.scale(Screen)
|
border.width: 2 * Theme.scale(screen)
|
||||||
enabled: !lock.authenticating
|
enabled: !lock.authenticating
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|
@ -270,7 +270,7 @@ WlSessionLock {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: lock.authenticating ? "..." : "Unlock"
|
text: lock.authenticating ? "..." : "Unlock"
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: unlockButtonArea.containsMouse ? Theme.onAccent : Theme.accentPrimary
|
color: unlockButtonArea.containsMouse ? Theme.onAccent : Theme.accentPrimary
|
||||||
}
|
}
|
||||||
|
|
@ -295,12 +295,12 @@ WlSessionLock {
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: infoColumn.width + 32 * Theme.scale(Screen)
|
width: infoColumn.width + 32 * Theme.scale(screen)
|
||||||
height: infoColumn.height + 8 * Theme.scale(Screen)
|
height: infoColumn.height + 8 * Theme.scale(screen)
|
||||||
color: (Theme.backgroundPrimary !== undefined && Theme.backgroundPrimary !== null) ? Theme.backgroundPrimary : "#222"
|
color: (Theme.backgroundPrimary !== undefined && Theme.backgroundPrimary !== null) ? Theme.backgroundPrimary : "#222"
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
bottomLeftRadius: 20 * Theme.scale(Screen)
|
bottomLeftRadius: 20 * Theme.scale(screen)
|
||||||
bottomRightRadius: 20 * Theme.scale(Screen)
|
bottomRightRadius: 20 * Theme.scale(screen)
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: infoColumn
|
id: infoColumn
|
||||||
|
|
@ -314,7 +314,7 @@ WlSessionLock {
|
||||||
id: timeText
|
id: timeText
|
||||||
text: Qt.formatDateTime(new Date(), "HH:mm")
|
text: Qt.formatDateTime(new Date(), "HH:mm")
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 48 * Theme.scale(Screen)
|
font.pixelSize: 48 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
@ -324,7 +324,7 @@ WlSessionLock {
|
||||||
id: dateText
|
id: dateText
|
||||||
text: Qt.formatDateTime(new Date(), "dddd, MMMM d")
|
text: Qt.formatDateTime(new Date(), "dddd, MMMM d")
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
opacity: 0.8
|
opacity: 0.8
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
@ -340,7 +340,7 @@ WlSessionLock {
|
||||||
Text {
|
Text {
|
||||||
text: weatherData && weatherData.current_weather ? materialSymbolForCode(weatherData.current_weather.weathercode) : "cloud"
|
text: weatherData && weatherData.current_weather ? materialSymbolForCode(weatherData.current_weather.weathercode) : "cloud"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 28 * Theme.scale(Screen)
|
font.pixelSize: 28 * Theme.scale(screen)
|
||||||
color: Theme.accentPrimary
|
color: Theme.accentPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
@ -348,7 +348,7 @@ WlSessionLock {
|
||||||
Text {
|
Text {
|
||||||
text: weatherData && weatherData.current_weather ? ((Settings.settings.useFahrenheit !== undefined ? Settings.settings.useFahrenheit : false) ? `${Math.round(weatherData.current_weather.temperature * 9 / 5 + 32)}°F` : `${Math.round(weatherData.current_weather.temperature)}°C`) : ((Settings.settings.useFahrenheit !== undefined ? Settings.settings.useFahrenheit : false) ? "--°F" : "--°C")
|
text: weatherData && weatherData.current_weather ? ((Settings.settings.useFahrenheit !== undefined ? Settings.settings.useFahrenheit : false) ? `${Math.round(weatherData.current_weather.temperature * 9 / 5 + 32)}°F` : `${Math.round(weatherData.current_weather.temperature)}°C`) : ((Settings.settings.useFahrenheit !== undefined ? Settings.settings.useFahrenheit : false) ? "--°F" : "--°C")
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
@ -359,7 +359,7 @@ WlSessionLock {
|
||||||
color: Theme.error
|
color: Theme.error
|
||||||
visible: weatherError !== ""
|
visible: weatherError !== ""
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 10 * Theme.scale(Screen)
|
font.pixelSize: 10 * Theme.scale(screen)
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
@ -401,12 +401,12 @@ WlSessionLock {
|
||||||
spacing: 12
|
spacing: 12
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 48 * Theme.scale(Screen)
|
width: 48 * Theme.scale(screen)
|
||||||
height: 48 * Theme.scale(Screen)
|
height: 48 * Theme.scale(screen)
|
||||||
radius: 24 * Theme.scale(Screen)
|
radius: 24
|
||||||
color: shutdownArea.containsMouse ? Theme.error : "transparent"
|
color: shutdownArea.containsMouse ? Theme.error : "transparent"
|
||||||
border.color: Theme.error
|
border.color: Theme.error
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: shutdownArea
|
id: shutdownArea
|
||||||
|
|
@ -421,18 +421,18 @@ WlSessionLock {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "power_settings_new"
|
text: "power_settings_new"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: shutdownArea.containsMouse ? Theme.onAccent : Theme.error
|
color: shutdownArea.containsMouse ? Theme.onAccent : Theme.error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 48 * Theme.scale(Screen)
|
width: 48 * Theme.scale(screen)
|
||||||
height: 48 * Theme.scale(Screen)
|
height: 48 * Theme.scale(screen)
|
||||||
radius: 24 * Theme.scale(Screen)
|
radius: 24
|
||||||
color: rebootArea.containsMouse ? Theme.accentPrimary : "transparent"
|
color: rebootArea.containsMouse ? Theme.accentPrimary : "transparent"
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: rebootArea
|
id: rebootArea
|
||||||
|
|
@ -447,18 +447,18 @@ WlSessionLock {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "refresh"
|
text: "refresh"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: rebootArea.containsMouse ? Theme.onAccent : Theme.accentPrimary
|
color: rebootArea.containsMouse ? Theme.onAccent : Theme.accentPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 48 * Theme.scale(Screen)
|
width: 48 * Theme.scale(screen)
|
||||||
height: 48 * Theme.scale(Screen)
|
height: 48 * Theme.scale(screen)
|
||||||
radius: 24 * Theme.scale(Screen)
|
radius: 24
|
||||||
color: logoutArea.containsMouse ? Theme.accentSecondary : "transparent"
|
color: logoutArea.containsMouse ? Theme.accentSecondary : "transparent"
|
||||||
border.color: Theme.accentSecondary
|
border.color: Theme.accentSecondary
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: logoutArea
|
id: logoutArea
|
||||||
|
|
@ -473,7 +473,7 @@ WlSessionLock {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "exit_to_app"
|
text: "exit_to_app"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: logoutArea.containsMouse ? Theme.onAccent : Theme.accentSecondary
|
color: logoutArea.containsMouse ? Theme.onAccent : Theme.accentSecondary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -148,8 +148,8 @@ PanelWithOverlay {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: settingsWindowRect
|
id: settingsWindowRect
|
||||||
|
|
||||||
implicitWidth: Quickshell.screens.length > 0 ? Math.min(Quickshell.screens[0].width * 2 / 3, 1200) * Theme.scale(Screen) : 600 * Theme.scale(Screen)
|
implicitWidth: Quickshell.screens.length > 0 ? Math.min(Quickshell.screens[0].width * 2 / 3, 1200) * Theme.scale(screen) : 600 * Theme.scale(screen)
|
||||||
implicitHeight: Quickshell.screens.length > 0 ? Math.min(Quickshell.screens[0].height * 2 / 3, 800) * Theme.scale(Screen) : 400 * Theme.scale(Screen)
|
implicitHeight: Quickshell.screens.length > 0 ? Math.min(Quickshell.screens[0].height * 2 / 3, 800) * Theme.scale(screen) : 400 * Theme.scale(screen)
|
||||||
visible: parent.visible
|
visible: parent.visible
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
// Center the settings window on screen
|
// Center the settings window on screen
|
||||||
|
|
@ -166,9 +166,9 @@ PanelWithOverlay {
|
||||||
|
|
||||||
color: Theme.backgroundPrimary
|
color: Theme.backgroundPrimary
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: 20 * Theme.scale(Screen)
|
radius: 18
|
||||||
border.color: Theme.outline
|
border.color: Theme.outline
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
MultiEffect {
|
MultiEffect {
|
||||||
source: background
|
source: background
|
||||||
|
|
@ -188,8 +188,8 @@ PanelWithOverlay {
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
color: Theme.backgroundPrimary
|
color: Theme.backgroundPrimary
|
||||||
topRightRadius: 20 * Theme.scale(Screen)
|
topRightRadius: 20 * Theme.scale(screen)
|
||||||
bottomRightRadius: 20 * Theme.scale(Screen)
|
bottomRightRadius: 20 * Theme.scale(screen)
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
left: tabs.right
|
left: tabs.right
|
||||||
|
|
@ -202,7 +202,7 @@ PanelWithOverlay {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: headerArea
|
id: headerArea
|
||||||
|
|
||||||
height: 48 * Theme.scale(Screen)
|
height: 48 * Theme.scale(screen)
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
|
|
@ -214,13 +214,13 @@ PanelWithOverlay {
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: 12 * Theme.scale(Screen)
|
spacing: 12 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: tabName
|
id: tabName
|
||||||
|
|
||||||
text: wallpaperSelector.visible ? "Select Wallpaper" : (activeTabIndex === 0 ? "General" : activeTabIndex === 1 ? "Bar" : activeTabIndex === 2 ? "Time & Weather" : activeTabIndex === 3 ? "Screen Recorder" : activeTabIndex === 4 ? "Network" : activeTabIndex === 5 ? "Display" : activeTabIndex === 6 ? "Wallpaper" : activeTabIndex === 7 ? "Misc" : activeTabIndex === 8 ? "About" : "General")
|
text: wallpaperSelector.visible ? "Select Wallpaper" : (activeTabIndex === 0 ? "General" : activeTabIndex === 1 ? "Bar" : activeTabIndex === 2 ? "Time & Weather" : activeTabIndex === 3 ? "Screen Recorder" : activeTabIndex === 4 ? "Network" : activeTabIndex === 5 ? "Display" : activeTabIndex === 6 ? "Wallpaper" : activeTabIndex === 7 ? "Misc" : activeTabIndex === 8 ? "About" : "General")
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -228,29 +228,29 @@ PanelWithOverlay {
|
||||||
|
|
||||||
// Wallpaper Selection Button (only visible on Wallpaper tab)
|
// Wallpaper Selection Button (only visible on Wallpaper tab)
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 160 * Theme.scale(Screen)
|
width: 160 * Theme.scale(screen)
|
||||||
height: 32 * Theme.scale(Screen)
|
height: 32 * Theme.scale(screen)
|
||||||
radius: 16 * Theme.scale(Screen)
|
radius: 16
|
||||||
color: wallpaperButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
color: wallpaperButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
visible: activeTabIndex === 6 // Wallpaper tab index
|
visible: activeTabIndex === 6 // Wallpaper tab index
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 6 * Theme.scale(Screen)
|
spacing: 6 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "image"
|
text: "image"
|
||||||
font.family: wallpaperButtonArea.containsMouse ? "Material Symbols Rounded" : "Material Symbols Outlined"
|
font.family: wallpaperButtonArea.containsMouse ? "Material Symbols Rounded" : "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: wallpaperButtonArea.containsMouse ? Theme.onAccent : Theme.accentPrimary
|
color: wallpaperButtonArea.containsMouse ? Theme.onAccent : Theme.accentPrimary
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Select Wallpaper"
|
text: "Select Wallpaper"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: wallpaperButtonArea.containsMouse ? Theme.onAccent : Theme.accentPrimary
|
color: wallpaperButtonArea.containsMouse ? Theme.onAccent : Theme.accentPrimary
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -273,18 +273,18 @@ PanelWithOverlay {
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 32 * Theme.scale(Screen)
|
width: 32 * Theme.scale(screen)
|
||||||
height: 32 * Theme.scale(Screen)
|
height: 32 * Theme.scale(screen)
|
||||||
radius: 16 * Theme.scale(Screen)
|
radius: 16
|
||||||
color: closeButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
color: closeButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "close"
|
text: "close"
|
||||||
font.family: closeButtonArea.containsMouse ? "Material Symbols Rounded" : "Material Symbols Outlined"
|
font.family: closeButtonArea.containsMouse ? "Material Symbols Rounded" : "Material Symbols Outlined"
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
color: closeButtonArea.containsMouse ? Theme.onAccent : Theme.accentPrimary
|
color: closeButtonArea.containsMouse ? Theme.onAccent : Theme.accentPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -311,7 +311,7 @@ PanelWithOverlay {
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
height: 1 * Theme.scale(Screen)
|
height: 1 * Theme.scale(screen)
|
||||||
color: Theme.outline
|
color: Theme.outline
|
||||||
opacity: 0.3
|
opacity: 0.3
|
||||||
|
|
||||||
|
|
@ -360,16 +360,16 @@ PanelWithOverlay {
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
width: parent.width * 0.25
|
width: parent.width * 0.25
|
||||||
height: settingsWindowRect.height
|
height: settingsWindowRect.height
|
||||||
topLeftRadius: 20 * Theme.scale(Screen)
|
topLeftRadius: 20 * Theme.scale(screen)
|
||||||
bottomLeftRadius: 20 * Theme.scale(Screen)
|
bottomLeftRadius: 20 * Theme.scale(screen)
|
||||||
border.color: Theme.outline
|
border.color: Theme.outline
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: 0 * Theme.scale(Screen)
|
spacing: 0 * Theme.scale(screen)
|
||||||
topPadding: 8 * Theme.scale(Screen)
|
topPadding: 8 * Theme.scale(screen)
|
||||||
bottomPadding: 8 * Theme.scale(Screen)
|
bottomPadding: 8 * Theme.scale(screen)
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
id: repeater
|
id: repeater
|
||||||
|
|
@ -405,21 +405,21 @@ PanelWithOverlay {
|
||||||
|
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
width: tabs.width
|
width: tabs.width
|
||||||
height: 48 * Theme.scale(Screen)
|
height: 48 * Theme.scale(screen)
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: 8 * Theme.scale(Screen)
|
spacing: 8 * Theme.scale(screen)
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: activeIndicator
|
id: activeIndicator
|
||||||
|
|
||||||
Layout.leftMargin: 8 * Theme.scale(Screen)
|
Layout.leftMargin: 8 * Theme.scale(screen)
|
||||||
Layout.preferredWidth: 3 * Theme.scale(Screen)
|
Layout.preferredWidth: 3 * Theme.scale(screen)
|
||||||
Layout.preferredHeight: 24 * Theme.scale(Screen)
|
Layout.preferredHeight: 24 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
radius: 2 * Theme.scale(Screen)
|
radius: 2
|
||||||
color: Theme.accentPrimary
|
color: Theme.accentPrimary
|
||||||
opacity: index === activeTabIndex ? 1 : 0
|
opacity: index === activeTabIndex ? 1 : 0
|
||||||
|
|
||||||
|
|
@ -437,12 +437,12 @@ PanelWithOverlay {
|
||||||
|
|
||||||
text: modelData.icon
|
text: modelData.icon
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: index === activeTabIndex ? Theme.accentPrimary : Theme.textPrimary
|
color: index === activeTabIndex ? Theme.accentPrimary : Theme.textPrimary
|
||||||
opacity: index === activeTabIndex ? 1 : 0.8
|
opacity: index === activeTabIndex ? 1 : 0.8
|
||||||
Layout.leftMargin: 20 * Theme.scale(Screen)
|
Layout.leftMargin: 20 * Theme.scale(screen)
|
||||||
Layout.preferredWidth: 24 * Theme.scale(Screen)
|
Layout.preferredWidth: 24 * Theme.scale(screen)
|
||||||
Layout.preferredHeight: 24 * Theme.scale(Screen)
|
Layout.preferredHeight: 24 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
|
@ -453,14 +453,14 @@ PanelWithOverlay {
|
||||||
id: label
|
id: label
|
||||||
|
|
||||||
text: modelData.text
|
text: modelData.text
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: index === activeTabIndex ? Theme.accentPrimary : (tabMouseArea.containsMouse ? Theme.accentPrimary : Theme.textSecondary)
|
color: index === activeTabIndex ? Theme.accentPrimary : (tabMouseArea.containsMouse ? Theme.accentPrimary : Theme.textSecondary)
|
||||||
font.weight: index === activeTabIndex ? Font.DemiBold : (tabMouseArea.containsMouse ? Font.DemiBold : Font.Normal)
|
font.weight: index === activeTabIndex ? Font.DemiBold : (tabMouseArea.containsMouse ? Font.DemiBold : Font.Normal)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 24 * Theme.scale(Screen)
|
Layout.preferredHeight: 24 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||||
Layout.leftMargin: 4 * Theme.scale(Screen)
|
Layout.leftMargin: 4 * Theme.scale(screen)
|
||||||
Layout.rightMargin: 16 * Theme.scale(Screen)
|
Layout.rightMargin: 16 * Theme.scale(screen)
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -484,7 +484,7 @@ PanelWithOverlay {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 1 * Theme.scale(Screen)
|
height: 1 * Theme.scale(screen)
|
||||||
color: Theme.outline
|
color: Theme.outline
|
||||||
opacity: 0.6
|
opacity: 0.6
|
||||||
visible: index < (repeater.count - 1)
|
visible: index < (repeater.count - 1)
|
||||||
|
|
|
||||||
|
|
@ -168,19 +168,19 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Noctalia: quiet by design"
|
text: "Noctalia: quiet by design"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
Layout.bottomMargin: 8 * Theme.scale(Screen)
|
Layout.bottomMargin: 8 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "It may just be another quickshell setup but it won't get in your way."
|
text: "It may just be another quickshell setup but it won't get in your way."
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
Layout.bottomMargin: 16 * Theme.scale(Screen)
|
Layout.bottomMargin: 16 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
|
|
@ -191,28 +191,28 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Latest Version:"
|
text: "Latest Version:"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: root.latestVersion
|
text: root.latestVersion
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Installed Version:"
|
text: "Installed Version:"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: root.currentVersion
|
text: root.currentVersion
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
@ -254,7 +254,7 @@ ColumnLayout {
|
||||||
Text {
|
Text {
|
||||||
text: "system_update"
|
text: "system_update"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
color: updateArea.containsMouse ? Theme.backgroundPrimary : Theme.accentPrimary
|
color: updateArea.containsMouse ? Theme.backgroundPrimary : Theme.accentPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -262,7 +262,7 @@ ColumnLayout {
|
||||||
id: updateText
|
id: updateText
|
||||||
|
|
||||||
text: "Download latest release"
|
text: "Download latest release"
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
color: updateArea.containsMouse ? Theme.backgroundPrimary : Theme.accentPrimary
|
color: updateArea.containsMouse ? Theme.backgroundPrimary : Theme.accentPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -305,14 +305,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Contributors"
|
text: "Contributors"
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "(" + root.contributors.length + ")"
|
text: "(" + root.contributors.length + ")"
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -385,7 +385,7 @@ ColumnLayout {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "person"
|
text: "person"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: contributorArea.containsMouse ? Theme.backgroundPrimary : Theme.textPrimary
|
color: contributorArea.containsMouse ? Theme.backgroundPrimary : Theme.textPrimary
|
||||||
visible: !avatarImage.source || avatarImage.status !== Image.Ready
|
visible: !avatarImage.source || avatarImage.status !== Image.Ready
|
||||||
}
|
}
|
||||||
|
|
@ -399,7 +399,7 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: modelData.login || "Unknown"
|
text: modelData.login || "Unknown"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: contributorArea.containsMouse ? Theme.backgroundPrimary : Theme.textPrimary
|
color: contributorArea.containsMouse ? Theme.backgroundPrimary : Theme.textPrimary
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -407,7 +407,7 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: (modelData.contributions || 0) + " commits"
|
text: (modelData.contributions || 0) + " commits"
|
||||||
font.pixelSize: 11 * Theme.scale(Screen)
|
font.pixelSize: 11 * Theme.scale(screen)
|
||||||
color: contributorArea.containsMouse ? Theme.backgroundPrimary : Theme.textSecondary
|
color: contributorArea.containsMouse ? Theme.backgroundPrimary : Theme.textSecondary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,10 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Elements"
|
text: "Elements"
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
Layout.bottomMargin: 16 * Theme.scale(Screen)
|
Layout.bottomMargin: 16 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
ToggleOption {
|
ToggleOption {
|
||||||
|
|
|
||||||
|
|
@ -7,20 +7,20 @@ import qs.Settings
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
width: 64 * Theme.scale(Screen)
|
width: 64 * Theme.scale(screen)
|
||||||
height: 32 * Theme.scale(Screen)
|
height: 32 * Theme.scale(screen)
|
||||||
radius: 16 * Theme.scale(Screen)
|
radius: 16
|
||||||
color: Theme.surfaceVariant
|
color: Theme.surfaceVariant
|
||||||
border.color: Theme.outline
|
border.color: Theme.outline
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
property bool useFahrenheit: Settings.settings.useFahrenheit
|
property bool useFahrenheit: Settings.settings.useFahrenheit
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: slider
|
id: slider
|
||||||
width: parent.width / 2 - 4 * Theme.scale(Screen)
|
width: parent.width / 2 - 4 * Theme.scale(screen)
|
||||||
height: parent.height - 4 * Theme.scale(Screen)
|
height: parent.height - 4 * Theme.scale(screen)
|
||||||
radius: 14 * Theme.scale(Screen)
|
radius: 14
|
||||||
color: Theme.accentPrimary
|
color: Theme.accentPrimary
|
||||||
x: 2 + (useFahrenheit ? parent.width / 2 : 0)
|
x: 2 + (useFahrenheit ? parent.width / 2 : 0)
|
||||||
y: 2
|
y: 2
|
||||||
|
|
@ -46,7 +46,7 @@ Rectangle {
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "°C"
|
text: "°C"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: !useFahrenheit
|
font.bold: !useFahrenheit
|
||||||
color: !useFahrenheit ? Theme.onAccent : Theme.textPrimary
|
color: !useFahrenheit ? Theme.onAccent : Theme.textPrimary
|
||||||
|
|
||||||
|
|
@ -74,7 +74,7 @@ Rectangle {
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "°F"
|
text: "°F"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: useFahrenheit
|
font.bold: useFahrenheit
|
||||||
color: useFahrenheit ? Theme.onAccent : Theme.textPrimary
|
color: useFahrenheit ? Theme.onAccent : Theme.textPrimary
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ Rectangle {
|
||||||
id: wallpaperGrid
|
id: wallpaperGrid
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cellWidth: Math.max(120 * Theme.scale(Screen), (parent.width / 3) - 12 * Theme.scale(Screen))
|
cellWidth: Math.max(120 * Theme.scale(screen), (parent.width / 3) - 12 * Theme.scale(screen))
|
||||||
cellHeight: cellWidth * 0.6
|
cellHeight: cellWidth * 0.6
|
||||||
model: WallpaperManager.wallpaperList
|
model: WallpaperManager.wallpaperList
|
||||||
cacheBuffer: 64
|
cacheBuffer: 64
|
||||||
|
|
@ -84,8 +84,8 @@ Rectangle {
|
||||||
bottomMargin: 8
|
bottomMargin: 8
|
||||||
|
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
width: wallpaperGrid.cellWidth - 8 * Theme.scale(Screen)
|
width: wallpaperGrid.cellWidth - 8 * Theme.scale(screen)
|
||||||
height: wallpaperGrid.cellHeight - 8 * Theme.scale(Screen)
|
height: wallpaperGrid.cellHeight - 8 * Theme.scale(screen)
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: wallpaperItem
|
id: wallpaperItem
|
||||||
|
|
@ -93,9 +93,9 @@ Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 3
|
anchors.margins: 3
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
radius: 12 * Theme.scale(Screen)
|
radius: 12
|
||||||
border.color: Settings.settings.currentWallpaper === modelData ? Theme.accentPrimary : Theme.outline
|
border.color: Settings.settings.currentWallpaper === modelData ? Theme.accentPrimary : Theme.outline
|
||||||
border.width: 2 * Theme.scale(Screen)
|
border.width: 2 * Theme.scale(screen)
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: wallpaperImage
|
id: wallpaperImage
|
||||||
|
|
@ -108,8 +108,8 @@ Rectangle {
|
||||||
cache: true
|
cache: true
|
||||||
smooth: true
|
smooth: true
|
||||||
mipmap: true
|
mipmap: true
|
||||||
sourceSize.width: Math.min(width, 480 * Theme.scale(Screen))
|
sourceSize.width: Math.min(width, 480 * Theme.scale(screen))
|
||||||
sourceSize.height: Math.min(height, 270 * Theme.scale(Screen))
|
sourceSize.height: Math.min(height, 270 * Theme.scale(screen))
|
||||||
opacity: (wallpaperImage.status == Image.Ready) ? 1 : 0
|
opacity: (wallpaperImage.status == Image.Ready) ? 1 : 0
|
||||||
// Apply circular mask for rounded corners
|
// Apply circular mask for rounded corners
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
|
|
@ -139,7 +139,7 @@ Rectangle {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: wallpaperImage.width
|
width: wallpaperImage.width
|
||||||
height: wallpaperImage.height
|
height: wallpaperImage.height
|
||||||
radius: 12 * Theme.scale(Screen)
|
radius: 12
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,10 +43,10 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Monitor Selection"
|
text: "Monitor Selection"
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
Layout.bottomMargin: 16 * Theme.scale(Screen)
|
Layout.bottomMargin: 16 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
@ -65,14 +65,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Bar Monitors"
|
text: "Bar Monitors"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Select which monitors to display the top panel/bar on"
|
text: "Select which monitors to display the top panel/bar on"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -112,14 +112,14 @@ ColumnLayout {
|
||||||
Text {
|
Text {
|
||||||
text: barCheckbox.isChecked ? "check" : ""
|
text: barCheckbox.isChecked ? "check" : ""
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
color: barCheckbox.isChecked ? Theme.onAccent : Theme.textSecondary
|
color: barCheckbox.isChecked ? Theme.onAccent : Theme.textSecondary
|
||||||
visible: barCheckbox.isChecked
|
visible: barCheckbox.isChecked
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: modelData.name || "Unknown"
|
text: modelData.name || "Unknown"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: barCheckbox.isChecked ? Theme.onAccent : Theme.textPrimary
|
color: barCheckbox.isChecked ? Theme.onAccent : Theme.textPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -169,14 +169,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Dock Monitors"
|
text: "Dock Monitors"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Select which monitors to display the application dock on"
|
text: "Select which monitors to display the application dock on"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -216,14 +216,14 @@ ColumnLayout {
|
||||||
Text {
|
Text {
|
||||||
text: dockCheckbox.isChecked ? "check" : ""
|
text: dockCheckbox.isChecked ? "check" : ""
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
color: dockCheckbox.isChecked ? Theme.onAccent : Theme.textSecondary
|
color: dockCheckbox.isChecked ? Theme.onAccent : Theme.textSecondary
|
||||||
visible: dockCheckbox.isChecked
|
visible: dockCheckbox.isChecked
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: modelData.name || "Unknown"
|
text: modelData.name || "Unknown"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: dockCheckbox.isChecked ? Theme.onAccent : Theme.textPrimary
|
color: dockCheckbox.isChecked ? Theme.onAccent : Theme.textPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -276,14 +276,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Notification Monitors"
|
text: "Notification Monitors"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Select which monitors to display system notifications on"
|
text: "Select which monitors to display system notifications on"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -323,14 +323,14 @@ ColumnLayout {
|
||||||
Text {
|
Text {
|
||||||
text: notificationCheckbox.isChecked ? "check" : ""
|
text: notificationCheckbox.isChecked ? "check" : ""
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
color: notificationCheckbox.isChecked ? Theme.onAccent : Theme.textSecondary
|
color: notificationCheckbox.isChecked ? Theme.onAccent : Theme.textSecondary
|
||||||
visible: notificationCheckbox.isChecked
|
visible: notificationCheckbox.isChecked
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: modelData.name || "Unknown"
|
text: modelData.name || "Unknown"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: notificationCheckbox.isChecked ? Theme.onAccent : Theme.textPrimary
|
color: notificationCheckbox.isChecked ? Theme.onAccent : Theme.textPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,23 +28,23 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Profile"
|
text: "Profile"
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
Layout.bottomMargin: 16 * Theme.scale(Screen)
|
Layout.bottomMargin: 16 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Profile Image"
|
text: "Profile Image"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
Layout.bottomMargin: 4 * Theme.scale(Screen)
|
Layout.bottomMargin: 4 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Your profile picture displayed in various places throughout the shell"
|
text: "Your profile picture displayed in various places throughout the shell"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -52,20 +52,20 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 8 * Theme.scale(Screen)
|
spacing: 8 * Theme.scale(screen)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 48 * Theme.scale(Screen)
|
width: 48 * Theme.scale(screen)
|
||||||
height: 48 * Theme.scale(Screen)
|
height: 48 * Theme.scale(screen)
|
||||||
radius: 24 * Theme.scale(Screen)
|
radius: 24
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
radius: 24 * Theme.scale(Screen)
|
radius: 24
|
||||||
border.color: profileImageInput.activeFocus ? Theme.accentPrimary : Theme.outline
|
border.color: profileImageInput.activeFocus ? Theme.accentPrimary : Theme.outline
|
||||||
border.width: 2 * Theme.scale(Screen)
|
border.width: 2 * Theme.scale(screen)
|
||||||
z: 2
|
z: 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -76,22 +76,22 @@ ColumnLayout {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 40 * Theme.scale(Screen)
|
Layout.preferredHeight: 40 * Theme.scale(screen)
|
||||||
radius: 16 * Theme.scale(Screen)
|
radius: 16
|
||||||
color: Theme.surfaceVariant
|
color: Theme.surfaceVariant
|
||||||
border.color: profileImageInput.activeFocus ? Theme.accentPrimary : Theme.outline
|
border.color: profileImageInput.activeFocus ? Theme.accentPrimary : Theme.outline
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
TextInput {
|
TextInput {
|
||||||
id: profileImageInput
|
id: profileImageInput
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.leftMargin: 12 * Theme.scale(Screen)
|
anchors.leftMargin: 12 * Theme.scale(screen)
|
||||||
anchors.rightMargin: 12 * Theme.scale(Screen)
|
anchors.rightMargin: 12 * Theme.scale(screen)
|
||||||
anchors.topMargin: 6 * Theme.scale(Screen)
|
anchors.topMargin: 6 * Theme.scale(screen)
|
||||||
anchors.bottomMargin: 6 * Theme.scale(Screen)
|
anchors.bottomMargin: 6 * Theme.scale(screen)
|
||||||
text: Settings.settings.profileImage
|
text: Settings.settings.profileImage
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: TextInput.AlignVCenter
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
clip: true
|
clip: true
|
||||||
|
|
@ -117,19 +117,19 @@ ColumnLayout {
|
||||||
// Separator
|
// Separator
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: 26 * Theme.scale(Screen)
|
Layout.topMargin: 26 * Theme.scale(screen)
|
||||||
Layout.bottomMargin: 18 * Theme.scale(Screen)
|
Layout.bottomMargin: 18 * Theme.scale(screen)
|
||||||
height: 1 * Theme.scale(Screen)
|
height: 1 * Theme.scale(screen)
|
||||||
color: Theme.outline
|
color: Theme.outline
|
||||||
opacity: 0.3
|
opacity: 0.3
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "User Interface"
|
text: "User Interface"
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
Layout.bottomMargin: 16 * Theme.scale(Screen)
|
Layout.bottomMargin: 16 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
ToggleOption {
|
ToggleOption {
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,10 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Media"
|
text: "Media"
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
Layout.bottomMargin: 16 * Theme.scale(Screen)
|
Layout.bottomMargin: 16 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
@ -40,14 +40,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Visualizer Type"
|
text: "Visualizer Type"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Choose the style of the audio visualizer"
|
text: "Choose the style of the audio visualizer"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,10 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Wi-Fi"
|
text: "Wi-Fi"
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
Layout.bottomMargin: 16 * Theme.scale(Screen)
|
Layout.bottomMargin: 16 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
ToggleOption {
|
ToggleOption {
|
||||||
|
|
@ -58,10 +58,10 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Bluetooth"
|
text: "Bluetooth"
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
Layout.bottomMargin: 16 * Theme.scale(Screen)
|
Layout.bottomMargin: 16 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
ToggleOption {
|
ToggleOption {
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ ColumnLayout {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
// Text {
|
// Text {
|
||||||
// text: "Screen Recording"
|
// text: "Screen Recording"
|
||||||
// font.pixelSize: 18 * Theme.scale(Screen)
|
// font.pixelSize: 18 * Theme.scale(screen)
|
||||||
// font.bold: true
|
// font.bold: true
|
||||||
// color: Theme.textPrimary
|
// color: Theme.textPrimary
|
||||||
// Layout.bottomMargin: 8
|
// Layout.bottomMargin: 8
|
||||||
|
|
@ -49,14 +49,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Output Directory"
|
text: "Output Directory"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Directory where screen recordings will be saved"
|
text: "Directory where screen recordings will be saved"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
Layout.bottomMargin: 4
|
Layout.bottomMargin: 4
|
||||||
}
|
}
|
||||||
|
|
@ -78,7 +78,7 @@ ColumnLayout {
|
||||||
anchors.topMargin: 6
|
anchors.topMargin: 6
|
||||||
anchors.bottomMargin: 6
|
anchors.bottomMargin: 6
|
||||||
text: Settings.settings.videoPath !== undefined ? Settings.settings.videoPath : ""
|
text: Settings.settings.videoPath !== undefined ? Settings.settings.videoPath : ""
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: TextInput.AlignVCenter
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
clip: true
|
clip: true
|
||||||
|
|
@ -108,14 +108,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Frame Rate"
|
text: "Frame Rate"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Target frame rate for screen recordings (default: 60)"
|
text: "Target frame rate for screen recordings (default: 60)"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
Layout.bottomMargin: 4
|
Layout.bottomMargin: 4
|
||||||
}
|
}
|
||||||
|
|
@ -144,7 +144,7 @@ ColumnLayout {
|
||||||
|
|
||||||
contentItem: TextInput {
|
contentItem: TextInput {
|
||||||
text: frameRateSpinBox.textFromValue(frameRateSpinBox.value, frameRateSpinBox.locale)
|
text: frameRateSpinBox.textFromValue(frameRateSpinBox.value, frameRateSpinBox.locale)
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
selectionColor: Theme.accentPrimary
|
selectionColor: Theme.accentPrimary
|
||||||
selectedTextColor: Theme.onAccent
|
selectedTextColor: Theme.onAccent
|
||||||
|
|
@ -183,7 +183,7 @@ ColumnLayout {
|
||||||
Text {
|
Text {
|
||||||
text: "add"
|
text: "add"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 20 * Theme.scale(Screen)
|
font.pixelSize: 20 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
|
|
@ -200,7 +200,7 @@ ColumnLayout {
|
||||||
Text {
|
Text {
|
||||||
text: "remove"
|
text: "remove"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 20 * Theme.scale(Screen)
|
font.pixelSize: 20 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
|
|
@ -218,14 +218,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Audio Source"
|
text: "Audio Source"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Audio source to capture during recording"
|
text: "Audio source to capture during recording"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
Layout.bottomMargin: 4
|
Layout.bottomMargin: 4
|
||||||
}
|
}
|
||||||
|
|
@ -265,7 +265,7 @@ ColumnLayout {
|
||||||
return audioSourceComboBox.currentText;
|
return audioSourceComboBox.currentText;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -276,7 +276,7 @@ ColumnLayout {
|
||||||
y: audioSourceComboBox.topPadding + (audioSourceComboBox.availableHeight - height) / 2
|
y: audioSourceComboBox.topPadding + (audioSourceComboBox.availableHeight - height) / 2
|
||||||
text: "arrow_drop_down"
|
text: "arrow_drop_down"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -323,7 +323,7 @@ ColumnLayout {
|
||||||
return modelData;
|
return modelData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -346,14 +346,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Video Quality"
|
text: "Video Quality"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Higher quality results in larger file sizes"
|
text: "Higher quality results in larger file sizes"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
Layout.bottomMargin: 4
|
Layout.bottomMargin: 4
|
||||||
}
|
}
|
||||||
|
|
@ -395,7 +395,7 @@ ColumnLayout {
|
||||||
return qualityComboBox.currentText;
|
return qualityComboBox.currentText;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -406,7 +406,7 @@ ColumnLayout {
|
||||||
y: qualityComboBox.topPadding + (qualityComboBox.availableHeight - height) / 2
|
y: qualityComboBox.topPadding + (qualityComboBox.availableHeight - height) / 2
|
||||||
text: "arrow_drop_down"
|
text: "arrow_drop_down"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -455,7 +455,7 @@ ColumnLayout {
|
||||||
return modelData;
|
return modelData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -478,14 +478,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Video Codec"
|
text: "Video Codec"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Different codecs offer different compression and compatibility"
|
text: "Different codecs offer different compression and compatibility"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
Layout.bottomMargin: 4
|
Layout.bottomMargin: 4
|
||||||
}
|
}
|
||||||
|
|
@ -514,7 +514,7 @@ ColumnLayout {
|
||||||
leftPadding: 12
|
leftPadding: 12
|
||||||
rightPadding: codecComboBox.indicator.width + codecComboBox.spacing
|
rightPadding: codecComboBox.indicator.width + codecComboBox.spacing
|
||||||
text: codecComboBox.currentText.toUpperCase()
|
text: codecComboBox.currentText.toUpperCase()
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -525,7 +525,7 @@ ColumnLayout {
|
||||||
y: codecComboBox.topPadding + (codecComboBox.availableHeight - height) / 2
|
y: codecComboBox.topPadding + (codecComboBox.availableHeight - height) / 2
|
||||||
text: "arrow_drop_down"
|
text: "arrow_drop_down"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -561,7 +561,7 @@ ColumnLayout {
|
||||||
|
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
text: modelData.toUpperCase()
|
text: modelData.toUpperCase()
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -584,14 +584,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Audio Codec"
|
text: "Audio Codec"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Opus is recommended for best performance and smallest audio size"
|
text: "Opus is recommended for best performance and smallest audio size"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
Layout.bottomMargin: 4
|
Layout.bottomMargin: 4
|
||||||
}
|
}
|
||||||
|
|
@ -620,7 +620,7 @@ ColumnLayout {
|
||||||
leftPadding: 12
|
leftPadding: 12
|
||||||
rightPadding: audioCodecComboBox.indicator.width + audioCodecComboBox.spacing
|
rightPadding: audioCodecComboBox.indicator.width + audioCodecComboBox.spacing
|
||||||
text: audioCodecComboBox.currentText.toUpperCase()
|
text: audioCodecComboBox.currentText.toUpperCase()
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -631,7 +631,7 @@ ColumnLayout {
|
||||||
y: audioCodecComboBox.topPadding + (audioCodecComboBox.availableHeight - height) / 2
|
y: audioCodecComboBox.topPadding + (audioCodecComboBox.availableHeight - height) / 2
|
||||||
text: "arrow_drop_down"
|
text: "arrow_drop_down"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -667,7 +667,7 @@ ColumnLayout {
|
||||||
|
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
text: modelData.toUpperCase()
|
text: modelData.toUpperCase()
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -691,14 +691,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Color Range"
|
text: "Color Range"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Limited is recommended for better compatibility"
|
text: "Limited is recommended for better compatibility"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
Layout.bottomMargin: 4
|
Layout.bottomMargin: 4
|
||||||
}
|
}
|
||||||
|
|
@ -727,7 +727,7 @@ ColumnLayout {
|
||||||
leftPadding: 12
|
leftPadding: 12
|
||||||
rightPadding: colorRangeComboBox.indicator.width + colorRangeComboBox.spacing
|
rightPadding: colorRangeComboBox.indicator.width + colorRangeComboBox.spacing
|
||||||
text: colorRangeComboBox.currentText.charAt(0).toUpperCase() + colorRangeComboBox.currentText.slice(1)
|
text: colorRangeComboBox.currentText.charAt(0).toUpperCase() + colorRangeComboBox.currentText.slice(1)
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -738,7 +738,7 @@ ColumnLayout {
|
||||||
y: colorRangeComboBox.topPadding + (colorRangeComboBox.availableHeight - height) / 2
|
y: colorRangeComboBox.topPadding + (colorRangeComboBox.availableHeight - height) / 2
|
||||||
text: "arrow_drop_down"
|
text: "arrow_drop_down"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -774,7 +774,7 @@ ColumnLayout {
|
||||||
|
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
text: modelData.charAt(0).toUpperCase() + modelData.slice(1)
|
text: modelData.charAt(0).toUpperCase() + modelData.slice(1)
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
|
||||||
|
|
@ -29,10 +29,10 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Time"
|
text: "Time"
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
Layout.bottomMargin: 16 * Theme.scale(Screen)
|
Layout.bottomMargin: 16 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
ToggleOption {
|
ToggleOption {
|
||||||
|
|
@ -64,27 +64,27 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Weather"
|
text: "Weather"
|
||||||
font.pixelSize: 18 * Theme.scale(Screen)
|
font.pixelSize: 18 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
Layout.bottomMargin: 16 * Theme.scale(Screen)
|
Layout.bottomMargin: 16 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 8
|
spacing: 8
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.bottomMargin: 8 * Theme.scale(Screen)
|
Layout.bottomMargin: 8 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "City"
|
text: "City"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Your city name for weather information"
|
text: "Your city name for weather information"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -106,7 +106,7 @@ ColumnLayout {
|
||||||
anchors.topMargin: 6
|
anchors.topMargin: 6
|
||||||
anchors.bottomMargin: 6
|
anchors.bottomMargin: 6
|
||||||
text: Settings.settings.weatherCity
|
text: Settings.settings.weatherCity
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: TextInput.AlignVCenter
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
clip: true
|
clip: true
|
||||||
|
|
@ -147,14 +147,14 @@ ColumnLayout {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Temperature Unit"
|
text: "Temperature Unit"
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Choose between Celsius and Fahrenheit"
|
text: "Choose between Celsius and Fahrenheit"
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ Item {
|
||||||
id: iconText
|
id: iconText
|
||||||
text: "dashboard"
|
text: "dashboard"
|
||||||
font.family: isActive ? "Material Symbols Rounded" : "Material Symbols Outlined"
|
font.family: isActive ? "Material Symbols Rounded" : "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: sidebarPopup.visible ? Theme.accentPrimary : Theme.textPrimary
|
color: sidebarPopup.visible ? Theme.accentPrimary : Theme.textPrimary
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
z: 1
|
z: 1
|
||||||
|
|
|
||||||
|
|
@ -8,15 +8,13 @@ import qs.Services
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: musicCard
|
id: musicCard
|
||||||
width: 360 * Theme.scale(Screen)
|
|
||||||
height: 250 * Theme.scale(Screen)
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: card
|
id: card
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
radius: 18 * Theme.scale(Screen)
|
radius: 18
|
||||||
|
|
||||||
// Show fallback UI if no player is available
|
// Show fallback UI if no player is available
|
||||||
Item {
|
Item {
|
||||||
|
|
@ -26,12 +24,12 @@ Rectangle {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 16 * Theme.scale(Screen)
|
spacing: 16 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "music_note"
|
text: "music_note"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: Theme.fontSizeHeader * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeHeader * Theme.scale(screen)
|
||||||
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.3)
|
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.3)
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
@ -40,7 +38,7 @@ Rectangle {
|
||||||
text: MusicManager.hasPlayer ? "No controllable player selected" : "No music player detected"
|
text: MusicManager.hasPlayer ? "No controllable player selected" : "No music player detected"
|
||||||
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.6)
|
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.6)
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: Theme.fontSizeSmall * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeSmall * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -49,45 +47,45 @@ Rectangle {
|
||||||
// Main player UI
|
// Main player UI
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 18 * Theme.scale(Screen)
|
anchors.margins: 18 * Theme.scale(screen)
|
||||||
spacing: 12 * Theme.scale(Screen)
|
spacing: 12 * Theme.scale(screen)
|
||||||
visible: !!MusicManager.currentPlayer
|
visible: !!MusicManager.currentPlayer
|
||||||
|
|
||||||
// Player selector
|
// Player selector
|
||||||
ComboBox {
|
ComboBox {
|
||||||
id: playerSelector
|
id: playerSelector
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 40 * Theme.scale(Screen)
|
Layout.preferredHeight: 40 * Theme.scale(screen)
|
||||||
visible: MusicManager.getAvailablePlayers().length > 1
|
visible: MusicManager.getAvailablePlayers().length > 1
|
||||||
model: MusicManager.getAvailablePlayers()
|
model: MusicManager.getAvailablePlayers()
|
||||||
textRole: "identity"
|
textRole: "identity"
|
||||||
currentIndex: MusicManager.selectedPlayerIndex
|
currentIndex: MusicManager.selectedPlayerIndex
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
implicitWidth: 120 * Theme.scale(Screen)
|
implicitWidth: 120 * Theme.scale(screen)
|
||||||
implicitHeight: 40 * Theme.scale(Screen)
|
implicitHeight: 40 * Theme.scale(screen)
|
||||||
color: Theme.surfaceVariant
|
color: Theme.surfaceVariant
|
||||||
border.color: playerSelector.activeFocus ? Theme.accentPrimary : Theme.outline
|
border.color: playerSelector.activeFocus ? Theme.accentPrimary : Theme.outline
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
radius: 16 * Theme.scale(Screen)
|
radius: 16
|
||||||
}
|
}
|
||||||
|
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
leftPadding: 12 * Theme.scale(Screen)
|
leftPadding: 12 * Theme.scale(screen)
|
||||||
rightPadding: playerSelector.indicator.width + playerSelector.spacing
|
rightPadding: playerSelector.indicator.width + playerSelector.spacing
|
||||||
text: playerSelector.displayText
|
text: playerSelector.displayText
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
|
|
||||||
indicator: Text {
|
indicator: Text {
|
||||||
x: playerSelector.width - width - 12 * Theme.scale(Screen)
|
x: playerSelector.width - width - 12 * Theme.scale(screen)
|
||||||
y: playerSelector.topPadding + (playerSelector.availableHeight - height) / 2
|
y: playerSelector.topPadding + (playerSelector.availableHeight - height) / 2
|
||||||
text: "arrow_drop_down"
|
text: "arrow_drop_down"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -95,7 +93,7 @@ Rectangle {
|
||||||
y: playerSelector.height
|
y: playerSelector.height
|
||||||
width: playerSelector.width
|
width: playerSelector.width
|
||||||
implicitHeight: contentItem.implicitHeight
|
implicitHeight: contentItem.implicitHeight
|
||||||
padding: 1 * Theme.scale(Screen)
|
padding: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
contentItem: ListView {
|
contentItem: ListView {
|
||||||
clip: true
|
clip: true
|
||||||
|
|
@ -109,8 +107,8 @@ Rectangle {
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: Theme.surfaceVariant
|
color: Theme.surfaceVariant
|
||||||
border.color: Theme.outline
|
border.color: Theme.outline
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
radius: 16 * Theme.scale(Screen)
|
radius: 16
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -118,7 +116,7 @@ Rectangle {
|
||||||
width: playerSelector.width
|
width: playerSelector.width
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
text: modelData.identity
|
text: modelData.identity
|
||||||
font.pixelSize: 13 * Theme.scale(Screen)
|
font.pixelSize: 13 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
@ -138,14 +136,14 @@ Rectangle {
|
||||||
|
|
||||||
// Album art with spectrum visualizer
|
// Album art with spectrum visualizer
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 12 * Theme.scale(Screen)
|
spacing: 12 * Theme.scale(screen)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
// Album art container with circular spectrum overlay
|
// Album art container with circular spectrum overlay
|
||||||
Item {
|
Item {
|
||||||
id: albumArtContainer
|
id: albumArtContainer
|
||||||
width: 96 * Theme.scale(Screen)
|
width: 96 * Theme.scale(screen)
|
||||||
height: 96 * Theme.scale(Screen) // enough for spectrum and art (will adjust if needed)
|
height: 96 * Theme.scale(screen) // enough for spectrum and art (will adjust if needed)
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||||
|
|
||||||
// Circular spectrum visualizer around album art
|
// Circular spectrum visualizer around album art
|
||||||
|
|
@ -153,36 +151,36 @@ Rectangle {
|
||||||
id: spectrum
|
id: spectrum
|
||||||
values: MusicManager.cavaValues
|
values: MusicManager.cavaValues
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
innerRadius: 30 * Theme.scale(Screen) // Position just outside 60x60 album art
|
innerRadius: 30 * Theme.scale(screen) // Position just outside 60x60 album art
|
||||||
outerRadius: 48 * Theme.scale(Screen) // Extend bars outward from album art
|
outerRadius: 48 * Theme.scale(screen) // Extend bars outward from album art
|
||||||
fillColor: Theme.accentPrimary
|
fillColor: Theme.accentPrimary
|
||||||
strokeColor: Theme.accentPrimary
|
strokeColor: Theme.accentPrimary
|
||||||
strokeWidth: 0 * Theme.scale(Screen)
|
strokeWidth: 0 * Theme.scale(screen)
|
||||||
z: 0
|
z: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Album art image
|
// Album art image
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: albumArtwork
|
id: albumArtwork
|
||||||
width: 60 * Theme.scale(Screen)
|
width: 60 * Theme.scale(screen)
|
||||||
height: 60 * Theme.scale(Screen)
|
height: 60 * Theme.scale(screen)
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
radius: 30 * Theme.scale(Screen) // circle
|
radius: 30 // circle
|
||||||
color: Qt.darker(Theme.surface, 1.1)
|
color: Qt.darker(Theme.surface, 1.1)
|
||||||
border.color: Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.3)
|
border.color: Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.3)
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: albumArt
|
id: albumArt
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 2 * Theme.scale(Screen)
|
anchors.margins: 2 * Theme.scale(screen)
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
smooth: true
|
smooth: true
|
||||||
mipmap: true
|
mipmap: true
|
||||||
cache: false
|
cache: false
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
sourceSize.width: 60 * Theme.scale(Screen)
|
sourceSize.width: 60 * Theme.scale(screen)
|
||||||
sourceSize.height: 60 * Theme.scale(Screen)
|
sourceSize.height: 60 * Theme.scale(screen)
|
||||||
source: MusicManager.trackArtUrl
|
source: MusicManager.trackArtUrl
|
||||||
visible: source.toString() !== ""
|
visible: source.toString() !== ""
|
||||||
|
|
||||||
|
|
@ -213,7 +211,7 @@ Rectangle {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "album"
|
text: "album"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: Theme.fontSizeBody * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeBody * Theme.scale(screen)
|
||||||
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.4)
|
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.4)
|
||||||
visible: !albumArt.visible
|
visible: !albumArt.visible
|
||||||
}
|
}
|
||||||
|
|
@ -223,13 +221,13 @@ Rectangle {
|
||||||
// Track metadata
|
// Track metadata
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
spacing: 4 * Theme.scale(Screen)
|
spacing: 4 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: MusicManager.trackTitle
|
text: MusicManager.trackTitle
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: Theme.fontSizeSmall * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeSmall * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
|
@ -241,7 +239,7 @@ Rectangle {
|
||||||
text: MusicManager.trackArtist
|
text: MusicManager.trackArtist
|
||||||
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.8)
|
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.8)
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: Theme.fontSizeCaption * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeCaption * Theme.scale(screen)
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -250,7 +248,7 @@ Rectangle {
|
||||||
text: MusicManager.trackAlbum
|
text: MusicManager.trackAlbum
|
||||||
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.6)
|
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.6)
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: Theme.fontSizeCaption * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeCaption * Theme.scale(screen)
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -261,8 +259,8 @@ Rectangle {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: progressBarBackground
|
id: progressBarBackground
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 6 * Theme.scale(Screen)
|
height: 6 * Theme.scale(screen)
|
||||||
radius: 3 * Theme.scale(Screen)
|
radius: 3
|
||||||
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.15)
|
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.15)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
|
@ -290,12 +288,12 @@ Rectangle {
|
||||||
// Interactive progress handle
|
// Interactive progress handle
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: progressHandle
|
id: progressHandle
|
||||||
width: 12 * Theme.scale(Screen)
|
width: 12 * Theme.scale(screen)
|
||||||
height: 12 * Theme.scale(Screen)
|
height: 12 * Theme.scale(screen)
|
||||||
radius: 6 * Theme.scale(Screen)
|
radius: 6
|
||||||
color: Theme.accentPrimary
|
color: Theme.accentPrimary
|
||||||
border.color: Qt.lighter(Theme.accentPrimary, 1.3)
|
border.color: Qt.lighter(Theme.accentPrimary, 1.3)
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
x: Math.max(0, Math.min(parent.width - width, progressFill.width - width / 2))
|
x: Math.max(0, Math.min(parent.width - width, progressFill.width - width / 2))
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -334,18 +332,18 @@ Rectangle {
|
||||||
|
|
||||||
// Media controls
|
// Media controls
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 4 * Theme.scale(Screen)
|
spacing: 4 * Theme.scale(screen)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
||||||
// Previous button
|
// Previous button
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 28 * Theme.scale(Screen)
|
width: 28 * Theme.scale(screen)
|
||||||
height: 28 * Theme.scale(Screen)
|
height: 28 * Theme.scale(screen)
|
||||||
radius: 14 * Theme.scale(Screen)
|
radius: 14
|
||||||
color: previousButton.containsMouse ? Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.2) : Qt.darker(Theme.surface, 1.1)
|
color: previousButton.containsMouse ? Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.2) : Qt.darker(Theme.surface, 1.1)
|
||||||
border.color: Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.3)
|
border.color: Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.3)
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: previousButton
|
id: previousButton
|
||||||
|
|
@ -360,19 +358,19 @@ Rectangle {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "skip_previous"
|
text: "skip_previous"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: Theme.fontSizeCaption * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeCaption * Theme.scale(screen)
|
||||||
color: previousButton.enabled ? Theme.accentPrimary : Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.3)
|
color: previousButton.enabled ? Theme.accentPrimary : Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.3)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Play/Pause button
|
// Play/Pause button
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 36 * Theme.scale(Screen)
|
width: 36 * Theme.scale(screen)
|
||||||
height: 36 * Theme.scale(Screen)
|
height: 36 * Theme.scale(screen)
|
||||||
radius: 18 * Theme.scale(Screen)
|
radius: 18
|
||||||
color: playButton.containsMouse ? Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.2) : Qt.darker(Theme.surface, 1.1)
|
color: playButton.containsMouse ? Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.2) : Qt.darker(Theme.surface, 1.1)
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 2 * Theme.scale(Screen)
|
border.width: 2 * Theme.scale(screen)
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: playButton
|
id: playButton
|
||||||
|
|
@ -387,19 +385,19 @@ Rectangle {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: MusicManager.isPlaying ? "pause" : "play_arrow"
|
text: MusicManager.isPlaying ? "pause" : "play_arrow"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: Theme.fontSizeBody * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeBody * Theme.scale(screen)
|
||||||
color: playButton.enabled ? Theme.accentPrimary : Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.3)
|
color: playButton.enabled ? Theme.accentPrimary : Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.3)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Next button
|
// Next button
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 28 * Theme.scale(Screen)
|
width: 28 * Theme.scale(screen)
|
||||||
height: 28 * Theme.scale(Screen)
|
height: 28 * Theme.scale(screen)
|
||||||
radius: 14 * Theme.scale(Screen)
|
radius: 14
|
||||||
color: nextButton.containsMouse ? Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.2) : Qt.darker(Theme.surface, 1.1)
|
color: nextButton.containsMouse ? Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.2) : Qt.darker(Theme.surface, 1.1)
|
||||||
border.color: Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.3)
|
border.color: Qt.rgba(Theme.accentPrimary.r, Theme.accentPrimary.g, Theme.accentPrimary.b, 0.3)
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: nextButton
|
id: nextButton
|
||||||
|
|
@ -414,7 +412,7 @@ Rectangle {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "skip_next"
|
text: "skip_next"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: Theme.fontSizeCaption * Theme.scale(Screen)
|
font.pixelSize: Theme.fontSizeCaption * Theme.scale(screen)
|
||||||
color: nextButton.enabled ? Theme.accentPrimary : Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.3)
|
color: nextButton.enabled ? Theme.accentPrimary : Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.3)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@ PanelWithOverlay {
|
||||||
|
|
||||||
property real slideOffset: width
|
property real slideOffset: width
|
||||||
property bool isAnimating: false
|
property bool isAnimating: false
|
||||||
property int leftPadding: 20 * Theme.scale(Screen)
|
property int leftPadding: 20 * Theme.scale(screen)
|
||||||
property int bottomPadding: 20 * Theme.scale(Screen)
|
property int bottomPadding: 20 * Theme.scale(screen)
|
||||||
// Recording properties
|
// Recording properties
|
||||||
property bool isRecording: false
|
property bool isRecording: false
|
||||||
|
|
||||||
|
|
@ -113,10 +113,8 @@ PanelWithOverlay {
|
||||||
isRecording = false;
|
isRecording = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Necessary for the scaling to work on smaller screens
|
width: 480 * Theme.scale(screen)
|
||||||
width: 526
|
height: 660 * Theme.scale(screen)
|
||||||
implicitWidth: 500 * Theme.scale(Screen)
|
|
||||||
implicitHeight: 700 * Theme.scale(Screen)
|
|
||||||
visible: parent.visible
|
visible: parent.visible
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
@ -172,15 +170,13 @@ PanelWithOverlay {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: mainRectangle
|
id: mainRectangle
|
||||||
|
|
||||||
anchors.top: sidebarPopupRect.top
|
// anchors.top: sidebarPopupRect.top
|
||||||
width: sidebarPopupRect.width - sidebarPopupRect.leftPadding
|
width: sidebarPopupRect.width - sidebarPopupRect.leftPadding
|
||||||
height: sidebarPopupRect.height - sidebarPopupRect.bottomPadding
|
height: sidebarPopupRect.height - sidebarPopupRect.bottomPadding
|
||||||
x: sidebarPopupRect.leftPadding + sidebarPopupRect.slideOffset
|
x: sidebarPopupRect.leftPadding + sidebarPopupRect.slideOffset
|
||||||
y: 0
|
|
||||||
z: 0
|
|
||||||
color: Theme.backgroundPrimary
|
color: Theme.backgroundPrimary
|
||||||
anchors.fill: parent
|
// anchors.fill: parent
|
||||||
bottomLeftRadius: 20 * Theme.scale(Screen)
|
bottomLeftRadius: 20
|
||||||
|
|
||||||
Behavior on x {
|
Behavior on x {
|
||||||
enabled: !sidebarPopupRect.isAnimating
|
enabled: !sidebarPopupRect.isAnimating
|
||||||
|
|
@ -212,83 +208,84 @@ PanelWithOverlay {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 20 * Theme.scale(Screen)
|
spacing: 8 * Theme.scale(screen)
|
||||||
spacing: 8 * Theme.scale(Screen)
|
|
||||||
|
|
||||||
System {
|
System {
|
||||||
id: systemWidget
|
id: systemWidget
|
||||||
|
|
||||||
|
width: 420 * Theme.scale(screen)
|
||||||
|
height: 80 * Theme.scale(screen)
|
||||||
settingsModal: settingsModal
|
settingsModal: settingsModal
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
z: 3
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Weather {
|
Weather {
|
||||||
id: weather
|
id: weather
|
||||||
|
|
||||||
|
width: 420 * Theme.scale(screen)
|
||||||
|
height: 180 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
z: 2
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Music and System Monitor row
|
// Music and System Monitor row
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 8 * Theme.scale(Screen)
|
spacing: 8 * Theme.scale(screen)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
||||||
Music {
|
Music {
|
||||||
z: 2
|
width: 332 * Theme.scale(screen)
|
||||||
|
height: 250 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
SystemMonitor {
|
SystemMonitor {
|
||||||
id: systemMonitor
|
width: 80 * Theme.scale(screen)
|
||||||
|
height: 250 * Theme.scale(screen)
|
||||||
z: 2
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Power profile, Record and Wallpaper row
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
spacing: 8 * Theme.scale(screen)
|
||||||
spacing: 10 * Theme.scale(Screen)
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 80 * Theme.scale(Screen)
|
Layout.alignment: Qt.AlignHCenter
|
||||||
z: 3
|
|
||||||
|
|
||||||
PowerProfile {
|
PowerProfile {
|
||||||
|
width: 206 * Theme.scale(screen)
|
||||||
|
height: 70 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
Layout.preferredHeight: 80 * Theme.scale(Screen)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Record and Wallpaper card
|
// Record and Wallpaper card
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.preferredHeight: 80 * Theme.scale(Screen)
|
width: 206 * Theme.scale(screen)
|
||||||
Layout.preferredWidth: 140 * Theme.scale(Screen)
|
height: 70 * Theme.scale(screen)
|
||||||
Layout.fillWidth: false
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
radius: 18 * Theme.scale(Screen)
|
radius: 16
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
spacing: 20 * Theme.scale(Screen)
|
spacing: 20 * Theme.scale(screen)
|
||||||
|
|
||||||
// Record button
|
// Record button
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: recordButton
|
id: recordButton
|
||||||
|
|
||||||
width: 36 * Theme.scale(Screen)
|
width: 36 * Theme.scale(screen)
|
||||||
height: 36 * Theme.scale(Screen)
|
height: 36 * Theme.scale(screen)
|
||||||
radius: 18 * Theme.scale(Screen)
|
radius: 18
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
color: sidebarPopupRect.isRecording ? Theme.accentPrimary : (recordButtonArea.containsMouse ? Theme.accentPrimary : "transparent")
|
color: sidebarPopupRect.isRecording ? Theme.accentPrimary : (recordButtonArea.containsMouse ? Theme.accentPrimary : "transparent")
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "photo_camera"
|
text: "photo_camera"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 22 * Theme.scale(Screen)
|
font.pixelSize: 22 * Theme.scale(screen)
|
||||||
color: sidebarPopupRect.isRecording || recordButtonArea.containsMouse ? Theme.backgroundPrimary : Theme.accentPrimary
|
color: sidebarPopupRect.isRecording || recordButtonArea.containsMouse ? Theme.backgroundPrimary : Theme.accentPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
@ -323,18 +320,18 @@ PanelWithOverlay {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: wallpaperButton
|
id: wallpaperButton
|
||||||
|
|
||||||
width: 36 * Theme.scale(Screen)
|
width: 36 * Theme.scale(screen)
|
||||||
height: 36 * Theme.scale(Screen)
|
height: 36 * Theme.scale(screen)
|
||||||
radius: 18 * Theme.scale(Screen)
|
radius: 18
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
color: wallpaperButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
color: wallpaperButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "image"
|
text: "image"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 22 * Theme.scale(Screen)
|
font.pixelSize: 22 * Theme.scale(screen)
|
||||||
color: wallpaperButtonArea.containsMouse ? Theme.backgroundPrimary : Theme.accentPrimary
|
color: wallpaperButtonArea.containsMouse ? Theme.backgroundPrimary : Theme.accentPrimary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
@ -368,6 +365,11 @@ PanelWithOverlay {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
height: 8 * Theme.scale(screen)
|
||||||
|
color: "transparent"
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on x {
|
Behavior on x {
|
||||||
|
|
|
||||||
|
|
@ -7,22 +7,20 @@ import qs.Components
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: card
|
id: card
|
||||||
width: 200 * Theme.scale(Screen)
|
|
||||||
height: 70 * Theme.scale(Screen)
|
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
radius: 18 * Theme.scale(Screen)
|
radius: 16
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
spacing: 20 * Theme.scale(Screen)
|
spacing: 20 * Theme.scale(screen)
|
||||||
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 36 * Theme.scale(Screen); height: 36 * Theme.scale(Screen)
|
width: 36 * Theme.scale(screen); height: 36 * Theme.scale(screen)
|
||||||
radius: 18 * Theme.scale(Screen)
|
radius: 16
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
color: (typeof PowerProfiles !== 'undefined' && PowerProfiles.profile === PowerProfile.Performance)
|
color: (typeof PowerProfiles !== 'undefined' && PowerProfiles.profile === PowerProfile.Performance)
|
||||||
? Theme.accentPrimary
|
? Theme.accentPrimary
|
||||||
: (perfMouseArea.containsMouse ? Theme.accentPrimary : "transparent")
|
: (perfMouseArea.containsMouse ? Theme.accentPrimary : "transparent")
|
||||||
|
|
@ -33,7 +31,7 @@ Rectangle {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "speed"
|
text: "speed"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 22 * Theme.scale(Screen)
|
font.pixelSize: 22 * Theme.scale(screen)
|
||||||
color: (typeof PowerProfiles !== 'undefined' && PowerProfiles.profile === PowerProfile.Performance) || perfMouseArea.containsMouse
|
color: (typeof PowerProfiles !== 'undefined' && PowerProfiles.profile === PowerProfile.Performance) || perfMouseArea.containsMouse
|
||||||
? Theme.backgroundPrimary
|
? Theme.backgroundPrimary
|
||||||
: Theme.accentPrimary
|
: Theme.accentPrimary
|
||||||
|
|
@ -65,10 +63,10 @@ Rectangle {
|
||||||
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 36 * Theme.scale(Screen); height: 36 * Theme.scale(Screen)
|
width: 36 * Theme.scale(screen); height: 36 * Theme.scale(screen)
|
||||||
radius: 18 * Theme.scale(Screen)
|
radius: 18
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
color: (typeof PowerProfiles !== 'undefined' && PowerProfiles.profile === PowerProfile.Balanced)
|
color: (typeof PowerProfiles !== 'undefined' && PowerProfiles.profile === PowerProfile.Balanced)
|
||||||
? Theme.accentPrimary
|
? Theme.accentPrimary
|
||||||
: (balMouseArea.containsMouse ? Theme.accentPrimary : "transparent")
|
: (balMouseArea.containsMouse ? Theme.accentPrimary : "transparent")
|
||||||
|
|
@ -79,7 +77,7 @@ Rectangle {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "balance"
|
text: "balance"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 22 * Theme.scale(Screen)
|
font.pixelSize: 22 * Theme.scale(screen)
|
||||||
color: (typeof PowerProfiles !== 'undefined' && PowerProfiles.profile === PowerProfile.Balanced) || balMouseArea.containsMouse
|
color: (typeof PowerProfiles !== 'undefined' && PowerProfiles.profile === PowerProfile.Balanced) || balMouseArea.containsMouse
|
||||||
? Theme.backgroundPrimary
|
? Theme.backgroundPrimary
|
||||||
: Theme.accentPrimary
|
: Theme.accentPrimary
|
||||||
|
|
@ -111,10 +109,10 @@ Rectangle {
|
||||||
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 36 * Theme.scale(Screen); height: 36 * Theme.scale(Screen)
|
width: 36 * Theme.scale(screen); height: 36 * Theme.scale(screen)
|
||||||
radius: 18 * Theme.scale(Screen)
|
radius: 18
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
color: (typeof PowerProfiles !== 'undefined' && PowerProfiles.profile === PowerProfile.PowerSaver)
|
color: (typeof PowerProfiles !== 'undefined' && PowerProfiles.profile === PowerProfile.PowerSaver)
|
||||||
? Theme.accentPrimary
|
? Theme.accentPrimary
|
||||||
: (saveMouseArea.containsMouse ? Theme.accentPrimary : "transparent")
|
: (saveMouseArea.containsMouse ? Theme.accentPrimary : "transparent")
|
||||||
|
|
@ -125,7 +123,7 @@ Rectangle {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "eco"
|
text: "eco"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 22 * Theme.scale(Screen)
|
font.pixelSize: 22 * Theme.scale(screen)
|
||||||
color: (typeof PowerProfiles !== 'undefined' && PowerProfiles.profile === PowerProfile.PowerSaver) || saveMouseArea.containsMouse
|
color: (typeof PowerProfiles !== 'undefined' && PowerProfiles.profile === PowerProfile.PowerSaver) || saveMouseArea.containsMouse
|
||||||
? Theme.backgroundPrimary
|
? Theme.backgroundPrimary
|
||||||
: Theme.accentPrimary
|
: Theme.accentPrimary
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ import qs.Components
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: settingsModal
|
id: settingsModal
|
||||||
implicitWidth: 480 * Theme.scale(Screen)
|
implicitWidth: 480 * Theme.scale(screen)
|
||||||
implicitHeight: 780 * Theme.scale(Screen)
|
implicitHeight: 780 * Theme.scale(screen)
|
||||||
visible: false
|
visible: false
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
anchors.top: true
|
anchors.top: true
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ import qs.Components
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: settingsModal
|
id: settingsModal
|
||||||
implicitWidth: 480 * Theme.scale(Screen)
|
implicitWidth: 480 * Theme.scale(screen)
|
||||||
implicitHeight: 780 * Theme.scale(Screen)
|
implicitHeight: 780 * Theme.scale(screen)
|
||||||
visible: false
|
visible: false
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
anchors.top: true
|
anchors.top: true
|
||||||
|
|
|
||||||
|
|
@ -44,10 +44,8 @@ Rectangle {
|
||||||
uptimeProcess.running = true;
|
uptimeProcess.running = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
width: 440 * Theme.scale(Screen)
|
|
||||||
height: 80 * Theme.scale(Screen)
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
anchors.horizontalCenterOffset: -2
|
// anchors.horizontalCenterOffset: -2
|
||||||
onPanelVisibleChanged: {
|
onPanelVisibleChanged: {
|
||||||
if (panelVisible)
|
if (panelVisible)
|
||||||
updateSystemInfo();
|
updateSystemInfo();
|
||||||
|
|
@ -62,29 +60,29 @@ Rectangle {
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
radius: 18 * Theme.scale(Screen)
|
radius: 18
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 18 * Theme.scale(Screen)
|
anchors.margins: 18 * Theme.scale(screen)
|
||||||
spacing: 12 * Theme.scale(Screen)
|
spacing: 12 * Theme.scale(screen)
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
spacing: 12 * Theme.scale(Screen)
|
spacing: 12 * Theme.scale(screen)
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 48 * Theme.scale(Screen)
|
width: 48 * Theme.scale(screen)
|
||||||
height: 48 * Theme.scale(Screen)
|
height: 48 * Theme.scale(screen)
|
||||||
radius: 24 * Theme.scale(Screen)
|
radius: 24
|
||||||
color: Theme.accentPrimary
|
color: Theme.accentPrimary
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
radius: 24 * Theme.scale(Screen)
|
radius: 24
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 2 * Theme.scale(Screen)
|
border.width: 2 * Theme.scale(screen)
|
||||||
z: 2
|
z: 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -94,13 +92,13 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 4 * Theme.scale(Screen)
|
spacing: 4 * Theme.scale(screen)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: Quickshell.env("USER")
|
text: Quickshell.env("USER")
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
@ -108,7 +106,7 @@ Rectangle {
|
||||||
Text {
|
Text {
|
||||||
text: "System Uptime: " + uptimeText
|
text: "System Uptime: " + uptimeText
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -121,21 +119,23 @@ Rectangle {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: settingsButton
|
id: settingsButton
|
||||||
|
|
||||||
width: 32 * Theme.scale(Screen)
|
width: 32 * Theme.scale(screen)
|
||||||
height: 32 * Theme.scale(Screen)
|
height: 32 * Theme.scale(screen)
|
||||||
radius: 16 * Theme.scale(Screen)
|
radius: 16
|
||||||
color: settingsButtonArea.containsMouse || settingsButtonArea.pressed ? Theme.accentPrimary : "transparent"
|
color: settingsButtonArea.containsMouse || settingsButtonArea.pressed ? Theme.accentPrimary : "transparent"
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
anchors.horizontalCenterOffset: -0.5 * Theme.scale(Screen)
|
anchors.horizontalCenterOffset: -0.5 * Theme.scale(screen)
|
||||||
text: "settings"
|
text: "settings"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: settingsButtonArea.containsMouse || settingsButtonArea.pressed ? Theme.backgroundPrimary : Theme.accentPrimary
|
color: settingsButtonArea.containsMouse || settingsButtonArea.pressed ? Theme.backgroundPrimary : Theme.accentPrimary
|
||||||
font.variableAxes: { "wght": (Font.Normal + Font.Bold) / 2.0 }
|
font.variableAxes: {
|
||||||
|
"wght": (Font.Normal + Font.Bold) / 2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
@ -164,21 +164,23 @@ Rectangle {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: systemButton
|
id: systemButton
|
||||||
|
|
||||||
width: 32 * Theme.scale(Screen)
|
width: 32 * Theme.scale(screen)
|
||||||
height: 32 * Theme.scale(Screen)
|
height: 32 * Theme.scale(screen)
|
||||||
radius: 16 * Theme.scale(Screen)
|
radius: 16
|
||||||
color: systemButtonArea.containsMouse || systemButtonArea.pressed ? Theme.accentPrimary : "transparent"
|
color: systemButtonArea.containsMouse || systemButtonArea.pressed ? Theme.accentPrimary : "transparent"
|
||||||
border.color: Theme.accentPrimary
|
border.color: Theme.accentPrimary
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
anchors.horizontalCenterOffset: -0.5 * Theme.scale(Screen)
|
anchors.horizontalCenterOffset: -0.5 * Theme.scale(screen)
|
||||||
text: "power_settings_new"
|
text: "power_settings_new"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: systemButtonArea.containsMouse || systemButtonArea.pressed ? Theme.backgroundPrimary : Theme.accentPrimary
|
color: systemButtonArea.containsMouse || systemButtonArea.pressed ? Theme.backgroundPrimary : Theme.accentPrimary
|
||||||
font.variableAxes: { "wght": (Font.Normal + Font.Bold) / 2.0 }
|
font.variableAxes: {
|
||||||
|
"wght": (Font.Normal + Font.Bold) / 2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
@ -215,18 +217,18 @@ Rectangle {
|
||||||
anchors.right: systemButton.right
|
anchors.right: systemButton.right
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 160 * Theme.scale(Screen)
|
width: 160 * Theme.scale(screen)
|
||||||
height: 220 * Theme.scale(Screen)
|
height: 220 * Theme.scale(screen)
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
radius: 8 * Theme.scale(Screen)
|
radius: 8
|
||||||
border.color: Theme.outline
|
border.color: Theme.outline
|
||||||
border.width: 1 * Theme.scale(Screen)
|
border.width: 1 * Theme.scale(screen)
|
||||||
visible: true
|
visible: true
|
||||||
z: 9999
|
z: 9999
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: 32 * Theme.scale(Screen)
|
anchors.rightMargin: 32 * Theme.scale(screen)
|
||||||
anchors.topMargin: systemButton.y + systemButton.height + 48 * Theme.scale(Screen)
|
anchors.topMargin: systemButton.y + systemButton.height + 48 * Theme.scale(screen)
|
||||||
|
|
||||||
// Prevent closing when clicking in the panel bg
|
// Prevent closing when clicking in the panel bg
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
@ -235,31 +237,31 @@ Rectangle {
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 8 * Theme.scale(Screen)
|
anchors.margins: 8 * Theme.scale(screen)
|
||||||
spacing: 4 * Theme.scale(Screen)
|
spacing: 4 * Theme.scale(screen)
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 36 * Theme.scale(Screen)
|
Layout.preferredHeight: 36 * Theme.scale(screen)
|
||||||
radius: 6 * Theme.scale(Screen)
|
radius: 6
|
||||||
color: lockButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
color: lockButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 12 * Theme.scale(Screen)
|
anchors.margins: 12 * Theme.scale(screen)
|
||||||
spacing: 8 * Theme.scale(Screen)
|
spacing: 8 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "lock_outline"
|
text: "lock_outline"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: lockButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
color: lockButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Lock Screen"
|
text: "Lock Screen"
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
color: lockButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
color: lockButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -282,25 +284,25 @@ Rectangle {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 36 * Theme.scale(Screen)
|
Layout.preferredHeight: 36 * Theme.scale(screen)
|
||||||
radius: 6 * Theme.scale(Screen)
|
radius: 6
|
||||||
color: suspendButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
color: suspendButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 12 * Theme.scale(Screen)
|
anchors.margins: 12 * Theme.scale(screen)
|
||||||
spacing: 8 * Theme.scale(Screen)
|
spacing: 8 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "bedtime"
|
text: "bedtime"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: suspendButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
color: suspendButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Suspend"
|
text: "Suspend"
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
color: suspendButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
color: suspendButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -323,26 +325,26 @@ Rectangle {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 36 * Theme.scale(Screen)
|
Layout.preferredHeight: 36 * Theme.scale(screen)
|
||||||
radius: 6 * Theme.scale(Screen)
|
radius: 6
|
||||||
color: rebootButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
color: rebootButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 12 * Theme.scale(Screen)
|
anchors.margins: 12 * Theme.scale(screen)
|
||||||
spacing: 8 * Theme.scale(Screen)
|
spacing: 8 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "refresh"
|
text: "refresh"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: rebootButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
color: rebootButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Reboot"
|
text: "Reboot"
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
color: rebootButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
color: rebootButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -365,25 +367,25 @@ Rectangle {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 36 * Theme.scale(Screen)
|
Layout.preferredHeight: 36 * Theme.scale(screen)
|
||||||
radius: 6 * Theme.scale(Screen)
|
radius: 6
|
||||||
color: logoutButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
color: logoutButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 12 * Theme.scale(Screen)
|
anchors.margins: 12 * Theme.scale(screen)
|
||||||
spacing: 8 * Theme.scale(Screen)
|
spacing: 8 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "exit_to_app"
|
text: "exit_to_app"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: logoutButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
color: logoutButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Logout"
|
text: "Logout"
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
color: logoutButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
color: logoutButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -406,25 +408,25 @@ Rectangle {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 36 * Theme.scale(Screen)
|
Layout.preferredHeight: 36 * Theme.scale(screen)
|
||||||
radius: 6 * Theme.scale(Screen)
|
radius: 6
|
||||||
color: shutdownButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
color: shutdownButtonArea.containsMouse ? Theme.accentPrimary : "transparent"
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 12 * Theme.scale(Screen)
|
anchors.margins: 12 * Theme.scale(screen)
|
||||||
spacing: 8 * Theme.scale(Screen)
|
spacing: 8 * Theme.scale(screen)
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "power_settings_new"
|
text: "power_settings_new"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 16 * Theme.scale(Screen)
|
font.pixelSize: 16 * Theme.scale(screen)
|
||||||
color: shutdownButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
color: shutdownButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Shutdown"
|
text: "Shutdown"
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
color: shutdownButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
color: shutdownButtonArea.containsMouse ? Theme.onAccent : Theme.textPrimary
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -514,4 +516,5 @@ Rectangle {
|
||||||
running: panelVisible
|
running: panelVisible
|
||||||
onTriggered: updateSystemInfo()
|
onTriggered: updateSystemInfo()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,6 @@ import qs.Settings
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: systemMonitor
|
id: systemMonitor
|
||||||
width: 70 * Theme.scale(Screen)
|
|
||||||
height: 250 * Theme.scale(Screen)
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
// Track visibility state for panel integration
|
// Track visibility state for panel integration
|
||||||
|
|
@ -19,26 +17,26 @@ Rectangle {
|
||||||
id: card
|
id: card
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
radius: 18 * Theme.scale(Screen)
|
radius: 18
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 8 * Theme.scale(Screen)
|
anchors.margins: 8 * Theme.scale(screen)
|
||||||
spacing: 12 * Theme.scale(Screen)
|
spacing: 12 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
||||||
|
|
||||||
// CPU usage indicator with circular progress bar
|
// CPU usage indicator with circular progress bar
|
||||||
Item {
|
Item {
|
||||||
width: 50 * Theme.scale(Screen); height: 50 * Theme.scale(Screen)
|
width: 50 * Theme.scale(screen); height: 50 * Theme.scale(screen)
|
||||||
CircularProgressBar {
|
CircularProgressBar {
|
||||||
id: cpuBar
|
id: cpuBar
|
||||||
progress: Sysinfo.cpuUsage / 100
|
progress: Sysinfo.cpuUsage / 100
|
||||||
size: 50 * Theme.scale(Screen)
|
size: 50 * Theme.scale(screen)
|
||||||
strokeWidth: 4 * Theme.scale(Screen)
|
strokeWidth: 4 * Theme.scale(screen)
|
||||||
hasNotch: true
|
hasNotch: true
|
||||||
notchIcon: "speed"
|
notchIcon: "speed"
|
||||||
notchIconSize: 14 * Theme.scale(Screen)
|
notchIconSize: 14 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
@ -60,16 +58,16 @@ Rectangle {
|
||||||
|
|
||||||
// CPU temperature indicator with circular progress bar
|
// CPU temperature indicator with circular progress bar
|
||||||
Item {
|
Item {
|
||||||
width: 50 * Theme.scale(Screen); height: 50 * Theme.scale(Screen)
|
width: 50 * Theme.scale(screen); height: 50 * Theme.scale(screen)
|
||||||
CircularProgressBar {
|
CircularProgressBar {
|
||||||
id: tempBar
|
id: tempBar
|
||||||
progress: Sysinfo.cpuTemp / 100
|
progress: Sysinfo.cpuTemp / 100
|
||||||
size: 50 * Theme.scale(Screen)
|
size: 50 * Theme.scale(screen)
|
||||||
strokeWidth: 4 * Theme.scale(Screen)
|
strokeWidth: 4 * Theme.scale(screen)
|
||||||
hasNotch: true
|
hasNotch: true
|
||||||
units: "°C"
|
units: "°C"
|
||||||
notchIcon: "thermometer"
|
notchIcon: "thermometer"
|
||||||
notchIconSize: 14 * Theme.scale(Screen)
|
notchIconSize: 14 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
@ -91,15 +89,15 @@ Rectangle {
|
||||||
|
|
||||||
// Memory usage indicator with circular progress bar
|
// Memory usage indicator with circular progress bar
|
||||||
Item {
|
Item {
|
||||||
width: 50 * Theme.scale(Screen); height: 50 * Theme.scale(Screen)
|
width: 50 * Theme.scale(screen); height: 50 * Theme.scale(screen)
|
||||||
CircularProgressBar {
|
CircularProgressBar {
|
||||||
id: memBar
|
id: memBar
|
||||||
progress: Sysinfo.memoryUsagePer / 100
|
progress: Sysinfo.memoryUsagePer / 100
|
||||||
size: 50 * Theme.scale(Screen)
|
size: 50 * Theme.scale(screen)
|
||||||
strokeWidth: 4 * Theme.scale(Screen)
|
strokeWidth: 4 * Theme.scale(screen)
|
||||||
hasNotch: true
|
hasNotch: true
|
||||||
notchIcon: "memory"
|
notchIcon: "memory"
|
||||||
notchIconSize: 14 * Theme.scale(Screen)
|
notchIconSize: 14 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
@ -121,15 +119,15 @@ Rectangle {
|
||||||
|
|
||||||
// Disk usage indicator with circular progress bar
|
// Disk usage indicator with circular progress bar
|
||||||
Item {
|
Item {
|
||||||
width: 50 * Theme.scale(Screen); height: 50 * Theme.scale(Screen)
|
width: 50 * Theme.scale(screen); height: 50 * Theme.scale(screen)
|
||||||
CircularProgressBar {
|
CircularProgressBar {
|
||||||
id: diskBar
|
id: diskBar
|
||||||
progress: Sysinfo.diskUsage / 100
|
progress: Sysinfo.diskUsage / 100
|
||||||
size: 50 * Theme.scale(Screen)
|
size: 50 * Theme.scale(screen)
|
||||||
strokeWidth: 4 * Theme.scale(Screen)
|
strokeWidth: 4 * Theme.scale(screen)
|
||||||
hasNotch: true
|
hasNotch: true
|
||||||
notchIcon: "storage"
|
notchIcon: "storage"
|
||||||
notchIconSize: 14 * Theme.scale(Screen)
|
notchIconSize: 14 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,7 @@ import "../../Helpers/Weather.js" as WeatherHelper
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: weatherRoot
|
id: weatherRoot
|
||||||
width: 440 * Theme.scale(Screen)
|
|
||||||
height: 180 * Theme.scale(Screen)
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
anchors.horizontalCenterOffset: -2
|
|
||||||
|
|
||||||
property string city: Settings.settings.weatherCity !== undefined ? Settings.settings.weatherCity : ""
|
property string city: Settings.settings.weatherCity !== undefined ? Settings.settings.weatherCity : ""
|
||||||
property var weatherData: null
|
property var weatherData: null
|
||||||
|
|
@ -83,29 +80,29 @@ Rectangle {
|
||||||
id: card
|
id: card
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
radius: 18 * Theme.scale(Screen)
|
radius: 18
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 18 * Theme.scale(Screen)
|
anchors.margins: 18 * Theme.scale(screen)
|
||||||
spacing: 12 * Theme.scale(Screen)
|
spacing: 12 * Theme.scale(screen)
|
||||||
|
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 12 * Theme.scale(Screen)
|
spacing: 12 * Theme.scale(screen)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 12 * Theme.scale(Screen)
|
spacing: 12 * Theme.scale(screen)
|
||||||
Layout.preferredWidth: 140 * Theme.scale(Screen)
|
Layout.preferredWidth: 140 * Theme.scale(screen)
|
||||||
|
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: weatherIcon
|
id: weatherIcon
|
||||||
text: isLoading ? "sync" : (weatherData && weatherData.current_weather ? materialSymbolForCode(weatherData.current_weather.weathercode) : "cloud")
|
text: isLoading ? "sync" : (weatherData && weatherData.current_weather ? materialSymbolForCode(weatherData.current_weather.weathercode) : "cloud")
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 28 * Theme.scale(Screen)
|
font.pixelSize: 28 * Theme.scale(screen)
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
color: isLoading ? Theme.accentPrimary : Theme.accentPrimary
|
color: isLoading ? Theme.accentPrimary : Theme.accentPrimary
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
@ -121,28 +118,28 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 2 * Theme.scale(Screen)
|
spacing: 2 * Theme.scale(screen)
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 4 * Theme.scale(Screen)
|
spacing: 4 * Theme.scale(screen)
|
||||||
Text {
|
Text {
|
||||||
text: city
|
text: city
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 14 * Theme.scale(Screen)
|
font.pixelSize: 14 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
text: weatherData && weatherData.timezone_abbreviation ? `(${weatherData.timezone_abbreviation})` : ""
|
text: weatherData && weatherData.timezone_abbreviation ? `(${weatherData.timezone_abbreviation})` : ""
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 10 * Theme.scale(Screen)
|
font.pixelSize: 10 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
leftPadding: 2 * Theme.scale(Screen)
|
leftPadding: 2 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
text: weatherData && weatherData.current_weather ? ((Settings.settings.useFahrenheit !== undefined ? Settings.settings.useFahrenheit : false) ? `${Math.round(weatherData.current_weather.temperature * 9/5 + 32)}°F` : `${Math.round(weatherData.current_weather.temperature)}°C`) : ((Settings.settings.useFahrenheit !== undefined ? Settings.settings.useFahrenheit : false) ? "--°F" : "--°C")
|
text: weatherData && weatherData.current_weather ? ((Settings.settings.useFahrenheit !== undefined ? Settings.settings.useFahrenheit : false) ? `${Math.round(weatherData.current_weather.temperature * 9/5 + 32)}°F` : `${Math.round(weatherData.current_weather.temperature)}°C`) : ((Settings.settings.useFahrenheit !== undefined ? Settings.settings.useFahrenheit : false) ? "--°F" : "--°C")
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 24 * Theme.scale(Screen)
|
font.pixelSize: 24 * Theme.scale(screen)
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
}
|
}
|
||||||
|
|
@ -157,16 +154,16 @@ Rectangle {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 1 * Theme.scale(Screen)
|
height: 1 * Theme.scale(screen)
|
||||||
color: Qt.rgba(Theme.textSecondary.g, Theme.textSecondary.g, Theme.textSecondary.b, 0.12)
|
color: Qt.rgba(Theme.textSecondary.g, Theme.textSecondary.g, Theme.textSecondary.b, 0.12)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: 2 * Theme.scale(Screen)
|
Layout.topMargin: 2 * Theme.scale(screen)
|
||||||
Layout.bottomMargin: 2 * Theme.scale(Screen)
|
Layout.bottomMargin: 2 * Theme.scale(screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 12 * Theme.scale(Screen)
|
spacing: 12 * Theme.scale(screen)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
visible: weatherData && weatherData.daily && weatherData.daily.time
|
visible: weatherData && weatherData.daily && weatherData.daily.time
|
||||||
|
|
@ -174,13 +171,13 @@ Rectangle {
|
||||||
Repeater {
|
Repeater {
|
||||||
model: weatherData && weatherData.daily && weatherData.daily.time ? 5 : 0
|
model: weatherData && weatherData.daily && weatherData.daily.time ? 5 : 0
|
||||||
delegate: ColumnLayout {
|
delegate: ColumnLayout {
|
||||||
spacing: 2 * Theme.scale(Screen)
|
spacing: 2 * Theme.scale(screen)
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
Text {
|
Text {
|
||||||
|
|
||||||
text: Qt.formatDateTime(new Date(weatherData.daily.time[index]), "ddd")
|
text: Qt.formatDateTime(new Date(weatherData.daily.time[index]), "ddd")
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textSecondary
|
color: Theme.textSecondary
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
@ -189,7 +186,7 @@ Rectangle {
|
||||||
|
|
||||||
text: materialSymbolForCode(weatherData.daily.weathercode[index])
|
text: materialSymbolForCode(weatherData.daily.weathercode[index])
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pixelSize: 22 * Theme.scale(Screen)
|
font.pixelSize: 22 * Theme.scale(screen)
|
||||||
color: Theme.accentPrimary
|
color: Theme.accentPrimary
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
@ -198,7 +195,7 @@ Rectangle {
|
||||||
|
|
||||||
text: weatherData && weatherData.daily ? ((Settings.settings.useFahrenheit !== undefined ? Settings.settings.useFahrenheit : false) ? `${Math.round(weatherData.daily.temperature_2m_max[index] * 9/5 + 32)}° / ${Math.round(weatherData.daily.temperature_2m_min[index] * 9/5 + 32)}°` : `${Math.round(weatherData.daily.temperature_2m_max[index])}° / ${Math.round(weatherData.daily.temperature_2m_min[index])}°`) : ((Settings.settings.useFahrenheit !== undefined ? Settings.settings.useFahrenheit : false) ? "--° / --°" : "--° / --°")
|
text: weatherData && weatherData.daily ? ((Settings.settings.useFahrenheit !== undefined ? Settings.settings.useFahrenheit : false) ? `${Math.round(weatherData.daily.temperature_2m_max[index] * 9/5 + 32)}° / ${Math.round(weatherData.daily.temperature_2m_min[index] * 9/5 + 32)}°` : `${Math.round(weatherData.daily.temperature_2m_max[index])}° / ${Math.round(weatherData.daily.temperature_2m_min[index])}°`) : ((Settings.settings.useFahrenheit !== undefined ? Settings.settings.useFahrenheit : false) ? "--° / --°" : "--° / --°")
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 12 * Theme.scale(Screen)
|
font.pixelSize: 12 * Theme.scale(screen)
|
||||||
color: Theme.textPrimary
|
color: Theme.textPrimary
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
@ -213,7 +210,7 @@ Rectangle {
|
||||||
color: Theme.error
|
color: Theme.error
|
||||||
visible: errorString !== ""
|
visible: errorString !== ""
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: 10 * Theme.scale(Screen)
|
font.pixelSize: 10 * Theme.scale(screen)
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue