1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-10 07:25:37 -05:00

no background opt for topbar

This commit is contained in:
bbedward
2025-08-23 17:45:18 -04:00
parent 8eaa1a2d7e
commit 1dfc7dc26e
20 changed files with 123 additions and 52 deletions

View File

@@ -12,10 +12,11 @@ Item {
property var parentScreen: null
property real widgetHeight: 30
property real barHeight: 48
readonly property real horizontalPadding: SettingsData.topBarNoBackground ? 0 : Math.max(Theme.spacingXS, Theme.spacingS * (widgetHeight / 30))
signal clicked
width: 40
width: Theme.iconSize + horizontalPadding * 2
height: widgetHeight
MouseArea {
@@ -40,9 +41,10 @@ Item {
}
Rectangle {
id: launcherContent
anchors.fill: parent
radius: Theme.cornerRadius
color: Qt.rgba(Theme.surfaceTextHover.r, Theme.surfaceTextHover.g,
radius: SettingsData.topBarNoBackground ? 0 : Theme.cornerRadius
color: SettingsData.topBarNoBackground ? "transparent" : Qt.rgba(Theme.surfaceTextHover.r, Theme.surfaceTextHover.g,
Theme.surfaceTextHover.b,
Theme.surfaceTextHover.a * Theme.widgetTransparency)