Differential D11349 Diff 30004 src/context/context_qml_package/contents/ui/toolbar/AppletToolbarAddItem.qml
Changeset View
Changeset View
Standalone View
Standalone View
src/context/context_qml_package/contents/ui/toolbar/AppletToolbarAddItem.qml
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 38 | delegate: Rectangle { | |||
---|---|---|---|---|---|
44 | color: delegateMouseArea.pressed ? palette.highlight : appletEnabled ? palette.highlight : "transparent" | 44 | color: delegateMouseArea.pressed ? palette.highlight : appletEnabled ? palette.highlight : "transparent" | ||
45 | border.color: delegateMouseArea.containsMouse ? palette.highlight : "transparent" | 45 | border.color: delegateMouseArea.containsMouse ? palette.highlight : "transparent" | ||
46 | border.width: 2 | 46 | border.width: 2 | ||
47 | 47 | | |||
48 | ColumnLayout { | 48 | ColumnLayout { | ||
49 | anchors.fill: parent | 49 | anchors.fill: parent | ||
50 | 50 | | |||
51 | Image { | 51 | Image { | ||
52 | source: "image://icon/" + icon | 52 | source: icon | ||
53 | Layout.fillHeight: true | 53 | Layout.fillHeight: true | ||
54 | Layout.fillWidth: true | 54 | Layout.fillWidth: true | ||
55 | Layout.alignment: Qt.AlignTop | 55 | Layout.alignment: Qt.AlignTop | ||
56 | Layout.margins: Kirigami.Units.smallSpacing | 56 | Layout.margins: Kirigami.Units.smallSpacing | ||
57 | sourceSize.width: width | 57 | sourceSize.width: width | ||
58 | sourceSize.height: height | 58 | sourceSize.height: height | ||
59 | fillMode: Image.PreserveAspectFit | ||||
59 | } | 60 | } | ||
60 | Label { | 61 | Label { | ||
61 | Layout.alignment: Qt.AlignBottom | 62 | Layout.alignment: Qt.AlignBottom | ||
62 | Layout.margins: Kirigami.Units.smallSpacing | 63 | Layout.margins: Kirigami.Units.smallSpacing | ||
63 | Layout.fillWidth: true | 64 | Layout.fillWidth: true | ||
64 | text: name | 65 | text: name | ||
65 | wrapMode: Text.Wrap | 66 | wrapMode: Text.Wrap | ||
66 | horizontalAlignment: Text.AlignHCenter | 67 | horizontalAlignment: Text.AlignHCenter | ||
Show All 19 Lines |