on xenial help sign in
More visual fixes
commit3e89f59ebe5c756380aa338e1c7adb7ee61b7434 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateThu 3 Nov 2016, 12:06 (10 years ago) parentdaa3a96
4 files changed+7−44
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/GenericScopeView.qml−36
@@ -593,31 +593,6 @@ FocusScope {
593593 color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
594594 }
595595 }
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− }
621596 }
622597
623598 sectionProperty: "name"
@@ -789,17 +764,6 @@ FocusScope {
789764 color: scopeStyle ? scopeStyle.foreground : theme.palette.normal.baseText
790765 }
791766
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−
803767 Connections {
804768 target: floatingSeeLess.companionTo ? categoryView : null
805769 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.