on xenial help sign in
Replace wallpaper with static dash background and adapt styles to match design closer.
commit8e013a4841e8be3bd1b504e905c4327d2df0ecd6 authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 31 Jan 2014, 19:46 (13 years ago) parentdb5e8b7
7 files changed+11−44
qml/Components/ListItems/Header.qml+1−12 qml/Dash/CardFilterGrid.qml+1−1 qml/Dash/DashContent.qml+8 qml/Dash/DashFilterGrid.qml+1−1 qml/Dash/graphics/paper_landscape@27.png qml/Dash/graphics/paper_portrait@27.png qml/Shell.qml−30
qml/Components/ListItems/Header.qml+1−12
@@ -36,7 +36,7 @@ Item {
3636 right: parent.right
3737 rightMargin: units.gu(0.5)
3838 top: parent.top
39− bottom: bottomBorder.top
39+ bottom: parent.bottom
4040 }
4141
4242 Label {
@@ -53,8 +53,6 @@ Item {
5353 fontSize: "medium"
5454 elide: Text.ElideRight
5555 textFormat: Text.PlainText
56− style: Text.Raised
57− styleColor: "black"
5856 width: parent.width - image.width - image.leftMargin - anchors.leftMargin
5957 }
6058
@@ -68,15 +66,6 @@ Item {
6866 }
6967 }
7068
71− ThinDivider {
72− id: bottomBorder
73− anchors {
74− left: parent.left
75− right: parent.right
76− bottom: parent.bottom
77− }
78− }
79−
8069 MouseArea {
8170 anchors.fill: parent
8271 onClicked: parent.clicked(mouse)
qml/Dash/CardFilterGrid.qml+1−1
@@ -23,7 +23,7 @@ DashFilterGrid {
2323 minimumHorizontalSpacing: units.gu(0.5)
2424 delegateWidth: cardTool.cardWidth
2525 delegateHeight: cardTool.cardHeight
26− verticalSpacing: units.gu(2)
26+ verticalSpacing: units.gu(1)
2727
2828 CardTool {
2929 id: cardTool
qml/Dash/DashContent.qml+8
@@ -80,6 +80,14 @@ Item {
8080 }
8181 }
8282
83+ Image {
84+ anchors.fill: parent
85+ source: shell.width > shell.height ? "graphics/paper_landscape.png" : "graphics/paper_portrait.png"
86+ fillMode: Image.PreserveAspectCrop
87+ horizontalAlignment: Image.AlignRight
88+ verticalAlignment: Image.AlignTop
89+ }
90+
8391 Item {
8492 id: dashContentListHolder
8593 anchors.fill: parent
qml/Dash/DashFilterGrid.qml+1−1
@@ -26,6 +26,7 @@ DashRenderer {
2626 property alias delegate: filterGrid.delegate
2727 property alias delegateWidth: filterGrid.delegateWidth
2828 property alias delegateHeight: filterGrid.delegateHeight
29+ property alias verticalSpacing: filterGrid.verticalSpacing
2930 property alias maximumNumberOfColumns: filterGrid.maximumNumberOfColumns
3031 property alias minimumHorizontalSpacing: filterGrid.minimumHorizontalSpacing
3132
@@ -40,7 +41,6 @@ DashRenderer {
4041 height: filterGrid.height
4142 margins: filterGrid.margins
4243 uncollapsedHeight: filterGrid.uncollapsedHeight
43− verticalSpacing: filterGrid.verticalSpacing
4444
4545 function startFilterAnimation(filter) {
4646 filterGrid.startFilterAnimation(filter)
qml/Dash/graphics/paper_landscape@27.pngnew file

Binary file not shown.

qml/Dash/graphics/paper_portrait@27.pngnew file

Binary file not shown.

qml/Shell.qml−30
@@ -125,27 +125,6 @@ FocusScope {
125125 shell.background = gSettingsPicture
126126 }
127127
128− // This is a dummy image that is needed to determine if the picture url
129− // in backgroundSettings points to a valid picture file.
130− // We can't do this with the real background image because setting a
131− // new source in onStatusChanged triggers a binding loop detection
132− // inside Image, which causes it not to render even though a valid source
133− // would be set. We don't mind about this image staying black and just
134− // use it for verification to populate the source for the real
135− // background image.
136− Image {
137− source: shell.background
138− height: 0
139− width: 0
140− sourceSize.height: 0
141− sourceSize.width: 0
142− onStatusChanged: {
143− if (status == Image.Error && source != shell.defaultBackground) {
144− shell.background = defaultBackground
145− }
146− }
147− }
148−
149128 VolumeControl {
150129 id: volumeControl
151130 }
@@ -174,15 +153,6 @@ FocusScope {
174153 // through the translucent parts of the shell surface.
175154 visible: !fullyCovered && !applicationSurfaceShouldBeSeen
176155
177− CrossFadeImage {
178− id: backgroundImage
179− objectName: "backgroundImage"
180−
181− anchors.fill: parent
182− source: shell.background
183− fillMode: Image.PreserveAspectCrop
184− }
185−
186156 Rectangle {
187157 anchors.fill: parent
188158 color: "black"