Changeset View
Changeset View
Standalone View
Standalone View
cuttlefish/package/contents/ui/IconGridDelegate.qml
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 28 | MouseArea { | |||
---|---|---|---|---|---|
45 | Rectangle { | 45 | Rectangle { | ||
46 | color: Kirigami.Theme.highlightColor | 46 | color: Kirigami.Theme.highlightColor | ||
47 | opacity: iconGrid.currentIndex == index ? 0.5 : 0.0 | 47 | opacity: iconGrid.currentIndex == index ? 0.5 : 0.0 | ||
48 | visible: opacity != 0.0 | 48 | visible: opacity != 0.0 | ||
49 | Behavior on opacity { NumberAnimation { duration: units.shortDuration } } | 49 | Behavior on opacity { NumberAnimation { duration: units.shortDuration } } | ||
50 | anchors { | 50 | anchors { | ||
51 | fill: parent | 51 | fill: parent | ||
52 | } | 52 | } | ||
53 | Kirigami.Theme.textColor: cuttlefish.textcolor | | |||
54 | Kirigami.Theme.backgroundColor: cuttlefish.bgcolor | | |||
55 | Kirigami.Theme.highlightColor: cuttlefish.highlightcolor | | |||
56 | Kirigami.Theme.highlightedTextColor: cuttlefish.highlightedtextcolor | | |||
57 | Kirigami.Theme.positiveTextColor: cuttlefish.positivetextcolor | | |||
58 | Kirigami.Theme.neutralTextColor: cuttlefish.neutraltextcolor | | |||
59 | Kirigami.Theme.negativeTextColor: cuttlefish.negativetextcolor | | |||
60 | } | 53 | } | ||
61 | 54 | | |||
62 | Kirigami.Icon { | 55 | Kirigami.Icon { | ||
63 | Kirigami.Theme.textColor: cuttlefish.textcolor | | |||
64 | Kirigami.Theme.backgroundColor: cuttlefish.bgcolor | | |||
65 | Kirigami.Theme.highlightColor: cuttlefish.highlightcolor | | |||
66 | Kirigami.Theme.highlightedTextColor: cuttlefish.highlightedtextcolor | | |||
67 | Kirigami.Theme.positiveTextColor: cuttlefish.positivetextcolor | | |||
68 | Kirigami.Theme.neutralTextColor: cuttlefish.neutraltextcolor | | |||
69 | Kirigami.Theme.negativeTextColor: cuttlefish.negativetextcolor | | |||
70 | id: delegateIcon | 56 | id: delegateIcon | ||
71 | width: iconSize | 57 | width: iconSize | ||
72 | height: width | 58 | height: width | ||
73 | source: iconName | 59 | source: iconName | ||
74 | anchors { | 60 | anchors { | ||
75 | top: parent.top | 61 | top: parent.top | ||
76 | horizontalCenter: parent.horizontalCenter | 62 | horizontalCenter: parent.horizontalCenter | ||
77 | } | 63 | } | ||
78 | } | 64 | } | ||
79 | 65 | | |||
80 | QQC2.Label { | 66 | QQC2.Label { | ||
81 | Kirigami.Theme.textColor: cuttlefish.textcolor | | |||
82 | Kirigami.Theme.backgroundColor: cuttlefish.bgcolor | | |||
83 | Kirigami.Theme.highlightColor: cuttlefish.highlightcolor | | |||
84 | Kirigami.Theme.highlightedTextColor: cuttlefish.highlightedtextcolor | | |||
85 | Kirigami.Theme.positiveTextColor: cuttlefish.positivetextcolor | | |||
86 | Kirigami.Theme.neutralTextColor: cuttlefish.neutraltextcolor | | |||
87 | Kirigami.Theme.negativeTextColor: cuttlefish.negativetextcolor | | |||
88 | font.pointSize: iconSize > 96 ? theme.defaultFont.pointSize : theme.smallestFont.pointSize | 67 | font.pointSize: iconSize > 96 ? theme.defaultFont.pointSize : theme.smallestFont.pointSize | ||
89 | text: iconName | 68 | text: iconName | ||
90 | wrapMode: Text.Wrap | 69 | wrapMode: Text.Wrap | ||
91 | maximumLineCount: 3 | 70 | maximumLineCount: 3 | ||
92 | horizontalAlignment: Text.AlignHCenter | 71 | horizontalAlignment: Text.AlignHCenter | ||
93 | opacity: iconGrid.currentIndex == index ? 1.0 : 0.7 | 72 | opacity: iconGrid.currentIndex == index ? 1.0 : 0.7 | ||
94 | anchors { | 73 | anchors { | ||
95 | left: parent.left | 74 | left: parent.left | ||
Show All 23 Lines |