mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
actiondrawer: Use proper units and adjust sizing
This commit is contained in:
parent
c3faca672d
commit
2801ad2d8e
2 changed files with 6 additions and 6 deletions
|
|
@ -40,9 +40,9 @@ Item {
|
|||
readonly property real rowHeight: columnWidth * 0.7
|
||||
readonly property real fullHeight: fullView.implicitHeight
|
||||
|
||||
readonly property real intendedColumnWidth: 120
|
||||
readonly property real intendedMinimizedColumnWidth: Kirigami.Units.gridUnit * 3 + Kirigami.Units.gridUnit
|
||||
readonly property real minimizedRowHeight: Kirigami.Units.gridUnit * 3 + Kirigami.Units.gridUnit
|
||||
readonly property real intendedColumnWidth: Kirigami.Units.gridUnit * 7
|
||||
readonly property real intendedMinimizedColumnWidth: Kirigami.Units.gridUnit * 4 + Kirigami.Units.smallSpacing
|
||||
readonly property real minimizedRowHeight: Kirigami.Units.gridUnit * 4 + Kirigami.Units.smallSpacing
|
||||
|
||||
property real minimizedViewProgress: 0
|
||||
property real fullViewProgress: 1
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ QuickSettingsDelegate {
|
|||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
anchors.bottom: parent.bottom
|
||||
|
||||
|
||||
PlasmaComponents.Label {
|
||||
Layout.fillWidth: true
|
||||
elide: Text.ElideRight
|
||||
|
|
@ -93,12 +93,12 @@ QuickSettingsDelegate {
|
|||
font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.75 // TODO base height off of size of delegate
|
||||
font.weight: Font.Bold
|
||||
}
|
||||
|
||||
|
||||
Components.MarqueeLabel {
|
||||
// if no status is given, just use On/Off
|
||||
inputText: root.status ? root.status : (root.enabled ? i18n("On") : i18n("Off"))
|
||||
opacity: 0.6
|
||||
|
||||
|
||||
Layout.fillWidth: true
|
||||
font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.75
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue