Settings Tab: replaced Tab IDs by a QML enum
This commit is contained in:
parent
71433c7807
commit
2a7810c17c
9 changed files with 36 additions and 42 deletions
|
|
@ -42,7 +42,7 @@ NBox {
|
|||
icon: "balance"
|
||||
enabled: hasPP
|
||||
opacity: enabled ? Style.opacityFull : Style.opacityMedium
|
||||
showFilled: enabled && powerProfiles.profile === PowerProfile.Balanced
|
||||
showFilled: enabled && powerProfiles.profile === PowerProfile.Balanced
|
||||
showBorder: !enabled || powerProfiles.profile !== PowerProfile.Balanced
|
||||
onClicked: {
|
||||
if (enabled) {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@ NBox {
|
|||
|
||||
readonly property real scaling: Scaling.scale(screen)
|
||||
property string uptimeText: "--"
|
||||
|
||||
|
||||
|
||||
Layout.fillWidth: true
|
||||
// Height driven by content
|
||||
|
|
@ -61,7 +59,7 @@ NBox {
|
|||
icon: "settings"
|
||||
tooltipText: "Open settings"
|
||||
onClicked: {
|
||||
settingsPanel.requestedTab = settingsPanel.tabsIds.GENERAL
|
||||
settingsPanel.requestedTab = Settings.Tab.General
|
||||
settingsPanel.isLoaded = !settingsPanel.isLoaded
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ NBox {
|
|||
NIconButton {
|
||||
icon: "image"
|
||||
onClicked: {
|
||||
settingsPanel.requestedTab = settingsPanel.tabsIds.WALLPAPER_SELECTOR
|
||||
settingsPanel.requestedTab = Settings.Tab.WallpaperSelector
|
||||
settingsPanel.isLoaded = true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue