diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-12 16:36:42 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-12 16:36:42 -0500 |
| commit | 893a91a95a11cb57ffe2fbfa0ec221c1a309528b (patch) | |
| tree | 93ffc258a9ef2b5ea1bd8ef9109e48991844f1af /components/PropertyRow.qml | |
| parent | controlcenter: refactoring into components (diff) | |
| download | caelestia-shell-893a91a95a11cb57ffe2fbfa0ec221c1a309528b.tar.gz caelestia-shell-893a91a95a11cb57ffe2fbfa0ec221c1a309528b.tar.bz2 caelestia-shell-893a91a95a11cb57ffe2fbfa0ec221c1a309528b.zip | |
controlcenter: refactored wifi/ethernet panels
Diffstat (limited to 'components/PropertyRow.qml')
| -rw-r--r-- | components/PropertyRow.qml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/components/PropertyRow.qml b/components/PropertyRow.qml new file mode 100644 index 0000000..697830a --- /dev/null +++ b/components/PropertyRow.qml @@ -0,0 +1,27 @@ +import qs.components +import qs.services +import qs.config +import QtQuick +import QtQuick.Layouts + +ColumnLayout { + id: root + + required property string label + required property string value + property bool showTopMargin: false + + spacing: Appearance.spacing.small / 2 + + StyledText { + Layout.topMargin: root.showTopMargin ? Appearance.spacing.normal : 0 + text: root.label + } + + StyledText { + text: root.value + color: Colours.palette.m3outline + font.pointSize: Appearance.font.size.small + } +} + |