Changeset View
Changeset View
Standalone View
Standalone View
sddm-theme/Background.qml
Show All 28 Lines | 22 | FocusScope { | |||
---|---|---|---|---|---|
29 | Rectangle { | 29 | Rectangle { | ||
30 | id: sceneColorBackground | 30 | id: sceneColorBackground | ||
31 | anchors.fill: parent | 31 | anchors.fill: parent | ||
32 | } | 32 | } | ||
33 | 33 | | |||
34 | Image { | 34 | Image { | ||
35 | id: sceneImageBackground | 35 | id: sceneImageBackground | ||
36 | anchors.fill: parent | 36 | anchors.fill: parent | ||
37 | sourceSize.width: parent.width | ||||
38 | sourceSize.height: parent.height | ||||
37 | fillMode: Image.PreserveAspectCrop | 39 | fillMode: Image.PreserveAspectCrop | ||
38 | smooth: true; | 40 | smooth: true; | ||
39 | } | 41 | } | ||
40 | 42 | | |||
41 | states: [ | 43 | states: [ | ||
42 | State { | 44 | State { | ||
43 | name: "imageBackground" | 45 | name: "imageBackground" | ||
44 | when: sceneBackgroundType === "image" | 46 | when: sceneBackgroundType === "image" | ||
Show All 23 Lines |