working polkit update

This commit is contained in:
Zacharias-Brohn
2026-02-02 14:18:31 +01:00
parent 159920eb99
commit 6c6066f9f3
6 changed files with 413 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
import QtQuick
import QtQuick.Controls
Button {
id: control
required property color textColor
required property color bgColor
property int radius: 4
contentItem: CustomText {
text: control.text
opacity: control.enabled ? 1.0 : 0.5
color: control.textColor
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
background: CustomRect {
opacity: control.enabled ? 1.0 : 0.5
radius: control.radius
color: control.bgColor
}
StateLayer {
radius: control.radius
function onClicked(): void {
control.clicked();
}
}
}