Icons: duo for nightlight
This commit is contained in:
parent
b2e11137d4
commit
7e93e29f66
2 changed files with 5 additions and 4 deletions
|
|
@ -16,11 +16,11 @@ NIconButton {
|
||||||
|
|
||||||
sizeRatio: 0.8
|
sizeRatio: 0.8
|
||||||
colorBg: Color.mSurfaceVariant
|
colorBg: Color.mSurfaceVariant
|
||||||
colorFg: Settings.data.nightLight.enabled ? Color.mOnSurface : Color.mError
|
colorFg: Color.mOnSurface
|
||||||
colorBorder: Color.transparent
|
colorBorder: Color.transparent
|
||||||
colorBorderHover: Color.transparent
|
colorBorderHover: Color.transparent
|
||||||
|
|
||||||
icon: FontService.icons["moon"]
|
icon: Settings.data.nightLight.enabled ? FontService.icons["moon_stars"] : FontService.icons["sunrise"]
|
||||||
tooltipText: `Night light: ${Settings.data.nightLight.enabled ? "enabled." : "disabled."}\nLeft click to toggle.\nRight click to access settings.`
|
tooltipText: `Night light: ${Settings.data.nightLight.enabled ? "enabled." : "disabled."}\nLeft click to toggle.\nRight click to access settings.`
|
||||||
onClicked: Settings.data.nightLight.enabled = !Settings.data.nightLight.enabled
|
onClicked: Settings.data.nightLight.enabled = !Settings.data.nightLight.enabled
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,9 +79,10 @@ Singleton {
|
||||||
"bar": "\uF52B",
|
"bar": "\uF52B",
|
||||||
"launcher": "\uF843",
|
"launcher": "\uF843",
|
||||||
"palette": "\uF4B1",
|
"palette": "\uF4B1",
|
||||||
"moon": "\uF497",
|
"sunrise": "\uF5A5",
|
||||||
|
"moon_stars": "\uF496",
|
||||||
"gauge": "\uF580",
|
"gauge": "\uF580",
|
||||||
"lightning": "\uF46C",
|
"lightning": "\uF46D",
|
||||||
"keyboard": "\uF451",
|
"keyboard": "\uF451",
|
||||||
"paint_brush": "\uEE26",
|
"paint_brush": "\uEE26",
|
||||||
"link": "\uF470",
|
"link": "\uF470",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue