diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-11-15 17:15:02 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-11-15 17:15:34 +1100 |
| commit | 6a92f985d8739ef2c397714f79e18b74f48fb705 (patch) | |
| tree | e9fdf8c9bf07bc84b3e02f9a73de8545f1e29e9a /modules/controlcenter/network/SimpleButton.qml | |
| parent | controlcenter: removed signal strength percentage from network list (diff) | |
| download | caelestia-shell-6a92f985d8739ef2c397714f79e18b74f48fb705.tar.gz caelestia-shell-6a92f985d8739ef2c397714f79e18b74f48fb705.tar.bz2 caelestia-shell-6a92f985d8739ef2c397714f79e18b74f48fb705.zip | |
internal: use existing button controls
Instead of SimpleButton
Diffstat (limited to 'modules/controlcenter/network/SimpleButton.qml')
| -rw-r--r-- | modules/controlcenter/network/SimpleButton.qml | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/modules/controlcenter/network/SimpleButton.qml b/modules/controlcenter/network/SimpleButton.qml deleted file mode 100644 index a73f751..0000000 --- a/modules/controlcenter/network/SimpleButton.qml +++ /dev/null @@ -1,50 +0,0 @@ -import qs.components -import qs.components.controls -import qs.components.effects -import qs.config -import QtQuick -import QtQuick.Layouts - -StyledRect { - id: root - - property color onColor: Colours.palette.m3onSurface - property alias disabled: stateLayer.disabled - property alias text: label.text - property alias enabled: stateLayer.enabled - property string icon: "" - - implicitWidth: rowLayout.implicitWidth + Appearance.padding.normal * 2 - implicitHeight: rowLayout.implicitHeight + Appearance.padding.small * 2 - radius: Appearance.rounding.normal - - StateLayer { - id: stateLayer - color: parent.onColor - function onClicked(): void { - if (parent.enabled !== false) { - parent.clicked(); - } - } - } - - RowLayout { - id: rowLayout - anchors.centerIn: parent - spacing: Appearance.spacing.small - - MaterialIcon { - id: iconItem - visible: root.icon.length > 0 - text: root.icon - color: root.onColor - } - - StyledText { - id: label - color: parent.parent.onColor - } - } - - signal clicked -}
\ No newline at end of file |