Changeset View
Changeset View
Standalone View
Standalone View
cuttlefish/package/contents/ui/ResponsivePreview.qml
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 28 | Kirigami.GlobalDrawer { | |||
---|---|---|---|---|---|
59 | 59 | | |||
60 | actions: [ | 60 | actions: [ | ||
61 | Kirigami.Action { | 61 | Kirigami.Action { | ||
62 | text: i18n("Open icon with external program") | 62 | text: i18n("Open icon with external program") | ||
63 | iconName: "document-open" | 63 | iconName: "document-open" | ||
64 | onTriggered: Qt.openUrlExternally(preview.fullPath) | 64 | onTriggered: Qt.openUrlExternally(preview.fullPath) | ||
65 | }, | 65 | }, | ||
66 | Kirigami.Action { | 66 | Kirigami.Action { | ||
67 | text: i18n("Copy icon name to clipboard") | 67 | text: pickerMode ? i18n("Insert icon name") : i18n("Copy icon name to clipboard") | ||
68 | iconName: "edit-copy" | 68 | iconName: "edit-copy" | ||
69 | onTriggered: { | 69 | onTriggered: { | ||
70 | root.clipboard(preview.iconName) | 70 | root.clipboard(preview.iconName) | ||
71 | cuttlefish.showPassiveNotification(i18n("Icon name copied to clipboard"), "short") | 71 | cuttlefish.showPassiveNotification(i18n("Icon name copied to clipboard"), "short") | ||
72 | } | 72 | } | ||
73 | }, | 73 | }, | ||
74 | Kirigami.Action { | 74 | Kirigami.Action { | ||
75 | iconName: "camera-web-symbolic" | 75 | iconName: "camera-web-symbolic" | ||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |