Changeset View
Changeset View
Standalone View
Standalone View
dialer/package/contents/ui/Dialpad/DialerButton.qml
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 27 | Item { | |||
---|---|---|---|---|---|
84 | ColumnLayout { | 84 | ColumnLayout { | ||
85 | spacing: -5 | 85 | spacing: -5 | ||
86 | anchors.horizontalCenter: parent.horizontalCenter | 86 | anchors.horizontalCenter: parent.horizontalCenter | ||
87 | anchors.verticalCenter: parent.verticalCenter | 87 | anchors.verticalCenter: parent.verticalCenter | ||
88 | 88 | | |||
89 | PlasmaComponents.Label { | 89 | PlasmaComponents.Label { | ||
90 | id: main | 90 | id: main | ||
91 | 91 | | |||
92 | font.pixelSize: units.gridUnit * 2 | ||||
92 | text: root.display || root.text | 93 | text: root.display || root.text | ||
93 | opacity: special? 0.4 : 1.0 | 94 | opacity: special? 0.4 : 1.0 | ||
94 | // anything higher for some reason makes number 4 not rendered | | |||
95 | font.pointSize: 30 | | |||
96 | fontSizeMode: Text.VerticalFit | | |||
97 | Layout.minimumWidth: parent.width | 95 | Layout.minimumWidth: parent.width | ||
98 | horizontalAlignment: Text.AlignHCenter | 96 | horizontalAlignment: Text.AlignHCenter | ||
99 | } | 97 | } | ||
100 | 98 | | |||
101 | PlasmaComponents.Label { | 99 | PlasmaComponents.Label { | ||
102 | id: longHold | 100 | id: longHold | ||
103 | 101 | | |||
104 | text: root.subdisplay || root.sub | 102 | text: root.subdisplay || root.sub | ||
105 | opacity: 0.4 | 103 | opacity: 0.4 | ||
106 | font.pointSize: 16 | | |||
107 | fontSizeMode: Text.VerticalFit | | |||
108 | Layout.minimumWidth: parent.width | 104 | Layout.minimumWidth: parent.width | ||
109 | horizontalAlignment: Text.AlignHCenter | 105 | horizontalAlignment: Text.AlignHCenter | ||
110 | } | 106 | } | ||
111 | } | 107 | } | ||
112 | } | 108 | } |