more icons
This commit is contained in:
parent
ed78b6b3f5
commit
736979c4dc
3 changed files with 12 additions and 5 deletions
|
|
@ -58,7 +58,7 @@ NBox {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
NIconButton {
|
NIconButton {
|
||||||
icon: "settings"
|
icon: FontService.icons["gear"]
|
||||||
tooltipText: "Open settings."
|
tooltipText: "Open settings."
|
||||||
onClicked: {
|
onClicked: {
|
||||||
settingsPanel.requestedTab = SettingsPanel.Tab.General
|
settingsPanel.requestedTab = SettingsPanel.Tab.General
|
||||||
|
|
@ -68,7 +68,7 @@ NBox {
|
||||||
|
|
||||||
NIconButton {
|
NIconButton {
|
||||||
id: powerButton
|
id: powerButton
|
||||||
icon: "power_settings_new"
|
icon: FontService.icons["power"]
|
||||||
tooltipText: "Power menu."
|
tooltipText: "Power menu."
|
||||||
onClicked: {
|
onClicked: {
|
||||||
powerPanel.open(screen)
|
powerPanel.open(screen)
|
||||||
|
|
@ -78,7 +78,7 @@ NBox {
|
||||||
|
|
||||||
NIconButton {
|
NIconButton {
|
||||||
id: closeButton
|
id: closeButton
|
||||||
icon: "close"
|
icon: FontService.icons["close"]
|
||||||
tooltipText: "Close side panel."
|
tooltipText: "Close side panel."
|
||||||
onClicked: {
|
onClicked: {
|
||||||
sidePanel.close()
|
sidePanel.close()
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,18 @@ Singleton {
|
||||||
property bool fontsLoaded: false
|
property bool fontsLoaded: false
|
||||||
|
|
||||||
property var icons: {
|
property var icons: {
|
||||||
|
// weather
|
||||||
"sunny": "\ue30d",
|
"sunny": "\ue30d",
|
||||||
"partly_cloudy": "\ue302",
|
"partly_cloudy": "\ue302",
|
||||||
"cloud": "\ue312",
|
"cloud": "\ue312",
|
||||||
"foggy": "\ue311",
|
"foggy": "\ue311",
|
||||||
"rainy": "\ue318"
|
"rainy": "\ue318",
|
||||||
|
"snowy": "\ue319",
|
||||||
|
"thunderstom": "\ue31d",
|
||||||
|
|
||||||
|
"power": "\uf011",
|
||||||
|
"gear": "\uf013",
|
||||||
|
"close": "\uf00D"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,7 @@ Singleton {
|
||||||
if (code >= 51 && code <= 67)
|
if (code >= 51 && code <= 67)
|
||||||
return FontService.icons["rainy"]
|
return FontService.icons["rainy"]
|
||||||
if (code >= 71 && code <= 77)
|
if (code >= 71 && code <= 77)
|
||||||
return FontService.icons["weather_snowy"]
|
return FontService.icons["snowy"]
|
||||||
if (code >= 80 && code <= 82)
|
if (code >= 80 && code <= 82)
|
||||||
return FontService.icons["rainy"]
|
return FontService.icons["rainy"]
|
||||||
if (code >= 95 && code <= 99)
|
if (code >= 95 && code <= 99)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue