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 /components | |
| 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 'components')
| -rw-r--r-- | components/controls/IconTextButton.qml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/components/controls/IconTextButton.qml b/components/controls/IconTextButton.qml index 78e7c5b..0badd7a 100644 --- a/components/controls/IconTextButton.qml +++ b/components/controls/IconTextButton.qml @@ -2,6 +2,7 @@ import ".." import qs.services import qs.config import QtQuick +import QtQuick.Layouts StyledRect { id: root @@ -53,7 +54,7 @@ StyledRect { } } - Row { + RowLayout { id: row anchors.centerIn: parent @@ -62,7 +63,8 @@ StyledRect { MaterialIcon { id: iconLabel - anchors.verticalCenter: parent.verticalCenter + Layout.alignment: Qt.AlignVCenter + Layout.topMargin: Math.round(fontInfo.pointSize * 0.0575) color: root.internalChecked ? root.activeOnColour : root.inactiveOnColour fill: root.internalChecked ? 1 : 0 @@ -74,7 +76,8 @@ StyledRect { StyledText { id: label - anchors.verticalCenter: parent.verticalCenter + Layout.alignment: Qt.AlignVCenter + Layout.topMargin: -Math.round(iconLabel.fontInfo.pointSize * 0.0575) color: root.internalChecked ? root.activeOnColour : root.inactiveOnColour } } |