on xenial help sign in
More visual fixes
3e89f59Andrea Cimitan
qml/Dash/GenericScopeView.qml−36
@@ -593,31 +593,6 @@ FocusScope {
593 color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
593 color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
594 }
594 }
595 }
595 }
596−
597− Image {
598− visible: index != 0
599− anchors {
600− top: parent.top
601− left: parent.left
602− right: parent.right
603− }
604− fillMode: Image.Stretch
605− source: "graphics/dash_divider_top_lightgrad.png"
606− z: -1
607− }
608−
609− Image {
610− // FIXME Should not rely on model.count but view.count, but ListViewWithPageHeader doesn't expose it yet.
611− visible: index != categoryView.model.count - 1
612− anchors {
613− bottom: seeAll.bottom
614− left: parent.left
615− right: parent.right
616− }
617− fillMode: Image.Stretch
618− source: "graphics/dash_divider_top_darkgrad.png"
619− z: -1
620− }
621 }
596 }
622
597
623 sectionProperty: "name"
598 sectionProperty: "name"
@@ -789,17 +764,6 @@ FocusScope {
789 color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
764 color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
790 }
765 }
791
766
792− Image {
793− anchors {
794− bottom: parent.bottom
795− left: parent.left
796− right: parent.right
797− }
798− fillMode: Image.Stretch
799− source: "graphics/dash_divider_top_darkgrad.png"
800− z: -1
801− }
802−
803 Connections {
767 Connections {
804 target: floatingSeeLess.companionTo ? categoryView : null
768 target: floatingSeeLess.companionTo ? categoryView : null
805 onContentYChanged: floatingSeeLess.updateVisibility();
769 onContentYChanged: floatingSeeLess.updateVisibility();
qml/Dash/Previews/PreviewAudioPlayback.qml+7−8
@@ -58,7 +58,7 @@ PreviewWidget {
58 Row {
58 Row {
59 id: trackRow
59 id: trackRow
60
60
61− readonly property int column1Width: units.gu(3)
61+ readonly property int column1Width: units.gu(2)
62 readonly property int column2Width: width - (2 * spacing) - column1Width - column3Width
62 readonly property int column2Width: width - (2 * spacing) - column1Width - column3Width
63 readonly property int column3Width: units.gu(4)
63 readonly property int column3Width: units.gu(4)
64
64
@@ -66,16 +66,10 @@ PreviewWidget {
66 width: parent.width
66 width: parent.width
67 spacing: units.gu(1)
67 spacing: units.gu(1)
68
68
69− Button {
69+ AbstractButton {
70 objectName: "playButton"
70 objectName: "playButton"
71 width: trackRow.column1Width
71 width: trackRow.column1Width
72 height: width
72 height: width
73− iconSource: DashAudioPlayer.playing && trackItem.isPlayingItem ? "image://theme/media-playback-pause" : "image://theme/media-playback-start"
74− activeFocusOnPress: false
75−
76− // Can't be "transparent" or "#00xxxxxx" as the button optimizes away the surrounding shape
77− // FIXME when this is resolved: https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1251685
78− color: "#01000000"
79
73
80 onClicked: {
74 onClicked: {
81 if (trackItem.isPlayingItem) {
75 if (trackItem.isPlayingItem) {
@@ -92,6 +86,11 @@ PreviewWidget {
92 DashAudioPlayer.playSource(sourceUrl, playlist);
86 DashAudioPlayer.playSource(sourceUrl, playlist);
93 }
87 }
94 }
88 }
89+
90+ Icon {
91+ anchors.fill: parent
92+ source: DashAudioPlayer.playing && trackItem.isPlayingItem ? "image://theme/media-preview-pause" : "image://theme/media-preview-start"
93+ }
95 }
94 }
96
95
97 Item {
96 Item {
qml/Dash/graphics/dash_divider_top_darkgrad@27.pngdeleted

Binary file not shown.

qml/Dash/graphics/dash_divider_top_lightgrad@27.pngdeleted

Binary file not shown.