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:
Devin Lin 2024-11-01 15:41:57 -07:00
parent 6d8f0f2564
commit 4a86ad8c06
3 changed files with 3 additions and 4 deletions

View file

@ -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,

View file

@ -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
}
}

View file

@ -20,7 +20,6 @@ import org.kde.kirigami 2.20 as Kirigami
*/
Item {
id: root
layer.enabled: true
clip: true
required property var actionDrawer