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 | FileDialog { | 36 | FileDialog { | ||
45 | id: ssPicker | 37 | id: ssPicker | ||
46 | selectExisting: false | 38 | selectExisting: false | ||
47 | selectMultiple: false | 39 | selectMultiple: false | ||
48 | selectFolder: false | 40 | selectFolder: false | ||
49 | onAccepted: { | 41 | onAccepted: { | ||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 76 | Kirigami.FormLayout { | |||
98 | QQC2.Label { | 90 | QQC2.Label { | ||
99 | Kirigami.FormData.label: i18n("Scalable:") | 91 | Kirigami.FormData.label: i18n("Scalable:") | ||
100 | text: preview.scalable ? i18n("yes") : i18n("no") | 92 | text: preview.scalable ? i18n("yes") : i18n("no") | ||
101 | font.capitalization: Font.Capitalize | 93 | font.capitalization: Font.Capitalize | ||
102 | } | 94 | } | ||
103 | } | 95 | } | ||
104 | Rectangle { | 96 | Rectangle { | ||
105 | id: iconPreview | 97 | id: iconPreview | ||
106 | Kirigami.Theme.textColor: cuttlefish.textcolor | | |||
107 | Kirigami.Theme.backgroundColor: cuttlefish.bgcolor | | |||
108 | Kirigami.Theme.highlightColor: cuttlefish.highlightcolor | | |||
109 | Kirigami.Theme.highlightedTextColor: cuttlefish.highlightedtextcolor | | |||
110 | Kirigami.Theme.positiveTextColor: cuttlefish.positivetextcolor | | |||
111 | Kirigami.Theme.neutralTextColor: cuttlefish.neutraltextcolor | | |||
112 | Kirigami.Theme.negativeTextColor: cuttlefish.negativetextcolor | | |||
113 | 98 | | |||
114 | property bool screenshotting: false | 99 | property bool screenshotting: false | ||
115 | 100 | | |||
116 | color: Kirigami.Theme.backgroundColor | 101 | color: Kirigami.Theme.backgroundColor | ||
117 | 102 | | |||
118 | Behavior on color { | 103 | Behavior on color { | ||
119 | ColorAnimation { | 104 | ColorAnimation { | ||
120 | duration: Kirigami.Units.longDuration | 105 | duration: Kirigami.Units.longDuration | ||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |