Changeset View
Changeset View
Standalone View
Standalone View
applets/batterymonitor/package/contents/ui/InhibitionHint.qml
Show All 24 Lines | |||||
25 | RowLayout { | 25 | RowLayout { | ||
26 | property alias iconSource: iconItem.source | 26 | property alias iconSource: iconItem.source | ||
27 | property alias text: label.text | 27 | property alias text: label.text | ||
28 | 28 | | |||
29 | spacing: units.smallSpacing | 29 | spacing: units.smallSpacing | ||
30 | 30 | | |||
31 | PlasmaCore.IconItem { | 31 | PlasmaCore.IconItem { | ||
32 | id: iconItem | 32 | id: iconItem | ||
33 | Layout.preferredWidth: units.iconSizes.medium | 33 | Layout.preferredWidth: units.iconSizes.smallMedium | ||
34 | Layout.preferredHeight: units.iconSizes.medium | 34 | Layout.preferredHeight: Layout.preferredWidth | ||
35 | visible: valid | 35 | visible: valid | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | Components.Label { | 38 | Components.Label { | ||
39 | id: label | 39 | id: label | ||
40 | Layout.fillWidth: true | 40 | Layout.fillWidth: true | ||
41 | height: implicitHeight | 41 | height: implicitHeight | ||
42 | font.pointSize: theme.smallestFont.pointSize | 42 | font.pointSize: theme.smallestFont.pointSize | ||
43 | wrapMode: Text.WordWrap | 43 | wrapMode: Text.WordWrap | ||
44 | elide: Text.ElideRight | 44 | elide: Text.ElideRight | ||
45 | maximumLineCount: 3 | 45 | maximumLineCount: 3 | ||
46 | opacity: 0.6 | ||||
46 | } | 47 | } | ||
47 | } | 48 | } |