on xenial help sign in
Hook up divider color, move pagination dots above the divider.
commit37550facffb4aa5f9cafd0a5cc66625568c8d2a9 authorMichał Sawicz <michal.sawicz@canonical.com> dateThu 14 Aug 2014, 13:41 (12 years ago) parentfcbcf9a
3 files changed+21−26
qml/Dash/PageHeader.qml+21−21 qml/Dash/graphics/PageHeaderBaseDivider@18.png qml/Dash/graphics/PageHeaderBaseDivider@18.sci−5
qml/Dash/PageHeader.qml+21−21
@@ -288,25 +288,6 @@ Item {
288288 }
289289 }
290290
291− Row {
292− spacing: units.gu(.5)
293− Repeater {
294− objectName: "paginationRepeater"
295− model: root.paginationCount
296− Image {
297− objectName: "paginationDots_" + index
298− height: units.gu(1)
299− width: height
300− source: (index == root.paginationIndex) ? "graphics/pagination_dot_on.png" : "graphics/pagination_dot_off.png"
301− }
302− }
303− anchors {
304− top: headerContainer.bottom
305− horizontalCenter: headerContainer.horizontalCenter
306− topMargin: units.gu(.5)
307− }
308− }
309−
310291 Component {
311292 id: popoverComponent
312293 Popover {
@@ -344,7 +325,7 @@ Item {
344325 }
345326 }
346327
347− BorderImage {
328+ Rectangle {
348329 id: bottomBorder
349330 anchors {
350331 top: headerContainer.bottom
@@ -353,7 +334,26 @@ Item {
353334 bottom: bottomContainer.top
354335 }
355336
356− source: "graphics/PageHeaderBaseDivider.sci"
337+ color: scopeStyle ? scopeStyle.headerDividerColor : "#e0e0e0"
338+ }
339+
340+ Row {
341+ spacing: units.gu(.5)
342+ Repeater {
343+ objectName: "paginationRepeater"
344+ model: root.paginationCount
345+ Image {
346+ objectName: "paginationDots_" + index
347+ height: units.gu(1)
348+ width: height
349+ source: (index == root.paginationIndex) ? "graphics/pagination_dot_on.png" : "graphics/pagination_dot_off.png"
350+ }
351+ }
352+ anchors {
353+ top: headerContainer.bottom
354+ horizontalCenter: headerContainer.horizontalCenter
355+ topMargin: units.gu(.5)
356+ }
357357 }
358358
359359 Item {
qml/Dash/graphics/PageHeaderBaseDivider@18.pngdeleted

Binary file not shown.

qml/Dash/graphics/PageHeaderBaseDivider@18.scideleted−5
@@ -1,5 +0,0 @@
1−border.top: 4
2−border.bottom: 4
3−border.left: 0
4−border.right: 0
5−source: PageHeaderBaseDivider@18.png