mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
theme: add colorful bar widget option
This commit is contained in:
@@ -44,6 +44,11 @@ Singleton {
|
|||||||
SuspendThenHibernate
|
SuspendThenHibernate
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum WidgetColorMode {
|
||||||
|
Default,
|
||||||
|
Colorful
|
||||||
|
}
|
||||||
|
|
||||||
readonly property string defaultFontFamily: "Inter Variable"
|
readonly property string defaultFontFamily: "Inter Variable"
|
||||||
readonly property string defaultMonoFontFamily: "Fira Code"
|
readonly property string defaultMonoFontFamily: "Fira Code"
|
||||||
readonly property string _homeUrl: StandardPaths.writableLocation(StandardPaths.HomeLocation)
|
readonly property string _homeUrl: StandardPaths.writableLocation(StandardPaths.HomeLocation)
|
||||||
@@ -70,6 +75,7 @@ Singleton {
|
|||||||
property real popupTransparency: 1.0
|
property real popupTransparency: 1.0
|
||||||
property real dockTransparency: 1
|
property real dockTransparency: 1
|
||||||
property string widgetBackgroundColor: "sch"
|
property string widgetBackgroundColor: "sch"
|
||||||
|
property string widgetColorMode: "default"
|
||||||
property real cornerRadius: 12
|
property real cornerRadius: 12
|
||||||
|
|
||||||
property bool use24HourClock: true
|
property bool use24HourClock: true
|
||||||
|
|||||||
@@ -665,6 +665,34 @@ Singleton {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property color widgetIconColor: {
|
||||||
|
if (typeof SettingsData === "undefined") {
|
||||||
|
return surfaceText
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (SettingsData.widgetColorMode) {
|
||||||
|
case "colorful":
|
||||||
|
return surfaceText
|
||||||
|
case "default":
|
||||||
|
default:
|
||||||
|
return surfaceText
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
property color widgetTextColor: {
|
||||||
|
if (typeof SettingsData === "undefined") {
|
||||||
|
return surfaceText
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (SettingsData.widgetColorMode) {
|
||||||
|
case "colorful":
|
||||||
|
return primary
|
||||||
|
case "default":
|
||||||
|
default:
|
||||||
|
return surfaceText
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function isColorDark(c) {
|
function isColorDark(c) {
|
||||||
return (0.299 * c.r + 0.587 * c.g + 0.114 * c.b) < 0.5
|
return (0.299 * c.r + 0.587 * c.g + 0.114 * c.b) < 0.5
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ var SPEC = {
|
|||||||
dockTransparency: { def: 1.0, coerce: percentToUnit },
|
dockTransparency: { def: 1.0, coerce: percentToUnit },
|
||||||
|
|
||||||
widgetBackgroundColor: { def: "sch" },
|
widgetBackgroundColor: { def: "sch" },
|
||||||
|
widgetColorMode: { def: "default" },
|
||||||
cornerRadius: { def: 12, onChange: "updateNiriLayout" },
|
cornerRadius: { def: 12, onChange: "updateNiriLayout" },
|
||||||
|
|
||||||
use24HourClock: { def: true },
|
use24HourClock: { def: true },
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ BasePill {
|
|||||||
size: Theme.barIconSize(battery.barThickness)
|
size: Theme.barIconSize(battery.barThickness)
|
||||||
color: {
|
color: {
|
||||||
if (!BatteryService.batteryAvailable) {
|
if (!BatteryService.batteryAvailable) {
|
||||||
return Theme.surfaceText
|
return Theme.widgetIconColor
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BatteryService.isLowBattery && !BatteryService.isCharging) {
|
if (BatteryService.isLowBattery && !BatteryService.isCharging) {
|
||||||
@@ -42,7 +42,7 @@ BasePill {
|
|||||||
return Theme.primary
|
return Theme.primary
|
||||||
}
|
}
|
||||||
|
|
||||||
return Theme.surfaceText
|
return Theme.widgetIconColor
|
||||||
}
|
}
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
@@ -50,7 +50,7 @@ BasePill {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: BatteryService.batteryLevel.toString()
|
text: BatteryService.batteryLevel.toString()
|
||||||
font.pixelSize: Theme.barTextSize(battery.barThickness)
|
font.pixelSize: Theme.barTextSize(battery.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
visible: BatteryService.batteryAvailable
|
visible: BatteryService.batteryAvailable
|
||||||
}
|
}
|
||||||
@@ -67,7 +67,7 @@ BasePill {
|
|||||||
size: Theme.barIconSize(battery.barThickness, -4)
|
size: Theme.barIconSize(battery.barThickness, -4)
|
||||||
color: {
|
color: {
|
||||||
if (!BatteryService.batteryAvailable) {
|
if (!BatteryService.batteryAvailable) {
|
||||||
return Theme.surfaceText;
|
return Theme.widgetIconColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BatteryService.isLowBattery && !BatteryService.isCharging) {
|
if (BatteryService.isLowBattery && !BatteryService.isCharging) {
|
||||||
@@ -78,7 +78,7 @@ BasePill {
|
|||||||
return Theme.primary;
|
return Theme.primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Theme.surfaceText;
|
return Theme.widgetIconColor;
|
||||||
}
|
}
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
@@ -86,7 +86,7 @@ BasePill {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: `${BatteryService.batteryLevel}%`
|
text: `${BatteryService.batteryLevel}%`
|
||||||
font.pixelSize: Theme.barTextSize(battery.barThickness)
|
font.pixelSize: Theme.barTextSize(battery.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
visible: BatteryService.batteryAvailable
|
visible: BatteryService.batteryAvailable
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ BasePill {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
name: "content_paste"
|
name: "content_paste"
|
||||||
size: Theme.barIconSize(root.barThickness)
|
size: Theme.barIconSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetIconColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ BasePill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignBottom
|
verticalAlignment: Text.AlignBottom
|
||||||
}
|
}
|
||||||
@@ -52,7 +52,7 @@ BasePill {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignBottom
|
verticalAlignment: Text.AlignBottom
|
||||||
}
|
}
|
||||||
@@ -65,7 +65,7 @@ BasePill {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: String(systemClock?.date?.getMinutes()).padStart(2, '0').charAt(0)
|
text: String(systemClock?.date?.getMinutes()).padStart(2, '0').charAt(0)
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignBottom
|
verticalAlignment: Text.AlignBottom
|
||||||
}
|
}
|
||||||
@@ -73,7 +73,7 @@ BasePill {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: String(systemClock?.date?.getMinutes()).padStart(2, '0').charAt(1)
|
text: String(systemClock?.date?.getMinutes()).padStart(2, '0').charAt(1)
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignBottom
|
verticalAlignment: Text.AlignBottom
|
||||||
}
|
}
|
||||||
@@ -87,7 +87,7 @@ BasePill {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: String(systemClock?.date?.getSeconds()).padStart(2, '0').charAt(0)
|
text: String(systemClock?.date?.getSeconds()).padStart(2, '0').charAt(0)
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignBottom
|
verticalAlignment: Text.AlignBottom
|
||||||
}
|
}
|
||||||
@@ -95,7 +95,7 @@ BasePill {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: String(systemClock?.date?.getSeconds()).padStart(2, '0').charAt(1)
|
text: String(systemClock?.date?.getSeconds()).padStart(2, '0').charAt(1)
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignBottom
|
verticalAlignment: Text.AlignBottom
|
||||||
}
|
}
|
||||||
@@ -193,7 +193,7 @@ BasePill {
|
|||||||
return systemClock?.date?.toLocaleTimeString(Qt.locale(), SettingsData.getEffectiveTimeFormat())
|
return systemClock?.date?.toLocaleTimeString(Qt.locale(), SettingsData.getEffectiveTimeFormat())
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.baseline: dateText.baseline
|
anchors.baseline: dateText.baseline
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -215,7 +215,7 @@ BasePill {
|
|||||||
return systemClock?.date?.toLocaleDateString(Qt.locale(), "ddd d")
|
return systemClock?.date?.toLocaleDateString(Qt.locale(), "ddd d")
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
visible: !SettingsData.clockCompactMode
|
visible: !SettingsData.clockCompactMode
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ BasePill {
|
|||||||
return "volume_up"
|
return "volume_up"
|
||||||
}
|
}
|
||||||
size: Theme.barIconSize(root.barThickness)
|
size: Theme.barIconSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetIconColor
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,7 +114,7 @@ BasePill {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: "settings"
|
name: "settings"
|
||||||
size: Theme.barIconSize(root.barThickness)
|
size: Theme.barIconSize(root.barThickness)
|
||||||
color: root.isActive ? Theme.primary : Theme.surfaceText
|
color: root.isActive ? Theme.primary : Theme.widgetIconColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
visible: !root.showNetworkIcon && !root.showBluetoothIcon && !root.showAudioIcon
|
visible: !root.showNetworkIcon && !root.showBluetoothIcon && !root.showAudioIcon
|
||||||
}
|
}
|
||||||
@@ -190,7 +190,7 @@ BasePill {
|
|||||||
return "volume_up";
|
return "volume_up";
|
||||||
}
|
}
|
||||||
size: Theme.barIconSize(root.barThickness)
|
size: Theme.barIconSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetIconColor
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -229,7 +229,7 @@ BasePill {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: "settings"
|
name: "settings"
|
||||||
size: Theme.barIconSize(root.barThickness)
|
size: Theme.barIconSize(root.barThickness)
|
||||||
color: root.isActive ? Theme.primary : Theme.surfaceText
|
color: root.isActive ? Theme.primary : Theme.widgetIconColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
visible: !root.showNetworkIcon && !root.showBluetoothIcon && !root.showAudioIcon
|
visible: !root.showNetworkIcon && !root.showBluetoothIcon && !root.showAudioIcon
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ BasePill {
|
|||||||
return Theme.tempWarning;
|
return Theme.tempWarning;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Theme.surfaceText;
|
return Theme.widgetIconColor;
|
||||||
}
|
}
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,7 @@ BasePill {
|
|||||||
return DgopService.cpuUsage.toFixed(0);
|
return DgopService.cpuUsage.toFixed(0);
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -82,7 +82,7 @@ BasePill {
|
|||||||
return Theme.tempWarning;
|
return Theme.tempWarning;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Theme.surfaceText;
|
return Theme.widgetIconColor;
|
||||||
}
|
}
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
@@ -96,7 +96,7 @@ BasePill {
|
|||||||
return DgopService.cpuUsage.toFixed(0) + "%";
|
return DgopService.cpuUsage.toFixed(0) + "%";
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
elide: Text.ElideNone
|
elide: Text.ElideNone
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ BasePill {
|
|||||||
return Theme.tempWarning;
|
return Theme.tempWarning;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Theme.surfaceText;
|
return Theme.widgetIconColor;
|
||||||
}
|
}
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,7 @@ BasePill {
|
|||||||
return Math.round(DgopService.cpuTemperature).toString();
|
return Math.round(DgopService.cpuTemperature).toString();
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -82,7 +82,7 @@ BasePill {
|
|||||||
return Theme.tempWarning;
|
return Theme.tempWarning;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Theme.surfaceText;
|
return Theme.widgetIconColor;
|
||||||
}
|
}
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
@@ -96,7 +96,7 @@ BasePill {
|
|||||||
return Math.round(DgopService.cpuTemperature) + "°";
|
return Math.round(DgopService.cpuTemperature) + "°";
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
elide: Text.ElideNone
|
elide: Text.ElideNone
|
||||||
|
|||||||
@@ -58,14 +58,14 @@ BasePill {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: layout.getLayoutIcon(layout.currentLayoutSymbol)
|
name: layout.getLayoutIcon(layout.currentLayoutSymbol)
|
||||||
size: Theme.barIconSize(layout.barThickness)
|
size: Theme.barIconSize(layout.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: layout.currentLayoutSymbol
|
text: layout.currentLayoutSymbol
|
||||||
font.pixelSize: Theme.barTextSize(layout.barThickness)
|
font.pixelSize: Theme.barTextSize(layout.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -79,14 +79,14 @@ BasePill {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: layout.getLayoutIcon(layout.currentLayoutSymbol)
|
name: layout.getLayoutIcon(layout.currentLayoutSymbol)
|
||||||
size: Theme.barIconSize(layout.barThickness, -4)
|
size: Theme.barIconSize(layout.barThickness, -4)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: layout.currentLayoutSymbol
|
text: layout.currentLayoutSymbol
|
||||||
font.pixelSize: Theme.barTextSize(layout.barThickness)
|
font.pixelSize: Theme.barTextSize(layout.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ BasePill {
|
|||||||
return root.diskUsagePercent.toFixed(0)
|
return root.diskUsagePercent.toFixed(0)
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -149,7 +149,7 @@ BasePill {
|
|||||||
return root.selectedMount.mount
|
return root.selectedMount.mount
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
elide: Text.ElideNone
|
elide: Text.ElideNone
|
||||||
@@ -163,7 +163,7 @@ BasePill {
|
|||||||
return root.diskUsagePercent.toFixed(0) + "%"
|
return root.diskUsagePercent.toFixed(0) + "%"
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
elide: Text.ElideNone
|
elide: Text.ElideNone
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ BasePill {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
size: 18
|
size: 18
|
||||||
name: "sports_esports"
|
name: "sports_esports"
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
visible: {
|
visible: {
|
||||||
if (!root.isVerticalOrientation || !activeWindow || !activeWindow.appId) return false
|
if (!root.isVerticalOrientation || !activeWindow || !activeWindow.appId) return false
|
||||||
const moddedId = Paths.moddedAppId(activeWindow.appId)
|
const moddedId = Paths.moddedAppId(activeWindow.appId)
|
||||||
@@ -148,7 +148,7 @@ BasePill {
|
|||||||
return activeWindow.appId.charAt(0).toUpperCase()
|
return activeWindow.appId.charAt(0).toUpperCase()
|
||||||
}
|
}
|
||||||
font.pixelSize: 10
|
font.pixelSize: 10
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
@@ -168,7 +168,7 @@ BasePill {
|
|||||||
return desktopEntry && desktopEntry.name ? desktopEntry.name : activeWindow.appId;
|
return desktopEntry && desktopEntry.name ? desktopEntry.name : activeWindow.appId;
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
@@ -204,7 +204,7 @@ BasePill {
|
|||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ BasePill {
|
|||||||
return Theme.tempWarning;
|
return Theme.tempWarning;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Theme.surfaceText;
|
return Theme.widgetIconColor;
|
||||||
}
|
}
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
@@ -123,7 +123,7 @@ BasePill {
|
|||||||
return Math.round(root.displayTemp).toString();
|
return Math.round(root.displayTemp).toString();
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -146,7 +146,7 @@ BasePill {
|
|||||||
return Theme.tempWarning;
|
return Theme.tempWarning;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Theme.surfaceText;
|
return Theme.widgetIconColor;
|
||||||
}
|
}
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
@@ -160,7 +160,7 @@ BasePill {
|
|||||||
return Math.round(root.displayTemp) + "°";
|
return Math.round(root.displayTemp) + "°";
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
elide: Text.ElideNone
|
elide: Text.ElideNone
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ BasePill {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
name: SessionService.idleInhibited ? "motion_sensor_active" : "motion_sensor_idle"
|
name: SessionService.idleInhibited ? "motion_sensor_active" : "motion_sensor_idle"
|
||||||
size: Theme.barIconSize(root.barThickness, -4)
|
size: Theme.barIconSize(root.barThickness, -4)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ BasePill {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: "keyboard"
|
name: "keyboard"
|
||||||
size: Theme.barIconSize(root.barThickness)
|
size: Theme.barIconSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ BasePill {
|
|||||||
return root.currentLayout.substring(0, 2).toUpperCase()
|
return root.currentLayout.substring(0, 2).toUpperCase()
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -65,7 +65,7 @@ BasePill {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: root.currentLayout
|
text: root.currentLayout
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ BasePill {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
name: "apps"
|
name: "apps"
|
||||||
size: Theme.barIconSize(root.barThickness, -4)
|
size: Theme.barIconSize(root.barThickness, -4)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetIconColor
|
||||||
}
|
}
|
||||||
|
|
||||||
SystemLogo {
|
SystemLogo {
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ BasePill {
|
|||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
text: textContainer.displayText
|
text: textContainer.displayText
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
wrapMode: Text.NoWrap
|
wrapMode: Text.NoWrap
|
||||||
x: needsScrolling ? -scrollOffset : 0
|
x: needsScrolling ? -scrollOffset : 0
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
@@ -249,7 +249,7 @@ BasePill {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
name: "skip_previous"
|
name: "skip_previous"
|
||||||
size: 12
|
size: 12
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
@@ -306,7 +306,7 @@ BasePill {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
name: "skip_next"
|
name: "skip_next"
|
||||||
size: 12
|
size: 12
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ BasePill {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: "network_check"
|
name: "network_check"
|
||||||
size: Theme.barIconSize(root.barThickness)
|
size: Theme.barIconSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ BasePill {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: "network_check"
|
name: "network_check"
|
||||||
size: Theme.barIconSize(root.barThickness)
|
size: Theme.barIconSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ BasePill {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: DgopService.networkRxRate > 0 ? root.formatNetworkSpeed(DgopService.networkRxRate) : "0 B/s"
|
text: DgopService.networkRxRate > 0 ? root.formatNetworkSpeed(DgopService.networkRxRate) : "0 B/s"
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
elide: Text.ElideNone
|
elide: Text.ElideNone
|
||||||
@@ -133,7 +133,7 @@ BasePill {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: DgopService.networkTxRate > 0 ? root.formatNetworkSpeed(DgopService.networkTxRate) : "0 B/s"
|
text: DgopService.networkTxRate > 0 ? root.formatNetworkSpeed(DgopService.networkTxRate) : "0 B/s"
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
elide: Text.ElideNone
|
elide: Text.ElideNone
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ BasePill {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
name: SessionData.doNotDisturb ? "notifications_off" : "notifications"
|
name: SessionData.doNotDisturb ? "notifications_off" : "notifications"
|
||||||
size: Theme.barIconSize(root.barThickness, -4)
|
size: Theme.barIconSize(root.barThickness, -4)
|
||||||
color: SessionData.doNotDisturb ? Theme.error : (root.isActive ? Theme.primary : Theme.surfaceText)
|
color: SessionData.doNotDisturb ? Theme.error : (root.isActive ? Theme.primary : Theme.widgetIconColor)
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ Item {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: "camera_video"
|
name: "camera_video"
|
||||||
size: Theme.iconSizeSmall
|
size: Theme.iconSizeSmall
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
filled: true
|
filled: true
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
@@ -213,7 +213,7 @@ Item {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: PrivacyService.getPrivacySummary()
|
text: PrivacyService.getPrivacySummary()
|
||||||
font.pixelSize: Theme.barTextSize(barThickness)
|
font.pixelSize: Theme.barTextSize(barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ BasePill {
|
|||||||
return Theme.tempWarning;
|
return Theme.tempWarning;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Theme.surfaceText;
|
return Theme.widgetIconColor;
|
||||||
}
|
}
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
@@ -61,7 +61,7 @@ BasePill {
|
|||||||
return DgopService.memoryUsage.toFixed(0);
|
return DgopService.memoryUsage.toFixed(0);
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ BasePill {
|
|||||||
return Theme.tempWarning;
|
return Theme.tempWarning;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Theme.surfaceText;
|
return Theme.widgetIconColor;
|
||||||
}
|
}
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
@@ -110,7 +110,7 @@ BasePill {
|
|||||||
return ramText;
|
return ramText;
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
elide: Text.ElideNone
|
elide: Text.ElideNone
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ Item {
|
|||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
size: Theme.barIconSize(root.barThickness)
|
size: Theme.barIconSize(root.barThickness)
|
||||||
name: "sports_esports"
|
name: "sports_esports"
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
visible: {
|
visible: {
|
||||||
const moddedId = Paths.moddedAppId(appId)
|
const moddedId = Paths.moddedAppId(appId)
|
||||||
return moddedId.toLowerCase().includes("steam_app")
|
return moddedId.toLowerCase().includes("steam_app")
|
||||||
@@ -321,7 +321,7 @@ Item {
|
|||||||
return appId.charAt(0).toUpperCase()
|
return appId.charAt(0).toUpperCase()
|
||||||
}
|
}
|
||||||
font.pixelSize: 10
|
font.pixelSize: 10
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
@@ -354,7 +354,7 @@ Item {
|
|||||||
visible: !SettingsData.runningAppsCompactMode
|
visible: !SettingsData.runningAppsCompactMode
|
||||||
text: windowTitle
|
text: windowTitle
|
||||||
font.pixelSize: Theme.barTextSize(barThickness)
|
font.pixelSize: Theme.barTextSize(barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
}
|
}
|
||||||
@@ -527,7 +527,7 @@ Item {
|
|||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
size: Theme.barIconSize(root.barThickness)
|
size: Theme.barIconSize(root.barThickness)
|
||||||
name: "sports_esports"
|
name: "sports_esports"
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
visible: {
|
visible: {
|
||||||
const moddedId = Paths.moddedAppId(appId)
|
const moddedId = Paths.moddedAppId(appId)
|
||||||
return moddedId.toLowerCase().includes("steam_app")
|
return moddedId.toLowerCase().includes("steam_app")
|
||||||
@@ -555,7 +555,7 @@ Item {
|
|||||||
return appId.charAt(0).toUpperCase()
|
return appId.charAt(0).toUpperCase()
|
||||||
}
|
}
|
||||||
font.pixelSize: 10
|
font.pixelSize: 10
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
@@ -587,7 +587,7 @@ Item {
|
|||||||
visible: !SettingsData.runningAppsCompactMode
|
visible: !SettingsData.runningAppsCompactMode
|
||||||
text: windowTitle
|
text: windowTitle
|
||||||
font.pixelSize: Theme.barTextSize(barThickness)
|
font.pixelSize: Theme.barTextSize(barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
}
|
}
|
||||||
@@ -777,7 +777,7 @@ Item {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: I18n.tr("Close")
|
text: I18n.tr("Close")
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ Item {
|
|||||||
return itemId.charAt(0).toUpperCase()
|
return itemId.charAt(0).toUpperCase()
|
||||||
}
|
}
|
||||||
font.pixelSize: 10
|
font.pixelSize: 10
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ Item {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
name: root.menuOpen ? "expand_less" : "expand_more"
|
name: root.menuOpen ? "expand_less" : "expand_more"
|
||||||
size: Theme.barIconSize(root.barThickness)
|
size: Theme.barIconSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
@@ -294,7 +294,7 @@ Item {
|
|||||||
return itemId.charAt(0).toUpperCase()
|
return itemId.charAt(0).toUpperCase()
|
||||||
}
|
}
|
||||||
font.pixelSize: 10
|
font.pixelSize: 10
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -346,7 +346,7 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
size: Theme.barIconSize(root.barThickness)
|
size: Theme.barIconSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
@@ -705,7 +705,7 @@ Item {
|
|||||||
return itemId.charAt(0).toUpperCase()
|
return itemId.charAt(0).toUpperCase()
|
||||||
}
|
}
|
||||||
font.pixelSize: 10
|
font.pixelSize: 10
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
@@ -1138,7 +1138,7 @@ Item {
|
|||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
name: SessionData.isHiddenTrayId(menuRoot.trayItem?.id || "") ? "visibility" : "visibility_off"
|
name: SessionData.isHiddenTrayId(menuRoot.trayItem?.id || "") ? "visibility" : "visibility_off"
|
||||||
size: 16
|
size: 16
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
@@ -1183,14 +1183,14 @@ Item {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: "arrow_back"
|
name: "arrow_back"
|
||||||
size: 16
|
size: 16
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: I18n.tr("Back")
|
text: I18n.tr("Back")
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1326,7 +1326,7 @@ Item {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
name: "chevron_right"
|
name: "chevron_right"
|
||||||
size: 14
|
size: 14
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
visible: menuEntry?.hasChildren ?? false
|
visible: menuEntry?.hasChildren ?? false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ BasePill {
|
|||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
text: SystemUpdateService.updateCount.toString()
|
text: SystemUpdateService.updateCount.toString()
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
visible: root.hasUpdates && !root.isChecking
|
visible: root.hasUpdates && !root.isChecking
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ BasePill {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: WeatherService.getWeatherIcon(WeatherService.weather.wCode)
|
name: WeatherService.getWeatherIcon(WeatherService.weather.wCode)
|
||||||
size: Theme.barIconSize(root.barThickness, -6)
|
size: Theme.barIconSize(root.barThickness, -6)
|
||||||
color: Theme.primary
|
color: Theme.widgetIconColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ BasePill {
|
|||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -58,7 +58,7 @@ BasePill {
|
|||||||
DankIcon {
|
DankIcon {
|
||||||
name: WeatherService.getWeatherIcon(WeatherService.weather.wCode)
|
name: WeatherService.getWeatherIcon(WeatherService.weather.wCode)
|
||||||
size: Theme.barIconSize(root.barThickness, -6)
|
size: Theme.barIconSize(root.barThickness, -6)
|
||||||
color: Theme.primary
|
color: Theme.widgetIconColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ BasePill {
|
|||||||
return temp + "°" + (SettingsData.useFahrenheit ? "F" : "C");
|
return temp + "°" + (SettingsData.useFahrenheit ? "F" : "C");
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.barTextSize(root.barThickness)
|
font.pixelSize: Theme.barTextSize(root.barThickness)
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -727,7 +727,7 @@ Item {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
size: 18
|
size: 18
|
||||||
name: "sports_esports"
|
name: "sports_esports"
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
opacity: modelData.active ? 1.0 : appMouseArea.containsMouse ? 0.8 : 0.6
|
opacity: modelData.active ? 1.0 : appMouseArea.containsMouse ? 0.8 : 0.6
|
||||||
visible: modelData.isSteamApp
|
visible: modelData.isSteamApp
|
||||||
}
|
}
|
||||||
@@ -798,7 +798,7 @@ Item {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
size: 18
|
size: 18
|
||||||
name: "sports_esports"
|
name: "sports_esports"
|
||||||
color: Theme.surfaceText
|
color: Theme.widgetTextColor
|
||||||
opacity: modelData.active ? 1.0 : appMouseArea.containsMouse ? 0.8 : 0.6
|
opacity: modelData.active ? 1.0 : appMouseArea.containsMouse ? 0.8 : 0.6
|
||||||
visible: modelData.isSteamApp
|
visible: modelData.isSteamApp
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -704,6 +704,57 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Row {
|
||||||
|
width: parent.width
|
||||||
|
height: 40
|
||||||
|
spacing: Theme.spacingM
|
||||||
|
|
||||||
|
Column {
|
||||||
|
width: parent.width - widgetColorModeGroup.width - parent.spacing
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
spacing: 2
|
||||||
|
|
||||||
|
StyledText {
|
||||||
|
text: I18n.tr("Widget Style")
|
||||||
|
font.pixelSize: Theme.fontSizeMedium
|
||||||
|
color: Theme.surfaceText
|
||||||
|
font.weight: Font.Medium
|
||||||
|
elide: Text.ElideRight
|
||||||
|
width: parent.width
|
||||||
|
}
|
||||||
|
|
||||||
|
StyledText {
|
||||||
|
text: I18n.tr("Change bar appearance")
|
||||||
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
color: Theme.surfaceVariantText
|
||||||
|
elide: Text.ElideRight
|
||||||
|
width: parent.width
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
DankButtonGroup {
|
||||||
|
id: widgetColorModeGroup
|
||||||
|
property int currentColorModeIndex: {
|
||||||
|
switch (SettingsData.widgetColorMode) {
|
||||||
|
case "default": return 0
|
||||||
|
case "colorful": return 1
|
||||||
|
default: return 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
model: ["default", "colorful"]
|
||||||
|
currentIndex: currentColorModeIndex
|
||||||
|
selectionMode: "single"
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
|
onSelectionChanged: (index, selected) => {
|
||||||
|
if (!selected) return
|
||||||
|
const colorModeOptions = ["default", "colorful"]
|
||||||
|
SettingsData.set("widgetColorMode", colorModeOptions[index])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: Theme.spacingS
|
spacing: Theme.spacingS
|
||||||
|
|||||||
Reference in New Issue
Block a user