Changeset View
Changeset View
Standalone View
Standalone View
cuttlefish/package/contents/ui/cuttlefish.qml
Show First 20 Lines • Show All 206 Lines • ▼ Show 20 Line(s) | 205 | Loader { | |||
---|---|---|---|---|---|
207 | source: "ResponsivePreview.qml" | 207 | source: "ResponsivePreview.qml" | ||
208 | } | 208 | } | ||
209 | Connections { | 209 | Connections { | ||
210 | target: tools | 210 | target: tools | ||
211 | onColorschemeChanged: (index) => { | 211 | onColorschemeChanged: (index) => { | ||
212 | cuttlefish.changeColors(index) | 212 | cuttlefish.changeColors(index) | ||
213 | toolsResponsive.currentIndex = index | 213 | toolsResponsive.currentIndex = index | ||
214 | } | 214 | } | ||
215 | onSliderValueChanged: (val) => { | ||||
216 | toolsResponsive.value = val | ||||
217 | } | ||||
215 | } | 218 | } | ||
216 | Connections { | 219 | Connections { | ||
217 | target: toolsResponsive | 220 | target: toolsResponsive | ||
218 | onColorschemeChanged: (index) => { | 221 | onColorschemeChanged: (index) => { | ||
219 | cuttlefish.changeColors(index) | 222 | cuttlefish.changeColors(index) | ||
220 | tools.currentIndex = index | 223 | tools.currentIndex = index | ||
221 | } | 224 | } | ||
225 | onSliderValueChanged: (val) => { | ||||
226 | tools.value = val | ||||
227 | } | ||||
222 | } | 228 | } | ||
223 | Item { | 229 | Item { | ||
224 | id: preview | 230 | id: preview | ||
225 | property string iconName: "plasma" | 231 | property string iconName: "plasma" | ||
226 | property string fullPath: "" | 232 | property string fullPath: "" | ||
227 | property string category: "" | 233 | property string category: "" | ||
228 | property string fileName: "" | 234 | property string fileName: "" | ||
229 | property string type: "" | 235 | property string type: "" | ||
Show All 17 Lines |