more icons

This commit is contained in:
LemmyCook 2025-09-08 13:25:03 -04:00
parent ed78b6b3f5
commit 736979c4dc
3 changed files with 12 additions and 5 deletions

View file

@ -58,7 +58,7 @@ NBox {
Layout.fillWidth: true
}
NIconButton {
icon: "settings"
icon: FontService.icons["gear"]
tooltipText: "Open settings."
onClicked: {
settingsPanel.requestedTab = SettingsPanel.Tab.General
@ -68,7 +68,7 @@ NBox {
NIconButton {
id: powerButton
icon: "power_settings_new"
icon: FontService.icons["power"]
tooltipText: "Power menu."
onClicked: {
powerPanel.open(screen)
@ -78,7 +78,7 @@ NBox {
NIconButton {
id: closeButton
icon: "close"
icon: FontService.icons["close"]
tooltipText: "Close side panel."
onClicked: {
sidePanel.close()

View file

@ -14,11 +14,18 @@ Singleton {
property bool fontsLoaded: false
property var icons: {
// weather
"sunny": "\ue30d",
"partly_cloudy": "\ue302",
"cloud": "\ue312",
"foggy": "\ue311",
"rainy": "\ue318"
"rainy": "\ue318",
"snowy": "\ue319",
"thunderstom": "\ue31d",
"power": "\uf011",
"gear": "\uf013",
"close": "\uf00D"
}

View file

@ -241,7 +241,7 @@ Singleton {
if (code >= 51 && code <= 67)
return FontService.icons["rainy"]
if (code >= 71 && code <= 77)
return FontService.icons["weather_snowy"]
return FontService.icons["snowy"]
if (code >= 80 && code <= 82)
return FontService.icons["rainy"]
if (code >= 95 && code <= 99)