Changeset View
Changeset View
Standalone View
Standalone View
cuttlefish/package/contents/ui/Preview.qml
Show All 25 Lines | |||||
26 | import QtQuick.Dialogs 1.3 | 26 | import QtQuick.Dialogs 1.3 | ||
27 | 27 | | |||
28 | import org.kde.kirigami 2.8 as Kirigami | 28 | import org.kde.kirigami 2.8 as Kirigami | ||
29 | 29 | | |||
30 | Rectangle { | 30 | Rectangle { | ||
31 | property alias iconPreview: iconPreview | 31 | property alias iconPreview: iconPreview | ||
32 | property alias dualMont: dualMont | 32 | property alias dualMont: dualMont | ||
33 | 33 | | |||
34 | Kirigami.Theme.textColor: cuttlefish.textcolor | | |||
35 | Kirigami.Theme.backgroundColor: cuttlefish.bgcolor | | |||
36 | Kirigami.Theme.highlightColor: cuttlefish.highlightcolor | | |||
37 | Kirigami.Theme.highlightedTextColor: cuttlefish.highlightedtextcolor | | |||
38 | Kirigami.Theme.positiveTextColor: cuttlefish.positivetextcolor | | |||
39 | Kirigami.Theme.neutralTextColor: cuttlefish.neutraltextcolor | | |||
40 | Kirigami.Theme.negativeTextColor: cuttlefish.negativetextcolor | | |||
41 | | ||||
42 | color: Kirigami.Theme.backgroundColor | 34 | color: Kirigami.Theme.backgroundColor | ||
43 | 35 | | |||
44 | function clipboard(text) { | 36 | function clipboard(text) { | ||
45 | if (!pickerMode) { | 37 | if (!pickerMode) { | ||
46 | clipboardHelper.text = text; | 38 | clipboardHelper.text = text; | ||
47 | clipboardHelper.selectAll(); | 39 | clipboardHelper.selectAll(); | ||
48 | clipboardHelper.copy(); | 40 | clipboardHelper.copy(); | ||
49 | } else { | 41 | } else { | ||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 91 | Kirigami.FormLayout { | |||
113 | QQC2.Label { | 105 | QQC2.Label { | ||
114 | Kirigami.FormData.label: i18n("Scalable:") | 106 | Kirigami.FormData.label: i18n("Scalable:") | ||
115 | text: preview.scalable ? i18n("yes") : i18n("no") | 107 | text: preview.scalable ? i18n("yes") : i18n("no") | ||
116 | font.capitalization: Font.Capitalize | 108 | font.capitalization: Font.Capitalize | ||
117 | } | 109 | } | ||
118 | } | 110 | } | ||
119 | Rectangle { | 111 | Rectangle { | ||
120 | id: iconPreview | 112 | id: iconPreview | ||
121 | Kirigami.Theme.textColor: cuttlefish.textcolor | | |||
122 | Kirigami.Theme.backgroundColor: cuttlefish.bgcolor | | |||
123 | Kirigami.Theme.highlightColor: cuttlefish.highlightcolor | | |||
124 | Kirigami.Theme.highlightedTextColor: cuttlefish.highlightedtextcolor | | |||
125 | Kirigami.Theme.positiveTextColor: cuttlefish.positivetextcolor | | |||
126 | Kirigami.Theme.neutralTextColor: cuttlefish.neutraltextcolor | | |||
127 | Kirigami.Theme.negativeTextColor: cuttlefish.negativetextcolor | | |||
128 | 113 | | |||
129 | property bool screenshotting: false | 114 | property bool screenshotting: false | ||
130 | 115 | | |||
131 | color: Kirigami.Theme.backgroundColor | 116 | color: Kirigami.Theme.backgroundColor | ||
132 | 117 | | |||
133 | Behavior on color { | 118 | Behavior on color { | ||
134 | ColorAnimation { | 119 | ColorAnimation { | ||
135 | duration: Kirigami.Units.longDuration | 120 | duration: Kirigami.Units.longDuration | ||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |