on xenial help sign in
More visual tweaks

Approved by: Albert Astals Cid

commitfb94194b2f18fbddd6d39cebce4781939ef33816 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateWed 9 Nov 2016, 15:04 (10 years ago) parentf00f521c2113c3
5 files changed+7−45
qml/Dash/DashPageHeader.qml−1 qml/Dash/GenericScopeView.qml−36 qml/Dash/Previews/PreviewAudioPlayback.qml+7−8 qml/Dash/graphics/dash_divider_top_darkgrad@27.png qml/Dash/graphics/dash_divider_top_lightgrad@27.png
qml/Dash/DashPageHeader.qml−1
@@ -327,7 +327,6 @@ Item {
327327 anchors {
328328 verticalCenter: parent.verticalCenter
329329 right: parent.right
330− rightMargin: units.gu(2)
331330 leftMargin: units.gu(1)
332331 }
333332 }
qml/Dash/GenericScopeView.qml−36
@@ -552,31 +552,6 @@ FocusScope {
552552 color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
553553 }
554554 }
555−
556− Image {
557− visible: index != 0
558− anchors {
559− top: parent.top
560− left: parent.left
561− right: parent.right
562− }
563− fillMode: Image.Stretch
564− source: "graphics/dash_divider_top_lightgrad.png"
565− z: -1
566− }
567−
568− Image {
569− // FIXME Should not rely on model.count but view.count, but ListViewWithPageHeader doesn't expose it yet.
570− visible: index != categoryView.model.count - 1
571− anchors {
572− bottom: seeAll.bottom
573− left: parent.left
574− right: parent.right
575− }
576− fillMode: Image.Stretch
577− source: "graphics/dash_divider_top_darkgrad.png"
578− z: -1
579− }
580555 }
581556
582557 sectionProperty: "name"
@@ -748,17 +723,6 @@ FocusScope {
748723 color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
749724 }
750725
751− Image {
752− anchors {
753− bottom: parent.bottom
754− left: parent.left
755− right: parent.right
756− }
757− fillMode: Image.Stretch
758− source: "graphics/dash_divider_top_darkgrad.png"
759− z: -1
760− }
761−
762726 Connections {
763727 target: floatingSeeLess.companionTo ? categoryView : null
764728 onContentYChanged: floatingSeeLess.updateVisibility();
qml/Dash/Previews/PreviewAudioPlayback.qml+7−8
@@ -58,7 +58,7 @@ PreviewWidget {
5858 Row {
5959 id: trackRow
6060
61− readonly property int column1Width: units.gu(3)
61+ readonly property int column1Width: units.gu(2)
6262 readonly property int column2Width: width - (2 * spacing) - column1Width - column3Width
6363 readonly property int column3Width: units.gu(4)
6464
@@ -66,16 +66,10 @@ PreviewWidget {
6666 width: parent.width
6767 spacing: units.gu(1)
6868
69− Button {
69+ AbstractButton {
7070 objectName: "playButton"
7171 width: trackRow.column1Width
7272 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"
7973
8074 onClicked: {
8175 if (trackItem.isPlayingItem) {
@@ -92,6 +86,11 @@ PreviewWidget {
9286 DashAudioPlayer.playSource(sourceUrl, playlist);
9387 }
9488 }
89+
90+ Icon {
91+ anchors.fill: parent
92+ source: DashAudioPlayer.playing && trackItem.isPlayingItem ? "image://theme/media-preview-pause" : "image://theme/media-preview-start"
93+ }
9594 }
9695
9796 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.