Merge lp:~unity-team/light-themes/light-themes.dialog_v4 into lp:~ubuntu-art-pkg/light-themes/trunk

Proposed by Sam Spilsbury
Status: Merged
Merged at revision: 104
Proposed branch: lp:~unity-team/light-themes/light-themes.dialog_v4
Merge into: lp:~ubuntu-art-pkg/light-themes/trunk
Diff against target: 400 lines (+231/-13)
2 files modified
Ambiance/metacity-1/metacity-theme-1.xml (+119/-10)
Radiance/metacity-1/metacity-theme-1.xml (+112/-3)
To merge this branch: bzr merge lp:~unity-team/light-themes/light-themes.dialog_v4
Reviewer Review Type Date Requested Status
Andrea Cimitan Approve
Review via email: mp+65958@code.launchpad.net

Description of the change

Add dialog style

To post a comment you must log in.
Revision history for this message
Andrea Cimitan (cimi) wrote :

good work, just remove the whitespace in draw_title_text_normal_dialog for both themes. thanks!

review: Approve
Revision history for this message
Paul Sladen (sladen) wrote :

Please that this be tied back to the original bug # or design-change request before it's applied so that the rationale is clear.

Revision history for this message
Paul Sladen (sladen) wrote :

Bug #767253 ("Finish the implementation of sheet style dialogues"), per mockup 'sheet_style_dialogue.png' (see bug report for attachment).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'Ambiance/metacity-1/close_dialog.png'
2Binary files Ambiance/metacity-1/close_dialog.png 1970-01-01 00:00:00 +0000 and Ambiance/metacity-1/close_dialog.png 2011-06-27 10:52:53 +0000 differ
3=== added file 'Ambiance/metacity-1/close_focused_normal_dialog.png'
4Binary files Ambiance/metacity-1/close_focused_normal_dialog.png 1970-01-01 00:00:00 +0000 and Ambiance/metacity-1/close_focused_normal_dialog.png 2011-06-27 10:52:53 +0000 differ
5=== added file 'Ambiance/metacity-1/close_focused_prelight_dialog.png'
6Binary files Ambiance/metacity-1/close_focused_prelight_dialog.png 1970-01-01 00:00:00 +0000 and Ambiance/metacity-1/close_focused_prelight_dialog.png 2011-06-27 10:52:53 +0000 differ
7=== added file 'Ambiance/metacity-1/close_focused_pressed_dialog.png'
8Binary files Ambiance/metacity-1/close_focused_pressed_dialog.png 1970-01-01 00:00:00 +0000 and Ambiance/metacity-1/close_focused_pressed_dialog.png 2011-06-27 10:52:53 +0000 differ
9=== modified file 'Ambiance/metacity-1/metacity-theme-1.xml'
10--- Ambiance/metacity-1/metacity-theme-1.xml 2011-04-11 15:40:01 +0000
11+++ Ambiance/metacity-1/metacity-theme-1.xml 2011-06-27 10:52:53 +0000
12@@ -5,7 +5,7 @@
13 <name>Ambiance</name>
14 <author>Kenneth Wimer, James Schriver, Andrea Cimitan</author>
15 <copyright>Canonical Ltd.</copyright>
16- <date>April, 2011</date>
17+ <date>June, 2011</date>
18 <description>Metacity theme</description>
19 </info>
20
21@@ -23,6 +23,19 @@
22 <border name="button_border" left="0" right="0" top="1" bottom="1"/>
23 </frame_geometry>
24
25+<frame_geometry name="frame_geometry_dialog" title_scale="xx-large" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="true" rounded_bottom_right="true">
26+ <distance name="left_width" value="22"/>
27+ <distance name="right_width" value="22"/>
28+ <distance name="bottom_height" value="22"/>
29+ <distance name="left_titlebar_edge" value="3"/>
30+ <distance name="right_titlebar_edge" value="3"/>
31+ <distance name="button_width" value="18"/>
32+ <distance name="button_height" value="20"/>
33+ <distance name="title_vertical_pad" value="0"/>
34+ <border name="title_border" left="0" right="0" top="29" bottom="0"/>
35+ <border name="button_border" left="0" right="0" top="0" bottom="31"/>
36+</frame_geometry>
37+
38 <frame_geometry name="frame_geometry_abnormal" title_scale="medium" rounded_top_left="false" rounded_top_right="false">
39 <distance name="left_width" value="0"/>
40 <distance name="right_width" value="0"/>
41@@ -195,6 +208,41 @@
42 <include name="draw_title_maximized_unfocused" />
43 </draw_ops>
44
45+<draw_ops name="draw_title_text_normal_dialog">
46+ <title color="#4a4a4a"
47+ x="10"
48+ y="(((height - title_height) / 2) `max` 0)"/>
49+
50+</draw_ops>
51+
52+<draw_ops name="draw_title_text_inactive_dialog">
53+ <title color="#4a4a4a"
54+ x="10"
55+ y="(((height - title_height) / 2) `max` 0)"/>
56+</draw_ops>
57+
58+<draw_ops name="draw_title_dialog">
59+ <!-- Background gradient -->
60+ <gradient type="vertical" x="0" y="0" width="width" height="top_height">
61+ <color value="#f2f1f0" />
62+ <color value="#f2f1f0" />
63+ <color value="#f2f1f0" />
64+ </gradient>
65+</draw_ops>
66+
67+<draw_ops name="draw_title_unfocused_dialog">
68+ <!-- Background gradient -->
69+ <gradient type="vertical" x="0" y="0" width="width+9" height="height">
70+ <color value="#f2f1f0" />
71+ <color value="#f2f1f0" />
72+ <color value="#f2f1f0" />
73+ </gradient>
74+</draw_ops>
75+
76+<draw_ops name="draw_title_inactive_dialog">
77+ <include name="draw_title_unfocused" />
78+</draw_ops>
79+
80 <!-- Window Frames -->
81
82 <draw_ops name="draw_frame">
83@@ -205,6 +253,13 @@
84 </gradient>
85 </draw_ops>
86
87+<draw_ops name="draw_frame_dialog">
88+ <gradient type="vertical" x="0" y="0" width="width" height="height">
89+ <color value="#f2f1f0" />
90+ <color value="#f2f1f0" />
91+ </gradient>
92+</draw_ops>
93+
94 <!-- bottom border -->
95 <draw_ops name="bottom_edge">
96 <line color="shade/#3c3b37/0.7" x1="0" x2="width" y1="height-1" y2="height-1"/>
97@@ -385,6 +440,24 @@
98 <draw_ops name="close_unfocused_pressed">
99 <image filename="close.png" x="0" y="1" width="object_width" height="object_height"/>
100 </draw_ops>
101+ <draw_ops name="close_focused_normal_dialog">
102+ <image filename="close_focused_normal_dialog.png" x="0" y="1" width="object_width" height="object_height"/>
103+ </draw_ops>
104+ <draw_ops name="close_focused_prelight_dialog">
105+ <image filename="close_focused_prelight_dialog.png" x="0" y="1" width="object_width" height="object_height"/>
106+ </draw_ops>
107+ <draw_ops name="close_focused_pressed_dialog">
108+ <image filename="close_focused_pressed_dialog.png" x="0" y="1" width="object_width" height="object_height"/>
109+ </draw_ops>
110+ <draw_ops name="close_unfocused_normal_dialog">
111+ <image filename="close_focused_normal_dialog.png" x="0" y="1" width="object_width" height="object_height"/>
112+ </draw_ops>
113+ <draw_ops name="close_unfocused_prelight_dialog">
114+ <image filename="close_focused_prelight_dialog.png" x="0" y="1" width="object_width" height="object_height"/>
115+ </draw_ops>
116+ <draw_ops name="close_unfocused_pressed_dialog">
117+ <image filename="close_dialog.png" x="0" y="1" width="object_width" height="object_height"/>
118+ </draw_ops>
119
120 <!-- FRAME STYLE -->
121 <frame_style name="normal_focused" geometry="frame_geometry_normal">
122@@ -464,7 +537,32 @@
123 <button function="close" state="prelight" draw_ops="close_unfocused_prelight"/>
124 <button function="close" state="pressed" draw_ops="close_unfocused_pressed"/>
125 <shadow radius="8.0" opacity="0.5" color="#abde4f" x_offset="1" y_offset="4"/>
126- <padding left="7" right="7" bottom="7"/>
127+ <padding left="5" right="5" bottom="5"/>
128+</frame_style>
129+
130+<frame_style name="dialog_focused" geometry="frame_geometry_dialog" parent="normal_focused">
131+ <piece position="title" draw_ops="draw_title_text_normal_dialog"/>
132+ <piece position="titlebar" draw_ops="draw_title_dialog"/>
133+ <piece position="left_edge" draw_ops="draw_frame_dialog"/>
134+ <piece position="right_edge" draw_ops="draw_frame_dialog"/>
135+ <piece position="bottom_edge" draw_ops="draw_frame_dialog"/>
136+ <button function="close" state="normal" draw_ops="close_focused_normal_dialog"/>
137+ <button function="close" state="prelight" draw_ops="close_focused_prelight_dialog"/>
138+ <button function="close" state="pressed" draw_ops="close_focused_pressed_dialog"/>
139+ <shadow radius="8.0" opacity="1.3" color="#abde4f" x_offset="1" y_offset="4"/>
140+ <padding left="0" right="0" bottom="0"/>
141+</frame_style>
142+
143+<frame_style name="dialog_unfocused" geometry="frame_geometry_dialog" parent="normal_focused">
144+ <piece position="title" draw_ops="draw_title_text_normal_dialog"/>
145+ <piece position="titlebar" draw_ops="draw_title_dialog"/>
146+ <piece position="left_edge" draw_ops="draw_frame_dialog"/>
147+ <piece position="right_edge" draw_ops="draw_frame_dialog"/>
148+ <piece position="bottom_edge" draw_ops="draw_frame_dialog"/>
149+ <button function="close" state="normal" draw_ops="close_unfocused_normal_dialog"/>
150+ <button function="close" state="prelight" draw_ops="close_unfocused_prelight_dialog"/>
151+ <shadow radius="8.0" opacity="1.3" color="#abde4f" x_offset="1" y_offset="4"/>
152+ <padding left="0" right="0" bottom="0"/>
153 </frame_style>
154
155 <frame_style name="maximized_focused" geometry="geometry_maximized" parent="normal_focused">
156@@ -473,8 +571,8 @@
157 <button function="maximize" state="normal" draw_ops="unmaximize_focused_normal"/>
158 <button function="maximize" state="prelight" draw_ops="unmaximize_focused_prelight"/>
159 <button function="maximize" state="pressed" draw_ops="unmaximize_focused_pressed"/>
160- <shadow radius="8.0" opacity="0.3" color="#abde4f" x_offset="1" y_offset="1"/>
161- <padding left="2" right="2" bottom="2"/>
162+ <shadow radius="0.0" opacity="0.0" color="#000000" x_offset="0" y_offset="0"/>
163+ <padding left="0" right="0" bottom="0"/>
164 </frame_style>
165
166 <frame_style name="maximized_unfocused" geometry="geometry_maximized" parent="normal_unfocused">
167@@ -483,8 +581,8 @@
168 <button function="maximize" state="normal" draw_ops="unmaximize_unfocused_normal"/>
169 <button function="maximize" state="prelight" draw_ops="unmaximize_unfocused_prelight"/>
170 <button function="maximize" state="pressed" draw_ops="unmaximize_unfocused_pressed"/>
171- <!--shadow radius="8.0" opacity="0.3" color="#abde4f" x_offset="1" y_offset="1"/-->
172- <!--padding left="2" right="2" bottom="2"/-->
173+ <shadow radius="0.0" opacity="0.0" color="#000000" x_offset="0" y_offset="0"/>
174+ <padding left="0" right="0" bottom="0"/>
175 </frame_style>
176
177 <frame_style name="utility_focused" parent="normal_focused">
178@@ -496,8 +594,8 @@
179 <button function="close" state="normal" draw_ops="close_focused_normal"/>
180 <button function="close" state="prelight" draw_ops="close_focused_prelight"/>
181 <button function="close" state="pressed" draw_ops="close_focused_pressed"/>
182- <shadow radius="8.0" opacity="0.3" color="#abde4f" x_offset="1" y_offset="1"/>
183- <padding left="2" right="2" bottom="2"/>
184+ <shadow radius="60.0" opacity="1.3" color="#abde4f" x_offset="1" y_offset="4"/>
185+ <padding left="7" right="7" bottom="7"/>
186 </frame_style>
187
188 <frame_style name="utility_unfocused" parent="normal_unfocused">
189@@ -530,6 +628,17 @@
190 <frame focus="no" state="maximized_and_shaded" style="maximized_unfocused"/><!-- todo -->
191 </frame_style_set>
192
193+<frame_style_set name="dialog">
194+ <frame focus="yes" state="normal" resize="both" style="dialog_focused"/>
195+ <frame focus="no" state="normal" resize="both" style="dialog_unfocused"/>
196+ <frame focus="yes" state="maximized" style="maximized_focused"/>
197+ <frame focus="no" state="maximized" style="normal_focused"/>
198+ <frame focus="yes" state="shaded" style="dialog_focused"/><!-- todo -->
199+ <frame focus="no" state="shaded" style="dialog_unfocused"/><!-- todo -->
200+ <frame focus="yes" state="maximized_and_shaded" style="dialog_focused"/><!-- todo -->
201+ <frame focus="no" state="maximized_and_shaded" style="dialog_unfocused"/><!-- todo -->
202+</frame_style_set>
203+
204 <frame_style_set name="utility">
205 <frame focus="yes" state="normal" resize="both" style="utility_focused"/>
206 <frame focus="no" state="normal" resize="both" style="utility_unfocused"/>
207@@ -554,8 +663,8 @@
208
209 <!-- WINDOW -->
210 <window type="normal" style_set="normal"/>
211-<window type="dialog" style_set="utility"/>
212-<window type="modal_dialog" style_set="utility"/>
213+<window type="dialog" style_set="normal"/>
214+<window type="modal_dialog" style_set="dialog"/>
215 <window type="menu" style_set="utility"/>
216 <window type="utility" style_set="utility"/>
217 <window type="border" style_set="border"/>
218
219=== added file 'Radiance/metacity-1/close_dialog.png'
220Binary files Radiance/metacity-1/close_dialog.png 1970-01-01 00:00:00 +0000 and Radiance/metacity-1/close_dialog.png 2011-06-27 10:52:53 +0000 differ
221=== added file 'Radiance/metacity-1/close_focused_normal_dialog.png'
222Binary files Radiance/metacity-1/close_focused_normal_dialog.png 1970-01-01 00:00:00 +0000 and Radiance/metacity-1/close_focused_normal_dialog.png 2011-06-27 10:52:53 +0000 differ
223=== added file 'Radiance/metacity-1/close_focused_prelight_dialog.png'
224Binary files Radiance/metacity-1/close_focused_prelight_dialog.png 1970-01-01 00:00:00 +0000 and Radiance/metacity-1/close_focused_prelight_dialog.png 2011-06-27 10:52:53 +0000 differ
225=== added file 'Radiance/metacity-1/close_focused_pressed_dialog.png'
226Binary files Radiance/metacity-1/close_focused_pressed_dialog.png 1970-01-01 00:00:00 +0000 and Radiance/metacity-1/close_focused_pressed_dialog.png 2011-06-27 10:52:53 +0000 differ
227=== modified file 'Radiance/metacity-1/metacity-theme-1.xml'
228--- Radiance/metacity-1/metacity-theme-1.xml 2011-04-11 15:40:01 +0000
229+++ Radiance/metacity-1/metacity-theme-1.xml 2011-06-27 10:52:53 +0000
230@@ -5,7 +5,7 @@
231 <name>Radiance</name>
232 <author>Kenneth Wimer, James Schriver, Andrea Cimitan</author>
233 <copyright>Canonical Ltd.</copyright>
234- <date>March, 2011</date>
235+ <date>June, 2011</date>
236 <description>Metacity theme</description>
237 </info>
238
239@@ -36,6 +36,19 @@
240 <border name="button_border" left="0" right="0" top="1" bottom="1"/>
241 </frame_geometry>
242
243+<frame_geometry name="frame_geometry_dialog" title_scale="xx-large" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="true" rounded_bottom_right="true">
244+ <distance name="left_width" value="22"/>
245+ <distance name="right_width" value="22"/>
246+ <distance name="bottom_height" value="22"/>
247+ <distance name="left_titlebar_edge" value="3"/>
248+ <distance name="right_titlebar_edge" value="3"/>
249+ <distance name="button_width" value="18"/>
250+ <distance name="button_height" value="20"/>
251+ <distance name="title_vertical_pad" value="0"/>
252+ <border name="title_border" left="0" right="0" top="29" bottom="0"/>
253+ <border name="button_border" left="0" right="0" top="0" bottom="31"/>
254+</frame_geometry>
255+
256 <frame_geometry name="geometry_maximized" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
257 <distance name="left_width" value="0"/>
258 <distance name="right_width" value="0"/>
259@@ -163,6 +176,41 @@
260 <include name="draw_title_unfocused" />
261 </draw_ops>
262
263+<draw_ops name="draw_title_text_normal_dialog">
264+ <title color="#4a4a4a"
265+ x="10"
266+ y="(((height - title_height) / 2) `max` 0)"/>
267+
268+</draw_ops>
269+
270+<draw_ops name="draw_title_text_inactive_dialog">
271+ <title color="#4a4a4a"
272+ x="10"
273+ y="(((height - title_height) / 2) `max` 0)"/>
274+</draw_ops>
275+
276+<draw_ops name="draw_title_dialog">
277+ <!-- Background gradient -->
278+ <gradient type="vertical" x="0" y="0" width="width" height="top_height">
279+ <color value="#f2f1f0" />
280+ <color value="#f2f1f0" />
281+ <color value="#f2f1f0" />
282+ </gradient>
283+</draw_ops>
284+
285+<draw_ops name="draw_title_unfocused_dialog">
286+ <!-- Background gradient -->
287+ <gradient type="vertical" x="0" y="0" width="width+9" height="height">
288+ <color value="#f2f1f0" />
289+ <color value="#f2f1f0" />
290+ <color value="#f2f1f0" />
291+ </gradient>
292+</draw_ops>
293+
294+<draw_ops name="draw_title_inactive_dialog">
295+ <include name="draw_title_unfocused" />
296+</draw_ops>
297+
298 <draw_ops name="draw_title_maximized">
299 <!-- Background gradient -->
300 <gradient type="vertical" x="0" y="1" width="width" height="top_height-1">
301@@ -207,6 +255,13 @@
302 </gradient>
303 </draw_ops>
304
305+<draw_ops name="draw_frame_dialog">
306+ <gradient type="vertical" x="0" y="0" width="width" height="height">
307+ <color value="#f2f1f0" />
308+ <color value="#f2f1f0" />
309+ </gradient>
310+</draw_ops>
311+
312 <!-- bottom border -->
313 <draw_ops name="bottom_edge">
314 <line color="shade/gtk:bg[NORMAL]/0.9" x1="0" x2="width" y1="height-1" y2="height-1"/>
315@@ -387,6 +442,24 @@
316 <draw_ops name="close_unfocused_pressed">
317 <image filename="close.png" x="0" y="1" width="object_width" height="object_height"/>
318 </draw_ops>
319+ <draw_ops name="close_focused_normal_dialog">
320+ <image filename="close_focused_normal_dialog.png" x="0" y="1" width="object_width" height="object_height"/>
321+ </draw_ops>
322+ <draw_ops name="close_focused_prelight_dialog">
323+ <image filename="close_focused_prelight_dialog.png" x="0" y="1" width="object_width" height="object_height"/>
324+ </draw_ops>
325+ <draw_ops name="close_focused_pressed_dialog">
326+ <image filename="close_focused_pressed_dialog.png" x="0" y="1" width="object_width" height="object_height"/>
327+ </draw_ops>
328+ <draw_ops name="close_unfocused_normal_dialog">
329+ <image filename="close_focused_normal_dialog.png" x="0" y="1" width="object_width" height="object_height"/>
330+ </draw_ops>
331+ <draw_ops name="close_unfocused_prelight_dialog">
332+ <image filename="close_focused_prelight_dialog.png" x="0" y="1" width="object_width" height="object_height"/>
333+ </draw_ops>
334+ <draw_ops name="close_unfocused_pressed_dialog">
335+ <image filename="close_dialog.png" x="0" y="1" width="object_width" height="object_height"/>
336+ </draw_ops>
337
338 <!-- FRAME STYLE -->
339 <frame_style name="normal_focused" geometry="frame_geometry_normal">
340@@ -469,6 +542,31 @@
341 <padding left="7" right="7" bottom="7"/>
342 </frame_style>
343
344+<frame_style name="dialog_focused" geometry="frame_geometry_dialog" parent="normal_focused">
345+ <piece position="title" draw_ops="draw_title_text_normal_dialog"/>
346+ <piece position="titlebar" draw_ops="draw_title_dialog"/>
347+ <piece position="left_edge" draw_ops="draw_frame_dialog"/>
348+ <piece position="right_edge" draw_ops="draw_frame_dialog"/>
349+ <piece position="bottom_edge" draw_ops="draw_frame_dialog"/>
350+ <button function="close" state="normal" draw_ops="close_focused_normal_dialog"/>
351+ <button function="close" state="prelight" draw_ops="close_focused_prelight_dialog"/>
352+ <button function="close" state="pressed" draw_ops="close_focused_pressed_dialog"/>
353+ <shadow radius="8.0" opacity="1.3" color="#abde4f" x_offset="1" y_offset="4"/>
354+ <padding left="0" right="0" bottom="0"/>
355+</frame_style>
356+
357+<frame_style name="dialog_unfocused" geometry="frame_geometry_dialog" parent="normal_focused">
358+ <piece position="title" draw_ops="draw_title_text_normal_dialog"/>
359+ <piece position="titlebar" draw_ops="draw_title_dialog"/>
360+ <piece position="left_edge" draw_ops="draw_frame_dialog"/>
361+ <piece position="right_edge" draw_ops="draw_frame_dialog"/>
362+ <piece position="bottom_edge" draw_ops="draw_frame_dialog"/>
363+ <button function="close" state="normal" draw_ops="close_unfocused_normal_dialog"/>
364+ <button function="close" state="prelight" draw_ops="close_unfocused_prelight_dialog"/>
365+ <shadow radius="8.0" opacity="1.3" color="#abde4f" x_offset="1" y_offset="4"/>
366+ <padding left="0" right="0" bottom="0"/>
367+</frame_style>
368+
369 <frame_style name="maximized_focused" geometry="geometry_maximized" parent="normal_focused">
370 <piece position="title" draw_ops="draw_title_text_normal"/>
371 <piece position="titlebar" draw_ops="draw_title_maximized"/>
372@@ -532,6 +630,17 @@
373 <frame focus="no" state="maximized_and_shaded" style="maximized_unfocused"/><!-- todo -->
374 </frame_style_set>
375
376+<frame_style_set name="dialog">
377+ <frame focus="yes" state="normal" resize="both" style="dialog_focused"/>
378+ <frame focus="no" state="normal" resize="both" style="dialog_unfocused"/>
379+ <frame focus="yes" state="maximized" style="maximized_focused"/>
380+ <frame focus="no" state="maximized" style="normal_focused"/>
381+ <frame focus="yes" state="shaded" style="dialog_focused"/><!-- todo -->
382+ <frame focus="no" state="shaded" style="dialog_unfocused"/><!-- todo -->
383+ <frame focus="yes" state="maximized_and_shaded" style="dialog_focused"/><!-- todo -->
384+ <frame focus="no" state="maximized_and_shaded" style="dialog_unfocused"/><!-- todo -->
385+</frame_style_set>
386+
387 <frame_style_set name="utility">
388 <frame focus="yes" state="normal" resize="both" style="utility_focused"/>
389 <frame focus="no" state="normal" resize="both" style="utility_unfocused"/>
390@@ -556,8 +665,8 @@
391
392 <!-- WINDOW -->
393 <window type="normal" style_set="normal"/>
394-<window type="dialog" style_set="utility"/>
395-<window type="modal_dialog" style_set="utility"/>
396+<window type="dialog" style_set="normal"/>
397+<window type="modal_dialog" style_set="dialog"/>
398 <window type="menu" style_set="utility"/>
399 <window type="utility" style_set="utility"/>
400 <window type="border" style_set="border"/>

Subscribers

People subscribed via source and target branches