Default skull icon

This commit is contained in:
LemmyCook 2025-09-08 14:33:20 -04:00
parent 6f4a4bb764
commit 6169f88d90
9 changed files with 42 additions and 31 deletions

View file

@ -9,7 +9,7 @@ NIconButton {
property ShellScreen screen
property real scaling: 1.0
icon: "contrast"
icon: FontService.icons["contrast"]
tooltipText: "Toggle light/dark mode"
sizeRatio: 0.8

View file

@ -13,7 +13,7 @@ NIconButton {
sizeRatio: 0.8
icon: "coffee"
icon: FontService.icons["coffee"]
tooltipText: IdleInhibitorService.isInhibited ? "Disable keep awake" : "Enable keep awake"
colorBg: Color.mSurfaceVariant
colorFg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mOnSurface

View file

@ -66,7 +66,7 @@ RowLayout {
NIcon {
id: cpuUsageIcon
text: "speed"
text: FontService.icons["speed"]
Layout.alignment: Qt.AlignVCenter
}
@ -91,7 +91,7 @@ RowLayout {
visible: showCpuTemp
NIcon {
text: "thermometer"
text: FontService.icons["thermometer"]
Layout.alignment: Qt.AlignVCenter
}
@ -114,7 +114,7 @@ RowLayout {
visible: showMemoryUsage
NIcon {
text: "memory"
text: FontService.icons["memory"]
Layout.alignment: Qt.AlignVCenter
}
@ -137,7 +137,7 @@ RowLayout {
visible: showNetworkStats
NIcon {
text: "download"
text: FontService.icons["download"]
Layout.alignment: Qt.AlignVCenter
}
@ -160,7 +160,7 @@ RowLayout {
visible: showNetworkStats
NIcon {
text: "upload"
text: FontService.icons["upload"]
Layout.alignment: Qt.AlignVCenter
}

View file

@ -43,9 +43,11 @@ Item {
function getIcon() {
if (AudioService.muted) {
return FontService.icons["volume_off"] // TODO disabled icon ?
return FontService.icons["volume_off"] // TODO disabled icon ?
}
return AudioService.volume <= Number.EPSILON ? FontService.icons["volume_off"] : (AudioService.volume < 0.5 ? FontService.icons["volume_half"]: FontService.icons["volume_full"])
return AudioService.volume
<= Number.EPSILON ? FontService.icons["volume_off"] : (AudioService.volume
< 0.5 ? FontService.icons["volume_half"] : FontService.icons["volume_full"])
}
// Connection used to open the pill when volume changes

View file

@ -23,7 +23,7 @@ NIconButton {
icon: {
try {
if (NetworkService.ethernetConnected) {
return "lan"
return FontService.icons["ethernet"]
}
let connected = false
let signalStrength = 0

View file

@ -123,52 +123,52 @@ NPanel {
let newTabs = [{
"id": SettingsPanel.Tab.General,
"label": "General",
"icon": "tune",
"icon": FontService.icons["general"],
"source": generalTab
}, {
"id": SettingsPanel.Tab.Bar,
"label": "Bar",
"icon": "web_asset",
"icon": FontService.icons["bar"],
"source": barTab
}, {
"id": SettingsPanel.Tab.Launcher,
"label": "Launcher",
"icon": "apps",
"icon": FontService.icons["apps"],
"source": launcherTab
}, {
"id": SettingsPanel.Tab.Audio,
"label": "Audio",
"icon": "volume_up",
"icon": FontService.icons["volume_full"],
"source": audioTab
}, {
"id": SettingsPanel.Tab.Display,
"label": "Display",
"icon": "monitor",
"icon": FontService.icons["monitor"],
"source": displayTab
}, {
"id": SettingsPanel.Tab.Network,
"label": "Network",
"icon": "lan",
"icon": FontService.icons["ethernet"],
"source": networkTab
}, {
"id": SettingsPanel.Tab.Brightness,
"label": "Brightness",
"icon": "brightness_6",
"icon": FontService.icons["brightness"],
"source": brightnessTab
}, {
"id": SettingsPanel.Tab.Weather,
"label": "Weather",
"icon": "partly_cloudy_day",
"icon": FontService.icons["partly_cloudy"],
"source": weatherTab
}, {
"id": SettingsPanel.Tab.ColorScheme,
"label": "Color Scheme",
"icon": "palette",
"icon": FontService.icons["palette"],
"source": colorSchemeTab
}, {
"id": SettingsPanel.Tab.Wallpaper,
"label": "Wallpaper",
"icon": "image",
"icon": FontService.icons["image"],
"source": wallpaperTab
}]
@ -177,7 +177,7 @@ NPanel {
newTabs.push({
"id": SettingsPanel.Tab.WallpaperSelector,
"label": "Wallpaper Selector",
"icon": "wallpaper_slideshow",
"icon": FontService.icons["image"],
"source": wallpaperSelectorTab
})
}
@ -185,17 +185,17 @@ NPanel {
newTabs.push({
"id": SettingsPanel.Tab.ScreenRecorder,
"label": "Screen Recorder",
"icon": "videocam",
"icon": FontService.icons["video_camera"],
"source": screenRecorderTab
}, {
"id": SettingsPanel.Tab.Hooks,
"label": "Hooks",
"icon": "cable",
"icon": FontService.icons["cable"],
"source": hooksTab
}, {
"id": SettingsPanel.Tab.About,
"label": "About",
"icon": "info",
"icon": FontService.icons["info"],
"source": aboutTab
})

View file

@ -24,7 +24,7 @@ NBox {
NCircleStat {
value: SystemStatService.cpuUsage
icon: "speed"
icon: FontService.icons["speed"]
flat: true
contentScale: 0.8
width: 72 * scaling
@ -33,7 +33,7 @@ NBox {
NCircleStat {
value: SystemStatService.cpuTemp
suffix: "°C"
icon: "device_thermostat"
icon: FontService.icons["thermometer"]
flat: true
contentScale: 0.8
width: 72 * scaling
@ -41,7 +41,7 @@ NBox {
}
NCircleStat {
value: SystemStatService.memPercent
icon: "memory"
icon: FontService.icons["memory"]
flat: true
contentScale: 0.8
width: 72 * scaling
@ -49,7 +49,7 @@ NBox {
}
NCircleStat {
value: SystemStatService.diskPercent
icon: "hard_drive"
icon: FontService.icons["drive"]
flat: true
contentScale: 0.8
width: 72 * scaling