Merge lp:~agateau/unity-2d/desktop-dash-bg into lp:unity-2d/3.0

Proposed by Aurélien Gâteau
Status: Merged
Approved by: Florian Boucault
Approved revision: 411
Merged at revision: 415
Proposed branch: lp:~agateau/unity-2d/desktop-dash-bg
Merge into: lp:unity-2d/3.0
Diff against target: 124 lines (+36/-23)
3 files modified
places/app/dashdeclarativeview.cpp (+1/-1)
places/app/dashdeclarativeview.h (+2/-1)
places/dash.qml (+33/-21)
To merge this branch: bzr merge lp:~agateau/unity-2d/desktop-dash-bg
Reviewer Review Type Date Requested Status
Florian Boucault (community) code Needs Fixing
Review via email: mp+51106@code.launchpad.net

Commit message

[dash] Fix dash background:
- Do not overlap desktop dash borders
- Use a black semi transparent background in fullscreen + composite mode

Description of the change

[dash] Fix dash background:
- Do not overlap desktop dash borders
- Use a black semi transparent background in fullscreen + composite mode

To post a comment you must log in.
Revision history for this message
Florian Boucault (fboucault) wrote :

In collapsed mode the content still overlaps the search bar.

review: Needs Fixing (functional)
Revision history for this message
Florian Boucault (fboucault) wrote :

> In collapsed mode the content still overlaps the search bar.

And by search bar, I meant the border:

In collapsed mode the content still overlaps the border*

Revision history for this message
Florian Boucault (fboucault) wrote :

Adding a isCompositingManagerRunningChanged signal not only is unrelated to that MR but also is only meant as far as I understand it to shut up QML warnings but the signal is never fired. It does not make sense to let the users of the API think that there is a change notification emitted when there is none.

review: Needs Fixing (code)
Revision history for this message
Florian Boucault (fboucault) wrote :

I am tired of repeating the same things:

"""
About "Content/search results should not overlap the border.", I believe the correct values are:

        anchors.rightMargin: 37
        anchors.bottomMargin: 39

That is for the item containing all the content (= item containing search_entry, pageLoader, etc.)

Also I guess the fullScreenButton will have to be moved out of it.
"""

review: Needs Fixing (code)
Revision history for this message
Aurélien Gâteau (agateau) wrote :

On Thursday 24 February 2011 13:19:11 you wrote:
> Review: Needs Fixing code
> I am tired of repeating the same things:

Done.

lp:~agateau/unity-2d/desktop-dash-bg updated
411. By Aurélien Gâteau

Rework the way the border bug is fixed

Revision history for this message
Aurélien Gâteau (agateau) wrote :

On Thursday 24 February 2011 13:04:56 you wrote:
> Review: Needs Fixing code
> Adding a isCompositingManagerRunningChanged signal not only is unrelated to
> that MR but also is only meant as far as I understand it to shut up QML
> warnings but the signal is never fired. It does not make sense to let the
> users of the API think that there is a change notification emitted when
> there is none.

It is related in that the property was added in the previous desktop-dash MR.

Reducing noise on stderr is important to be able to notice real problems.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'places/app/dashdeclarativeview.cpp'
2--- places/app/dashdeclarativeview.cpp 2011-02-24 01:13:42 +0000
3+++ places/app/dashdeclarativeview.cpp 2011-02-24 15:38:56 +0000
4@@ -34,7 +34,7 @@
5 static const int DASH_MIN_SCREEN_HEIGHT = 1084;
6
7 static const int DASH_DESKTOP_WIDTH = 989;
8-static const int DASH_DESKTOP_COLLAPSED_HEIGHT = 78;
9+static const int DASH_DESKTOP_COLLAPSED_HEIGHT = 115;
10 static const int DASH_DESKTOP_EXPANDED_HEIGHT = 606;
11
12 DashDeclarativeView::DashDeclarativeView()
13
14=== modified file 'places/app/dashdeclarativeview.h'
15--- places/app/dashdeclarativeview.h 2011-02-24 01:13:42 +0000
16+++ places/app/dashdeclarativeview.h 2011-02-24 15:38:56 +0000
17@@ -31,7 +31,7 @@
18 Q_PROPERTY(QString activePlaceEntry READ activePlaceEntry WRITE setActivePlaceEntry NOTIFY activePlaceEntryChanged)
19 Q_PROPERTY(QRect screenGeometry READ screenGeometry NOTIFY screenGeometryChanged)
20 Q_PROPERTY(QRect availableGeometry READ availableGeometry NOTIFY availableGeometryChanged)
21- Q_PROPERTY(bool isCompositingManagerRunning READ isCompositingManagerRunning)
22+ Q_PROPERTY(bool isCompositingManagerRunning READ isCompositingManagerRunning NOTIFY isCompositingManagerRunningChanged)
23
24 public:
25 enum DashMode {
26@@ -68,6 +68,7 @@
27
28 void screenGeometryChanged();
29 void availableGeometryChanged();
30+ void isCompositingManagerRunningChanged(bool);
31
32 protected:
33 void resizeEvent(QResizeEvent*);
34
35=== modified file 'places/dash.qml'
36--- places/dash.qml 2011-02-21 17:45:59 +0000
37+++ places/dash.qml 2011-02-24 15:38:56 +0000
38@@ -65,11 +65,19 @@
39 Component.onCompleted: startAllPlaceServices()
40 }
41
42+ /* Backgrounds */
43 GnomeBackground {
44 anchors.fill: parent
45 overlay_color: "black"
46 overlay_alpha: 0.71
47- visible: dashView.dashMode == DashDeclarativeView.FullScreenMode
48+ visible: dashView.dashMode == DashDeclarativeView.FullScreenMode && !dashView.isCompositingManagerRunning
49+ }
50+
51+ Rectangle {
52+ anchors.fill: parent
53+ color: "black"
54+ opacity: 0.69
55+ visible: dashView.dashMode == DashDeclarativeView.FullScreenMode && dashView.isCompositingManagerRunning
56 }
57
58 BorderImage {
59@@ -77,9 +85,13 @@
60 visible: dashView.dashMode == DashDeclarativeView.DesktopMode
61 source: dashView.isCompositingManagerRunning ? "artwork/desktop_dash_background.sci" : "artwork/desktop_dash_background_no_transparency.sci"
62 }
63+ /* /Backgrounds */
64
65 Item {
66 anchors.fill: parent
67+ anchors.bottomMargin: dashView.dashMode == DashDeclarativeView.DesktopMode ? 38 : 0
68+ anchors.rightMargin: dashView.dashMode == DashDeclarativeView.DesktopMode ? 40 : 0
69+
70 visible: dashView.active
71
72 /* Unhandled keys will always be forwarded to the search bar. That way
73@@ -119,26 +131,6 @@
74 anchors.rightMargin: 19
75 }
76
77- Button {
78- id: fullScreenButton
79- anchors.bottom: parent.bottom
80- anchors.right: parent.right
81- anchors.rightMargin: 15
82- anchors.bottomMargin: 15
83- width: fullScreenButtonImage.sourceSize.width
84- height: fullScreenButtonImage.sourceSize.height
85- visible: dashView.dashMode != DashDeclarativeView.FullScreenMode
86-
87- Image {
88- id: fullScreenButtonImage
89- source: "artwork/fullscreen_button.png"
90- }
91-
92- onClicked: {
93- dashView.dashMode = DashDeclarativeView.FullScreenMode
94- }
95- }
96-
97 Loader {
98 id: pageLoader
99
100@@ -152,4 +144,24 @@
101 anchors.rightMargin: refine_search.folded ? 0 : 15
102 }
103 }
104+
105+ Button {
106+ id: fullScreenButton
107+ anchors.bottom: parent.bottom
108+ anchors.right: parent.right
109+ anchors.rightMargin: 15
110+ anchors.bottomMargin: 15
111+ width: fullScreenButtonImage.sourceSize.width
112+ height: fullScreenButtonImage.sourceSize.height
113+ visible: dashView.dashMode != DashDeclarativeView.FullScreenMode
114+
115+ Image {
116+ id: fullScreenButtonImage
117+ source: "artwork/fullscreen_button.png"
118+ }
119+
120+ onClicked: {
121+ dashView.dashMode = DashDeclarativeView.FullScreenMode
122+ }
123+ }
124 }

Subscribers

People subscribed via source and target branches