Change keep awake icon to local cafe (#3936)

port 2.0

(cherry picked from commit 4a9ab29515)
This commit is contained in:
Roni Tarvainen authored and dux-ci[bot] committed 2026-10-28 14:18:18 +00:00
1 parent d90ff54ab9
commit ff1bbe807d
9 files changed
+11 -10

No files matched your search

+1 -1
View File
@@ -168,7 +168,7 @@ Singleton {
"id": "idleInhibitor",
"text": I18n.tr("Idle inhibitor", "feature that keeps the session from going idle"),
"description": I18n.tr("Prevent screen timeout"),
"icon": "motion_sensor_active",
"icon": "local_cafe",
"section": "right"
},
{
@@ -75,7 +75,7 @@ Item {
CcGroup {
CcToggleRow {
iconName: SessionService.idleInhibited ? "motion_sensor_active" : "motion_sensor_idle"
iconName: "local_cafe"
iconColor: SessionService.idleInhibited ? Theme.primary : Theme.surfaceText
text: I18n.tr("Prevent screen timeout")
description: {
@@ -295,7 +295,7 @@ QtObject {
"id": "idleInhibitor",
"text": I18n.tr("Keep Awake"),
"description": I18n.tr("Prevent screen timeout"),
"icon": "motion_sensor_active",
"icon": "local_cafe",
"type": "toggle",
"category": "system",
"enabled": true
@@ -5,7 +5,7 @@ import "../../../Common/Format.js" as Format
CcTile {
iconName: "motion_sensor_active"
iconName: "local_cafe"
title: SessionService.idleInhibited ? I18n.tr("Keeping Awake") : I18n.tr("Keep Awake")
subtitle: {
if (!SessionService.idleInhibited)
@@ -509,7 +509,7 @@ BasePill {
case "printer":
return "print";
case "idleInhibitor":
return "motion_sensor_active";
return "local_cafe";
case "doNotDisturb":
return "do_not_disturb_on";
default:
@@ -694,7 +694,7 @@ BasePill {
case "printer":
return "print";
case "idleInhibitor":
return "motion_sensor_active";
return "local_cafe";
case "doNotDisturb":
return "do_not_disturb_on";
default:
@@ -18,8 +18,9 @@ BasePill {
DIcon {
id: icon
anchors.centerIn: parent
name: SessionService.idleInhibited ? "motion_sensor_active" : "motion_sensor_idle"
name: "local_cafe"
size: Theme.barIconSize(root.barThickness, -4, root.barConfig?.maximizeWidgetIcons, root.barConfig?.iconScale)
filled: SessionService.idleInhibited
color: SessionService.idleInhibited ? inhibitColor : idleColor
}
}
@@ -91,7 +91,7 @@ QtObject {
case "powerprofile":
return Theme.getPowerProfileIcon(PowerProfileWatcher.currentProfile);
case "idleinhibitor":
return SessionService.idleInhibited ? "motion_sensor_active" : "motion_sensor_idle";
return "local_cafe";
case "charging":
return BatteryService.getBatteryIcon();
}
+1 -1
View File
@@ -26,7 +26,7 @@ DOSD {
OsdIcon {
tonal: false
anchors.centerIn: parent
iconName: SessionService.idleInhibited ? "motion_sensor_active" : "motion_sensor_idle"
iconName: "local_cafe"
iconColor: SessionService.idleInhibited ? Theme.primary : Theme.outline
}
}
@@ -74,7 +74,7 @@ Column {
{
"id": "idleInhibitor",
"label": I18n.tr("Idle inhibitor", "feature that keeps the session from going idle"),
"icon": "motion_sensor_active",
"icon": "local_cafe",
"setting": "showIdleInhibitorIcon"
},
{