diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-09 19:17:26 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-09 19:17:26 -0500 |
| commit | 81a8157b67c4d2416d9c4550afc5b50c943352e4 (patch) | |
| tree | 344276e5f9610aa5e6bb106441d9dbe524036ef3 /modules/bar | |
| parent | fix: window title while keeping new panels (diff) | |
| download | caelestia-shell-81a8157b67c4d2416d9c4550afc5b50c943352e4.tar.gz caelestia-shell-81a8157b67c4d2416d9c4550afc5b50c943352e4.tar.bz2 caelestia-shell-81a8157b67c4d2416d9c4550afc5b50c943352e4.zip | |
fix: panels (i'm debugging)
new file: modules/bar/components/Settings.qml
new file: modules/bar/components/SettingsIcon.qml
new file: modules/controlcenter/audio/AudioPane.qml
new file: modules/controlcenter/network/Details.qml
new file: modules/controlcenter/network/NetworkList.qml
new file: modules/controlcenter/network/NetworkPane.qml
new file: modules/controlcenter/network/Settings.qml
Diffstat (limited to 'modules/bar')
| -rw-r--r-- | modules/bar/components/Settings.qml | 42 | ||||
| -rw-r--r-- | modules/bar/components/SettingsIcon.qml | 42 |
2 files changed, 84 insertions, 0 deletions
diff --git a/modules/bar/components/Settings.qml b/modules/bar/components/Settings.qml new file mode 100644 index 0000000..e92fc46 --- /dev/null +++ b/modules/bar/components/Settings.qml @@ -0,0 +1,42 @@ +import qs.components +import qs.modules.controlcenter +import qs.services +import qs.config +import Quickshell +import QtQuick + +Item { + id: root + + implicitWidth: icon.implicitHeight + Appearance.padding.small * 2 + implicitHeight: icon.implicitHeight + + StateLayer { + // Cursed workaround to make the height larger than the parent + anchors.fill: undefined + anchors.centerIn: parent + implicitWidth: implicitHeight + implicitHeight: icon.implicitHeight + Appearance.padding.small * 2 + + radius: Appearance.rounding.full + + function onClicked(): void { + WindowFactory.create(); + } + } + + MaterialIcon { + id: icon + + anchors.centerIn: parent + anchors.horizontalCenterOffset: -1 + + text: "settings" + color: Colours.palette.m3onSurface + font.bold: true + font.pointSize: Appearance.font.size.normal + } +} + + + diff --git a/modules/bar/components/SettingsIcon.qml b/modules/bar/components/SettingsIcon.qml new file mode 100644 index 0000000..e92fc46 --- /dev/null +++ b/modules/bar/components/SettingsIcon.qml @@ -0,0 +1,42 @@ +import qs.components +import qs.modules.controlcenter +import qs.services +import qs.config +import Quickshell +import QtQuick + +Item { + id: root + + implicitWidth: icon.implicitHeight + Appearance.padding.small * 2 + implicitHeight: icon.implicitHeight + + StateLayer { + // Cursed workaround to make the height larger than the parent + anchors.fill: undefined + anchors.centerIn: parent + implicitWidth: implicitHeight + implicitHeight: icon.implicitHeight + Appearance.padding.small * 2 + + radius: Appearance.rounding.full + + function onClicked(): void { + WindowFactory.create(); + } + } + + MaterialIcon { + id: icon + + anchors.centerIn: parent + anchors.horizontalCenterOffset: -1 + + text: "settings" + color: Colours.palette.m3onSurface + font.bold: true + font.pointSize: Appearance.font.size.normal + } +} + + + |