mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
actiondrawer: Cleanup and simplify
Make sure that the view colorset is correct, remove unnecessary layer (clip is enabled), and remove unnecessary visibility hack for the notifications widget.
This commit is contained in:
parent
6d8f0f2564
commit
4a86ad8c06
3 changed files with 3 additions and 4 deletions
|
|
@ -27,6 +27,9 @@ Rectangle {
|
|||
return Math.max(0, Math.min(1, val));
|
||||
}
|
||||
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
||||
Kirigami.Theme.inherit: false
|
||||
|
||||
// Background color
|
||||
color: Qt.rgba(Kirigami.Theme.backgroundColor.r,
|
||||
Kirigami.Theme.backgroundColor.g,
|
||||
|
|
|
|||
|
|
@ -93,8 +93,5 @@ Item {
|
|||
right: parent.right
|
||||
}
|
||||
opacity: applyMinMax(root.actionDrawer.offset / root.minimizedQuickSettingsOffset)
|
||||
|
||||
// HACK: there are weird issues with text rendering black regardless of opacity, just set the text to be invisible once it's out
|
||||
visible: opacity > 0.05
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ import org.kde.kirigami 2.20 as Kirigami
|
|||
*/
|
||||
Item {
|
||||
id: root
|
||||
layer.enabled: true
|
||||
clip: true
|
||||
|
||||
required property var actionDrawer
|
||||
|
|
|
|||
Loading…
Reference in a new issue