Merge lp:~azzar1/ubuntu-themes/fix-osd-progressbar into lp:ubuntu-themes

Proposed by Andrea Azzarone on 2017-10-19
Status: Merged
Approved by: Iain Lane on 2017-10-31
Approved revision: 585
Merged at revision: 589
Proposed branch: lp:~azzar1/ubuntu-themes/fix-osd-progressbar
Merge into: lp:ubuntu-themes
Diff against target: 161 lines (+50/-24)
2 files modified
Ambiance/gtk-3.20/gtk-widgets.css (+25/-12)
Radiance/gtk-3.20/gtk-widgets.css (+25/-12)
To merge this branch: bzr merge lp:~azzar1/ubuntu-themes/fix-osd-progressbar
Reviewer Review Type Date Requested Status
Iain Lane 2017-10-19 Approve on 2017-10-31
Review via email: mp+332491@code.launchpad.net

Commit Message

Fix osd progress bar look.

To post a comment you must log in.
Iain Lane (laney) wrote :

Thanks Andrea, I think the affect looks good (for reference https://usercontent.irccloud-cdn.com/file/Zv4nR8bt/VID_20171019_133537.mp4).

But I'm wondering if it's not too specific. I think the intent of the ".osd" rules we have currently was to style toolbar-like things such as we have in totem. So what if we scope those to apply to "toolbar .osd ..." instead?

review: Needs Information
Andrea Azzarone (azzar1) wrote :

Applying it to "toolbar .osd" does not work here. Maybe because the
progress part is not part of a toolbar?

On Thu, Oct 19, 2017 at 2:24 PM, Iain Lane <email address hidden> wrote:

> Review: Needs Information
>
> Thanks Andrea, I think the affect looks good (for reference
> https://usercontent.irccloud-cdn.com/file/Zv4nR8bt/VID_20171019_133537.mp4
> ).
>
> But I'm wondering if it's not too specific. I think the intent of the
> ".osd" rules we have currently was to style toolbar-like things such as we
> have in totem. So what if we scope those to apply to "toolbar .osd ..."
> instead?
> --
> https://code.launchpad.net/~azzar1/ubuntu-themes/fix-osd-
> progressbar/+merge/332491
> You are the owner of lp:~azzar1/ubuntu-themes/fix-osd-progressbar.
>
> Launchpad-Message-Rationale: Owner
> Launchpad-Message-For: azzar1
> Launchpad-Notification-Type: code-review
> Launchpad-Branch: ~azzar1/ubuntu-themes/fix-osd-progressbar
> Launchpad-Project: ubuntu-themes
>

Iain Lane (laney) wrote :

On Thu, Oct 19, 2017 at 01:39:22PM -0000, Andrea Azzarone wrote:
> Applying it to "toolbar .osd" does not work here. Maybe because the
> progress part is not part of a toolbar?

I mean apply the existing rules to that class, so that they stop
applying in the progressbar case --- is that what you tried?

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Iain Lane (laney) wrote :

On Thu, Oct 19, 2017 at 01:51:40PM -0000, Iain Lane wrote:
> On Thu, Oct 19, 2017 at 01:39:22PM -0000, Andrea Azzarone wrote:
> > Applying it to "toolbar .osd" does not work here. Maybe because the
> > progress part is not part of a toolbar?
>
> I mean apply the existing rules to that class, so that they stop
> applying in the progressbar case --- is that what you tried?

Ah, I should have said "toolbar.osd" instead of "toolbar .osd" too...
that is - look for the comment "/* OSD overlays */" and make the
selectors in the group below that "toolbar.osd" instead of ".osd".

Let me know what you think. :)

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Andrea Azzarone (azzar1) wrote :

If I get it right you are suggesting something like that:
http://paste.ubuntu.com/25773885 ?

On Thu, Oct 19, 2017 at 4:03 PM, Iain Lane <email address hidden> wrote:

> On Thu, Oct 19, 2017 at 01:51:40PM -0000, Iain Lane wrote:
> > On Thu, Oct 19, 2017 at 01:39:22PM -0000, Andrea Azzarone wrote:
> > > Applying it to "toolbar .osd" does not work here. Maybe because the
> > > progress part is not part of a toolbar?
> >
> > I mean apply the existing rules to that class, so that they stop
> > applying in the progressbar case --- is that what you tried?
>
> Ah, I should have said "toolbar.osd" instead of "toolbar .osd" too...
> that is - look for the comment "/* OSD overlays */" and make the
> selectors in the group below that "toolbar.osd" instead of ".osd".
>
> Let me know what you think. :)
>
> --
> Iain Lane [ <email address hidden> ]
> Debian Developer [ <email address hidden> ]
> Ubuntu Developer [ <email address hidden> ]
>
> https://code.launchpad.net/~azzar1/ubuntu-themes/fix-osd-
> progressbar/+merge/332491
> You are the owner of lp:~azzar1/ubuntu-themes/fix-osd-progressbar.
>
> Launchpad-Message-Rationale: Owner
> Launchpad-Message-For: azzar1
> Launchpad-Notification-Type: code-review
> Launchpad-Branch: ~azzar1/ubuntu-themes/fix-osd-progressbar
> Launchpad-Project: ubuntu-themes
>

Iain Lane (laney) wrote :

On Thu, Oct 19, 2017 at 05:36:35PM -0000, Andrea Azzarone wrote:
> If I get it right you are suggesting something like that:
> http://paste.ubuntu.com/25773885 ?

Yeah, if that works. I'm not sure exactly which rules need updating - I
had something like https://paste.ubuntu.com/25800023/ locally.

I don't have a real opinion on adding the styling for progressbar.osd.
The default theme styling looks good to me but if the border changes are
better for you & others then you can include those.

Cheers!

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

585. By Andrea Azzarone on 2017-10-31

s\^.osd\toolbar.osd\g

Andrea Azzarone (azzar1) wrote :

Fixed.

Iain Lane (laney) wrote :

nice!

I guess this should live in b only for a bit, to see if it breaks anything else, before SRUing.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Ambiance/gtk-3.20/gtk-widgets.css'
2--- Ambiance/gtk-3.20/gtk-widgets.css 2017-10-12 05:18:40 +0000
3+++ Ambiance/gtk-3.20/gtk-widgets.css 2017-10-31 09:14:03 +0000
4@@ -2930,26 +2930,26 @@
5
6
7 /* OSD overlays */
8-.osd,
9-.osd:backdrop {
10+toolbar.osd,
11+toolbar.osd:backdrop {
12 color: @osd_fg_color;
13 background-color: @osd_bg_color;
14 border-color: @osd_border_color;
15 }
16
17-.osd:backdrop {
18+toolbar.osd:backdrop {
19 border-color: lighter (@osd_border_color);
20 }
21
22-.osd.toolbar {
23+toolbar.osd.toolbar {
24 padding: 12px;
25 border-radius: 8px;
26 }
27
28-.osd button,
29-.osd button:backdrop,
30-.osd button.destructive-action,
31-.osd button.destructive-action:backdrop {
32+toolbar.osd button,
33+toolbar.osd button:backdrop,
34+toolbar.osd button.destructive-action,
35+toolbar.osd button.destructive-action:backdrop {
36 color: @osd_fg_color;
37 background: none;
38 border: none;
39@@ -2980,24 +2980,37 @@
40
41 button.osd:hover,
42 button.osd.destructive-action:hover,
43-.osd button:hover,
44-.osd button.destructive-action:hover {
45+toolbar.osd button:hover,
46+toolbar.osd button.destructive-action:hover {
47 color: lighter(@osd_fg_color);
48 -gtk-icon-shadow: 0 0 3px @osd_fg_color;
49 }
50
51 button.osd:active,
52-.osd button:active {
53+toolbar.osd button:active {
54 color: darker(@osd_fg_color);
55 -gtk-icon-shadow: none;
56 }
57
58 button.osd.destructive-action:active,
59-.osd button.destructive-action:active {
60+toolbar.osd button.destructive-action:active {
61 color: shade(@osd_fg_color, 0.9);
62 -gtk-icon-shadow: none;
63 }
64
65+progressbar.osd {
66+ padding: 0px;
67+ border-radius: 0;
68+}
69+
70+progressbar.osd trough {
71+ border-radius: 0;
72+}
73+
74+progressbar.osd progress {
75+ border-radius: 0;
76+}
77+
78 /*************
79 * overshoot *
80 *************/
81
82=== modified file 'Radiance/gtk-3.20/gtk-widgets.css'
83--- Radiance/gtk-3.20/gtk-widgets.css 2017-10-12 05:18:40 +0000
84+++ Radiance/gtk-3.20/gtk-widgets.css 2017-10-31 09:14:03 +0000
85@@ -2926,26 +2926,26 @@
86
87
88 /* OSD overlays */
89-.osd,
90-.osd:backdrop {
91+toolbar.osd,
92+toolbar.osd:backdrop {
93 color: @osd_fg_color;
94 background-color: @osd_bg_color;
95 border-color: @osd_border_color;
96 }
97
98-.osd:backdrop {
99+toolbar.osd:backdrop {
100 border-color: lighter (@osd_border_color);
101 }
102
103-.osd.toolbar {
104+toolbar.osd.toolbar {
105 padding: 12px;
106 border-radius: 8px;
107 }
108
109-.osd button,
110-.osd button:backdrop,
111-.osd button.destructive-action,
112-.osd button.destructive-action:backdrop {
113+toolbar.osd button,
114+toolbar.osd button:backdrop,
115+toolbar.osd button.destructive-action,
116+toolbar.osd button.destructive-action:backdrop {
117 color: @osd_fg_color;
118 background: none;
119 border: none;
120@@ -2976,24 +2976,37 @@
121
122 button.osd:hover,
123 button.osd.destructive-action:hover,
124-.osd button:hover,
125-.osd button.destructive-action:hover {
126+toolbar.osd button:hover,
127+toolbar.osd button.destructive-action:hover {
128 color: lighter(@osd_fg_color);
129 -gtk-icon-shadow: 0 0 3px @osd_fg_color;
130 }
131
132 button.osd:active,
133-.osd button:active {
134+toolbar.osd button:active {
135 color: darker(@osd_fg_color);
136 -gtk-icon-shadow: none;
137 }
138
139 button.osd.destructive-action:active,
140-.osd button.destructive-action:active {
141+toolbar.osd button.destructive-action:active {
142 color: shade(@osd_fg_color, 0.9);
143 -gtk-icon-shadow: none;
144 }
145
146+progressbar.osd {
147+ padding: 0px;
148+ border-radius: 0;
149+}
150+
151+progressbar.osd trough {
152+ border-radius: 0;
153+}
154+
155+progressbar.osd progress {
156+ border-radius: 0;
157+}
158+
159 /*************
160 * overshoot *
161 *************/

Subscribers

People subscribed via source and target branches