1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 07:22:50 -05:00

feat: Add Transparency override option to Notepad

This commit is contained in:
purian23
2025-09-21 00:49:23 -04:00
parent 0b2bf0b83d
commit 2e4770f4be
6 changed files with 73 additions and 5 deletions

View File

@@ -20,6 +20,7 @@ PanelWindow {
property Component content: null
property string title: ""
property alias container: contentContainer
property real customTransparency: -1
function show() {
visible = true
@@ -61,10 +62,12 @@ PanelWindow {
anchors.bottom: parent.bottom
anchors.right: parent.right
width: expandable && expandedWidth ? expandedWidthValue : slideoutWidth
color: Theme.surfaceContainer
color: Qt.rgba(Theme.surfaceContainer.r, Theme.surfaceContainer.g, Theme.surfaceContainer.b,
customTransparency >= 0 ? customTransparency : SettingsData.popupTransparency)
border.color: Theme.outlineMedium
border.width: 1
opacity: isVisible ? SettingsData.popupTransparency : 0
visible: isVisible
opacity: isVisible ? (customTransparency >= 0 ? customTransparency : SettingsData.popupTransparency) : 0
Behavior on opacity {
NumberAnimation {