Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
57dae632
Verified
Commit
57dae632
authored
Jan 15, 2022
by
Fushan Wen
Browse files
MoreSettingsMenu: Use registered enums from C++ for OpacityMode
This makes the expressions more clear.
parent
de94dbb2
Pipeline
#124162
passed with stage
in 5 minutes and 35 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
desktoppackage/contents/configuration/panelconfiguration/MoreSettingsMenu.qml
View file @
57dae632
...
...
@@ -134,24 +134,24 @@ PlasmaCore.Dialog {
width
:
Math
.
max
(
implicitWidth
,
parent
.
width
)
text
:
i18nd
(
"
plasma_shell_org.kde.plasma.desktop
"
,
"
Adaptive
"
)
checkable
:
true
checked
:
configDialog
.
opacityMode
===
0
onClicked
:
configDialog
.
opacityMode
=
0
checked
:
configDialog
.
opacityMode
===
Panel
.
Global
.
Adaptive
onClicked
:
configDialog
.
opacityMode
=
Panel
.
Global
.
Adaptive
flat
:
false
}
PlasmaComponents.ToolButton
{
width
:
Math
.
max
(
implicitWidth
,
parent
.
width
)
text
:
i18nd
(
"
plasma_shell_org.kde.plasma.desktop
"
,
"
Opaque
"
)
checkable
:
true
checked
:
configDialog
.
opacityMode
===
1
onClicked
:
configDialog
.
opacityMode
=
1
checked
:
configDialog
.
opacityMode
===
Panel
.
Global
.
Opaque
onClicked
:
configDialog
.
opacityMode
=
Panel
.
Global
.
Opaque
flat
:
false
}
PlasmaComponents.ToolButton
{
width
:
Math
.
max
(
implicitWidth
,
parent
.
width
)
text
:
i18nd
(
"
plasma_shell_org.kde.plasma.desktop
"
,
"
Translucent
"
)
checkable
:
true
checked
:
configDialog
.
opacityMode
===
2
onClicked
:
configDialog
.
opacityMode
=
2
checked
:
configDialog
.
opacityMode
===
Panel
.
Global
.
Translucent
onClicked
:
configDialog
.
opacityMode
=
Panel
.
Global
.
Translucent
flat
:
false
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment