mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Icons: more icons
This commit is contained in:
@@ -19,13 +19,13 @@ NIconButton {
|
||||
|
||||
function profileIcon() {
|
||||
if (!hasPP)
|
||||
return "balance"
|
||||
return Bootstrap.icons["yin-yang"]
|
||||
if (powerProfiles.profile === PowerProfile.Performance)
|
||||
return "speed"
|
||||
return Bootstrap.icons["speedometer2"]
|
||||
if (powerProfiles.profile === PowerProfile.Balanced)
|
||||
return "balance"
|
||||
return Bootstrap.icons["yin-yang"]
|
||||
if (powerProfiles.profile === PowerProfile.PowerSaver)
|
||||
return "eco"
|
||||
return Bootstrap.icons["leaf"]
|
||||
}
|
||||
|
||||
function profileName() {
|
||||
@@ -57,4 +57,4 @@ NIconButton {
|
||||
colorBorder: Color.transparent
|
||||
colorBorderHover: Color.transparent
|
||||
onClicked: root.changeProfile()
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,7 @@ NIconButton {
|
||||
readonly property bool useDistroLogo: (widgetSettings.useDistroLogo
|
||||
!== undefined) ? widgetSettings.useDistroLogo : widgetMetadata.useDistroLogo
|
||||
|
||||
icon: useDistroLogo ? "" : Bootstrap.icons["panel"]
|
||||
icon: useDistroLogo ? "" : Bootstrap.icons["layout-sidebar-inset-reverse"]
|
||||
tooltipText: "Open side panel."
|
||||
sizeRatio: 0.8
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ Item {
|
||||
}
|
||||
return AudioService.volume
|
||||
<= Number.EPSILON ? Bootstrap.icons["volume-off"] : (AudioService.volume
|
||||
< 0.5 ? Bootstrap.icons["volume-down"] : Bootstrap.icons["volume-up"])
|
||||
< 0.5 ? Bootstrap.icons["volume-down"] : Bootstrap.icons["volume-up"])
|
||||
}
|
||||
|
||||
// Connection used to open the pill when volume changes
|
||||
|
||||
Reference in New Issue
Block a user