Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/contents/ui/config.qml
Show All 32 Lines | |||||
33 | ColumnLayout { | 33 | ColumnLayout { | ||
34 | id: root | 34 | id: root | ||
35 | property alias cfg_Color: colorButton.color | 35 | property alias cfg_Color: colorButton.color | ||
36 | property string cfg_Image | 36 | property string cfg_Image | ||
37 | property int cfg_FillMode | 37 | property int cfg_FillMode | ||
38 | property alias cfg_Blur: blurRadioButton.checked | 38 | property alias cfg_Blur: blurRadioButton.checked | ||
39 | property var cfg_SlidePaths: "" | 39 | property var cfg_SlidePaths: "" | ||
40 | property int cfg_SlideInterval: 0 | 40 | property int cfg_SlideInterval: 0 | ||
41 | property var cfg_UncheckedSlides: "" | ||||
davidedmundson: default should be []
| |||||
41 | 42 | | |||
42 | function saveConfig() { | 43 | function saveConfig() { | ||
43 | imageWallpaper.commitDeletion(); | 44 | imageWallpaper.commitDeletion(); | ||
44 | } | 45 | } | ||
45 | 46 | | |||
46 | SystemPalette { | 47 | SystemPalette { | ||
47 | id: syspal | 48 | id: syspal | ||
48 | } | 49 | } | ||
49 | 50 | | |||
50 | Wallpaper.Image { | 51 | Wallpaper.Image { | ||
51 | id: imageWallpaper | 52 | id: imageWallpaper | ||
52 | targetSize: { | 53 | targetSize: { | ||
53 | if (typeof plasmoid !== "undefined") { | 54 | if (typeof plasmoid !== "undefined") { | ||
54 | return Qt.size(plasmoid.width, plasmoid.height) | 55 | return Qt.size(plasmoid.width, plasmoid.height) | ||
55 | } | 56 | } | ||
56 | // Lock screen configuration case | 57 | // Lock screen configuration case | ||
57 | return Qt.size(Screen.width, Screen.height) | 58 | return Qt.size(Screen.width, Screen.height) | ||
58 | } | 59 | } | ||
59 | onSlidePathsChanged: cfg_SlidePaths = slidePaths | 60 | onSlidePathsChanged: cfg_SlidePaths = slidePaths | ||
61 | onUncheckedSlidesChanged: cfg_UncheckedSlides = uncheckedSlides | ||||
60 | } | 62 | } | ||
61 | 63 | | |||
62 | onCfg_SlidePathsChanged: { | 64 | onCfg_SlidePathsChanged: { | ||
63 | imageWallpaper.slidePaths = cfg_SlidePaths | 65 | imageWallpaper.slidePaths = cfg_SlidePaths | ||
64 | } | 66 | } | ||
67 | onCfg_UncheckedSlidesChanged: { | ||||
68 | imageWallpaper.uncheckedSlides = cfg_UncheckedSlides | ||||
69 | } | ||||
65 | 70 | | |||
66 | property int hoursIntervalValue: Math.floor(cfg_SlideInterval / 3600) | 71 | property int hoursIntervalValue: Math.floor(cfg_SlideInterval / 3600) | ||
67 | property int minutesIntervalValue: Math.floor(cfg_SlideInterval % 3600) / 60 | 72 | property int minutesIntervalValue: Math.floor(cfg_SlideInterval % 3600) / 60 | ||
68 | property int secondsIntervalValue: cfg_SlideInterval % 3600 % 60 | 73 | property int secondsIntervalValue: cfg_SlideInterval % 3600 % 60 | ||
69 | 74 | | |||
70 | //Rectangle { color: "orange"; x: formAlignment; width: formAlignment; height: 20 } | 75 | //Rectangle { color: "orange"; x: formAlignment; width: formAlignment; height: 20 } | ||
71 | 76 | | |||
72 | TextMetrics { | 77 | TextMetrics { | ||
▲ Show 20 Lines • Show All 299 Lines • Show Last 20 Lines |
default should be []