Icons: 99% done

This commit is contained in:
LemmyCook
2025-09-08 22:21:18 -04:00
parent 1f8c55d581
commit bacd65b274
19 changed files with 51 additions and 90 deletions
+4 -4
View File
@@ -29,15 +29,15 @@ NIconButton {
return "terminal"
}
if (!ArchUpdaterService.aurHelperAvailable) {
return "package"
return "box"
}
if (ArchUpdaterService.aurBusy) {
return "sync"
return "arrow-repeat"
}
if (ArchUpdaterService.totalUpdates > 0) {
return "system_update_alt"
return "box-fill"
}
return "task_alt"
return "box"
}
// Tooltip with repo vs AUR breakdown and sample lists
+3 -3
View File
@@ -9,12 +9,12 @@ NIconButton {
property ShellScreen screen
property real scaling: 1.0
icon: "contrast"
icon: "transparency"
tooltipText: "Toggle light/dark mode"
sizeRatio: 0.8
colorBg: Color.mSurfaceVariant
colorFg: Color.mOnSurface
colorBg: Settings.data.colorSchemes.darkMode ? Color.mSurfaceVariant : Color.mPrimary
colorFg: Settings.data.colorSchemes.darkMode ? Color.mOnSurface : Color.mOnPrimary
colorBorder: Color.transparent
colorBorderHover: Color.transparent
+3 -3
View File
@@ -13,10 +13,10 @@ NIconButton {
sizeRatio: 0.8
icon: "coffee"
icon: "cup"
tooltipText: IdleInhibitorService.isInhibited ? "Disable keep awake" : "Enable keep awake"
colorBg: Color.mSurfaceVariant
colorFg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mOnSurface
colorBg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mSurfaceVariant
colorFg: IdleInhibitorService.isInhibited ? Color.mOnPrimary : Color.mOnSurface
colorBorder: Color.transparent
onClicked: {
IdleInhibitorService.manualToggle()
+1 -1
View File
@@ -13,7 +13,7 @@ NIconButton {
sizeRatio: 0.8
icon: "power_settings_new"
icon: "power"
tooltipText: "Power Settings"
colorBg: Color.mSurfaceVariant
colorFg: Color.mError
+1 -1
View File
@@ -33,7 +33,7 @@ NIconButton {
readonly property bool useDistroLogo: (widgetSettings.useDistroLogo
!== undefined) ? widgetSettings.useDistroLogo : widgetMetadata.useDistroLogo
icon: useDistroLogo ? "" :"layout-sidebar-inset-reverse"
icon: useDistroLogo ? "" : "layout-sidebar-inset-reverse"
tooltipText: "Open side panel."
sizeRatio: 0.8
+10 -5
View File
@@ -64,7 +64,8 @@ RowLayout {
Layout.alignment: Qt.AlignVCenter
visible: showCpuUsage
NIcon { icon: "speedometer2"
NIcon {
icon: "speedometer2"
font.pointSize: Style.fontSizeM * scaling
Layout.alignment: Qt.AlignVCenter
}
@@ -87,7 +88,8 @@ RowLayout {
Layout.alignment: Qt.AlignVCenter
visible: showCpuTemp
NIcon { icon: "fire"
NIcon {
icon: "fire"
font.pointSize: Style.fontSizeM * scaling
Layout.alignment: Qt.AlignVCenter
}
@@ -110,7 +112,8 @@ RowLayout {
Layout.alignment: Qt.AlignVCenter
visible: showMemoryUsage
NIcon { icon: "memory"
NIcon {
icon: "memory"
font.pointSize: Style.fontSizeM * scaling
Layout.alignment: Qt.AlignVCenter
}
@@ -133,7 +136,8 @@ RowLayout {
Layout.alignment: Qt.AlignVCenter
visible: showNetworkStats
NIcon { icon: "download"
NIcon {
icon: "download"
font.pointSize: Style.fontSizeM * scaling
Layout.alignment: Qt.AlignVCenter
}
@@ -156,7 +160,8 @@ RowLayout {
Layout.alignment: Qt.AlignVCenter
visible: showNetworkStats
NIcon { icon: "upload"
NIcon {
icon: "upload"
font.pointSize: Style.fontSizeM * scaling
Layout.alignment: Qt.AlignVCenter
}
+1 -3
View File
@@ -45,9 +45,7 @@ Item {
if (AudioService.muted) {
return "volume-mute"
}
return AudioService.volume
<= Number.EPSILON ? "volume-off" : (AudioService.volume
< 0.5 ? "volume-down" : "volume-up")
return AudioService.volume <= Number.EPSILON ? "volume-off" : (AudioService.volume < 0.5 ? "volume-down" : "volume-up")
}
// Connection used to open the pill when volume changes