mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 06:33:09 +00:00
[dialer] Put the sub-label under the number label
This commit is contained in:
parent
86cafaf72e
commit
7fd8ef1922
3 changed files with 13 additions and 16 deletions
|
|
@ -56,6 +56,9 @@ Item {
|
|||
}
|
||||
|
||||
Dialpad {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
callback: function (string) {
|
||||
addNumber(string);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,17 +110,15 @@ PlasmaComponents.Label {
|
|||
PlasmaComponents.Label {
|
||||
id: longHold
|
||||
anchors {
|
||||
verticalCenter: parent.verticalCenter
|
||||
right: parent.right
|
||||
rightMargin: units.smallSpacing
|
||||
bottom: parent.bottom
|
||||
}
|
||||
height: parent.height * 0.4
|
||||
width: parent.width / 3
|
||||
verticalAlignment: Qt.AlignVCenter
|
||||
horizontalAlignment: Qt.AlignHCenter
|
||||
width: parent.width
|
||||
verticalAlignment: Text.AlignBottom
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
visible: text.length > 0
|
||||
opacity: 0.6
|
||||
opacity: 0.4
|
||||
|
||||
fontSizeMode: Text.Fit
|
||||
fontSizeMode: Text.VerticalFit
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,9 +33,6 @@ GridLayout {
|
|||
|
||||
property int buttonHeight: parent.height / 6
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
DialerButton { id: one; text: "1" }
|
||||
DialerButton { text: "2"; sub: "ABC" }
|
||||
DialerButton { text: "3"; sub: "DEF" }
|
||||
|
|
@ -55,8 +52,8 @@ GridLayout {
|
|||
DialerIconButton {
|
||||
id: callButton
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
Layout.minimumHeight: buttonHeight
|
||||
Layout.maximumHeight: buttonHeight
|
||||
Layout.minimumHeight: Layout.maximumHeight
|
||||
|
||||
enabled: status.text.length > 0
|
||||
opacity: enabled ? 1 : 0.5
|
||||
|
|
@ -67,12 +64,11 @@ GridLayout {
|
|||
}
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
DialerIconButton {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
Layout.minimumHeight: buttonHeight
|
||||
Layout.maximumHeight: buttonHeight
|
||||
Layout.minimumHeight: Layout.maximumHeight
|
||||
|
||||
enabled: status.text.length > 0
|
||||
opacity: enabled ? 1 : 0.5
|
||||
|
|
|
|||
Loading…
Reference in a new issue