Merge lp:~dashua/light-themes/border-less.metacity.and.fixes into lp:~ubuntu-art-pkg/light-themes/trunk

Proposed by Paul Sladen
Status: Needs review
Proposed branch: lp:~dashua/light-themes/border-less.metacity.and.fixes
Merge into: lp:~ubuntu-art-pkg/light-themes/trunk
Diff against target: 170 lines (+22/-42)
5 files modified
Ambiance/gtk-2.0/apps/chromium.rc (+1/-1)
Ambiance/metacity-1/metacity-theme-1.xml (+8/-32)
Radiance/gtk-2.0/apps/chromium.rc (+2/-2)
Radiance/metacity-1/metacity-theme-1.xml (+4/-3)
debian/changelog (+7/-4)
To merge this branch: bzr merge lp:~dashua/light-themes/border-less.metacity.and.fixes
Reviewer Review Type Date Requested Status
Paul Sladen (community) Needs Fixing
Review via email: mp+54439@code.launchpad.net

Description of the change

Marking a review so that it's possible to comment on it.

To post a comment you must log in.
Revision history for this message
Paul Sladen (sladen) wrote :

debian/changelog needs combining with what's already there. (move changes to be under the current "UNRELEASED" entry and underneath [James Schriver]. (Also combine Andreas' entries under one name entry).

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

New bug for tracking the request to re-apply zero-pixels borders (also wants linking in the debian/changelog).

  Bug #740579 ("Wishlist: move to 0px borders now that Unity and Unity-2D/Metacity can cope")

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

I am not very good at reading metacity's themes. Do you guys have a description or even a screenshot of what it would look like with Metacity (used by Ubuntu Classic without effects and Unity 2D)?

72. By James Schriver <email address hidden>

  - Add border-less metacity themes and fixes (LP: #733431)
  - Move to 0px borders now that Unity and Unity-2D/Metacity can cope (LP: #7$
* Radiance/apps/chromium.rc
  - Fix incognito theming in Radiance (LP: #697854)

73. By James Schriver <email address hidden>

  * Ambiance/metacity/metacity-theme-1.xml
    - Fix naming in metacity theme

Revision history for this message
James Schriver (dashua) wrote :

I think I fixed everything :)

74. By James Schriver <email address hidden>

Add previous u1 changes

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

Florian: on bug #733431 comment #1 somebody called Florian pasted a screenshot of zero-pixels borders:

  http://launchpadlibrarian.net/66146936/Screenshot.png

Is that what you're after? ;-)

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

Paul, yes, thanks. I thought we agreed we would _not_ introduce that visual result again.

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

bug 740576 says "move to 0px borders now that Unity and Unity-2D/Metacity can cope". What does "Unity-2D/Metacity can cope" means?

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

Hello Florian, I believe (from memory) that the succession of public development conversation has been the following, please correct it if it's wrong:

  (1) bug #733233 - document/implement 0x borders and shadows that were previously only documented/suggested on a private design mailing list
  (2) bug #733431 - document/revert 0px border issues from 'light-themes', reflecting the original concerns expressed on a private mailing list in February that there might be problems (sladen) and subsequently fix Unity-2D to cope (njpatel)
  (3) bug #740576 - document/re-add 0px borders into light-themes - proposal, for discussion, tracking, possible deployment

Specifically on the question of "Unity-2D can cope" this is based on the belief that a fix for (2) to 'unity-2d' may have been committed based. This is based on the status updates made in bug #733431 comment #6.1 and comment 6.2:

  * 2011-03-12: Florian Boucault changed in unity-2d: status: Confirmed → Fix Committed
  * 2011-03-13: Vish on changed in light-themes: status: Fix Committed → Fix Released

Admittedly, the changelogs available for 'unity-2d' in Ubuntu do not record a link to bug #733431 it is not easy to traceback further via the metadata available. In the 'debian/changelog' there is simply a mention of a "New upstream Version release" two days after the above status changes:

  http://changelogs.ubuntu.com/changelogs/pool/main/u/unity-2d/unity-2d_3.6.2-0ubuntu2/changelog

  unity-2d (3.6.2-0ubuntu1) natty; urgency=low
  * New upstream bugfix release
   -- Oliver Grawert <email address hidden> Tue, 15 Mar 2011 17:59:55 +0100

If there is a technical reason why zero-pixel borders will not work on Unity-2D as of 3.6.2-0ubuntu1, it would be most useful to get it documented on bug #740576 as at the moment it would imply that the current title is misleading.

(It's probably worth noting that I, personally, am indifferent and do not have a preference or desire either way. However, I do like discussion, clarity and ability to track the development process with each change *clearly* mapping back to its rationale (the bug report), its implementation (the linked branches) and its deployment (the distro Committed/Released status).

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

Bug #733431 was marked as Fix Committed in Unity 2D because the bug "Windows lack borders: visually unpleasant and leaves only one option to resize" was fixed. The fix was simply the revert to 1px borders in light-themes.

Making borders 0px again will reopen this very same bug.

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

To be very clear, no one did any work on the Unity 2D side. Also, it is not specific to Unity 2D, it is a general metacity issue. If there is something to do to support 0px borders without triggering bug #733431, it's there.

I did not know that the task "[...] subsequently fix Unity-2D to cope (njpatel)" was assigned to njpatel nor do I know any plans in that regard.

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

James: sorry, this is going to be blocked on not having the capability in Metacity. That would need fixing first.

review: Needs Fixing
Revision history for this message
James Schriver (dashua) wrote :

Oh man, should I publish a branch with the other fixes absent the metacity fixes?

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

James: good thinking, can you resync/merge against lp:light-themes and propose the rest of the changes and then push that (plus the necessary 'debian/changelog' tweaks to reflect the changes).

Unmerged revisions

74. By James Schriver <email address hidden>

Add previous u1 changes

73. By James Schriver <email address hidden>

  * Ambiance/metacity/metacity-theme-1.xml
    - Fix naming in metacity theme

72. By James Schriver <email address hidden>

  - Add border-less metacity themes and fixes (LP: #733431)
  - Move to 0px borders now that Unity and Unity-2D/Metacity can cope (LP: #7$
* Radiance/apps/chromium.rc
  - Fix incognito theming in Radiance (LP: #697854)

71. By James Schriver <email address hidden>

* Ambiance/Radiance/metacity/metacity-theme-1.xml
  - Add border-less metacity themes and fixes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Ambiance/gtk-2.0/apps/chromium.rc'
2--- Ambiance/gtk-2.0/apps/chromium.rc 2011-03-17 13:57:19 +0000
3+++ Ambiance/gtk-2.0/apps/chromium.rc 2011-03-23 04:19:21 +0000
4@@ -12,7 +12,7 @@
5 style "chrome-gtk-frame"
6 {
7 ChromeGtkFrame::frame-color = "#3c3b37"
8- ChromeGtkFrame::inactive-frame-color = "#3c3b37"
9+ ChromeGtkFrame::inactive-frame-color = lighter ("#3c3b37")
10
11 ChromeGtkFrame::frame-gradient-size = 16
12 ChromeGtkFrame::frame-gradient-color = "#5c5b56"
13
14=== modified file 'Ambiance/metacity-1/metacity-theme-1.xml'
15--- Ambiance/metacity-1/metacity-theme-1.xml 2011-03-12 14:23:38 +0000
16+++ Ambiance/metacity-1/metacity-theme-1.xml 2011-03-23 04:19:21 +0000
17@@ -5,15 +5,15 @@
18 <name>Ambiance</name>
19 <author>Kenneth Wimer, James Schriver, Andrea Cimitan</author>
20 <copyright>Canonical Ltd.</copyright>
21- <date>Aug, 2010</date>
22+ <date>March, 2011</date>
23 <description>Metacity theme</description>
24 </info>
25
26 <!-- General window layout -->
27 <frame_geometry name="frame_geometry_normal" title_scale="medium" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="false" rounded_bottom_right="false">
28- <distance name="left_width" value="1"/>
29- <distance name="right_width" value="1"/>
30- <distance name="bottom_height" value="1"/>
31+ <distance name="left_width" value="0"/>
32+ <distance name="right_width" value="0"/>
33+ <distance name="bottom_height" value="0"/>
34 <distance name="left_titlebar_edge" value="10"/>
35 <distance name="right_titlebar_edge" value="10"/>
36 <distance name="button_width" value="18"/>
37@@ -110,24 +110,11 @@
38 </gradient>
39
40 <!-- Titlebar outline -->
41- <rectangle color="shade/#3c3b37/1.2" filled="false" x="0" y="0" width="width - 1" height="top_height - 1"/>
42+ <rectangle color="#3c3b37" filled="false" x="0" y="0" width="width - 1" height="top_height - 1"/>
43
44 <!-- Topmost lines -->
45 <line color="shade/#3c3b37/1.2" x1="0" x2="width" y1="0" y2="0"/>
46 <line color="shade/#5c5b56/1.1" x1="0" x2="width" y1="1" y2="1"/>
47-
48- <!-- Darkening of the left arch -->
49- <line color="shade/#3c3b37/1.2" x1="0" x2="4" y1="1" y2="1"/>
50- <line color="shade/#3c3b37/1.2" x1="0" x2="2" y1="2" y2="2"/>
51- <line color="shade/#3c3b37/1.2" x1="0" x2="1" y1="3" y2="3"/>
52- <line color="shade/#3c3b37/1.2" x1="0" x2="1" y1="4" y2="4"/>
53-
54- <line color="shade/#3c3b37/1.2" x1="width-5" x2="width" y1="1" y2="1"/>
55- <line color="shade/#3c3b37/1.2" x1="width-3" x2="width" y1="2" y2="2"/>
56- <line color="shade/#3c3b37/1.2" x1="width-2" x2="width" y1="3" y2="3"/>
57- <line color="shade/#3c3b37/1.2" x1="width-2" x2="width" y1="4" y2="4"/>
58-
59- <line color="shade/#3c3b37/0.9" x1="1" y1="top_height - 1" x2="width - 2" y2="top_height - 1"/>
60 </draw_ops>
61
62 <draw_ops name="draw_title_unfocused">
63@@ -139,24 +126,13 @@
64 </gradient>
65
66 <!-- Titlebar outline -->
67- <rectangle color="shade/#3c3b37/1.2" filled="false" x="0" y="0" width="width - 1" height="top_height - 1"/>
68+ <rectangle color="#3c3b37" filled="false" x="0" y="0" width="width - 1" height="top_height - 1"/>
69
70 <!-- Topmost lines -->
71 <line color="shade/#3c3b37/1.16" x1="0" x2="width" y1="0" y2="0"/>
72 <line color="shade/#494844/1.14" x1="0" x2="width" y1="1" y2="1"/>
73
74- <!-- Darkening of the left arch -->
75- <line color="shade/#3c3b37/1.2" x1="0" x2="4" y1="1" y2="1"/>
76- <line color="shade/#3c3b37/1.2" x1="0" x2="2" y1="2" y2="2"/>
77- <line color="shade/#3c3b37/1.2" x1="0" x2="1" y1="3" y2="3"/>
78- <line color="shade/#3c3b37/1.2" x1="0" x2="1" y1="4" y2="4"/>
79
80- <line color="shade/#3c3b37/1.2" x1="width-5" x2="width" y1="1" y2="1"/>
81- <line color="shade/#3c3b37/1.2" x1="width-3" x2="width" y1="2" y2="2"/>
82- <line color="shade/#3c3b37/1.2" x1="width-2" x2="width" y1="3" y2="3"/>
83- <line color="shade/#3c3b37/1.2" x1="width-2" x2="width" y1="4" y2="4"/>
84-
85- <line color="shade/#3c3b37/0.9" x1="1" y1="top_height - 1" x2="width - 2" y2="top_height - 1"/>
86 </draw_ops>
87
88 <draw_ops name="draw_title_inactive">
89@@ -423,8 +399,8 @@
90 <button function="close" state="normal" draw_ops="close_focused_normal"/>
91 <button function="close" state="prelight" draw_ops="close_focused_prelight"/>
92 <button function="close" state="pressed" draw_ops="close_focused_pressed"/>
93- <shadow radius="45.0" opacity="0.75" color="#abde4f" x_offset="1" y_offset="4"/>
94- <padding left="5" right="5" bottom="5"/>
95+ <shadow radius="16.0" opacity="1.3" color="#abde4f" x_offset="1" y_offset="4"/>
96+ <padding left="7" right="7" bottom="7"/>
97 </frame_style>
98
99 <frame_style name="normal_unfocused" geometry="frame_geometry_normal">
100
101=== modified file 'Radiance/gtk-2.0/apps/chromium.rc'
102--- Radiance/gtk-2.0/apps/chromium.rc 2011-03-17 13:57:19 +0000
103+++ Radiance/gtk-2.0/apps/chromium.rc 2011-03-23 04:19:21 +0000
104@@ -17,8 +17,8 @@
105 ChromeGtkFrame::frame-gradient-size = 16
106 ChromeGtkFrame::frame-gradient-color = shade (0.97, @bg_color)
107
108- ChromeGtkFrame::incognito-frame-color = lighter ("#dfd7cf")
109- ChromeGtkFrame::incognito-inactive-frame-color = lighter ("#dfd7cf")
110+ ChromeGtkFrame::incognito-frame-color = "#dfd7cf"
111+ ChromeGtkFrame::incognito-inactive-frame-color = "#dfd7cf"
112
113 ChromeGtkFrame::incognito-frame-gradient-size = 16
114 ChromeGtkFrame::incognito-frame-gradient-color = shade (0.97, @bg_color)
115
116=== modified file 'Radiance/metacity-1/metacity-theme-1.xml'
117--- Radiance/metacity-1/metacity-theme-1.xml 2011-03-21 19:28:15 +0000
118+++ Radiance/metacity-1/metacity-theme-1.xml 2011-03-23 04:19:21 +0000
119@@ -11,9 +11,9 @@
120
121 <!-- General window layout -->
122 <frame_geometry name="frame_geometry_normal" title_scale="medium" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="false" rounded_bottom_right="false">
123- <distance name="left_width" value="1"/>
124- <distance name="right_width" value="1"/>
125- <distance name="bottom_height" value="1"/>
126+ <distance name="left_width" value="0"/>
127+ <distance name="right_width" value="0"/>
128+ <distance name="bottom_height" value="0"/>
129 <distance name="left_titlebar_edge" value="10"/>
130 <distance name="right_titlebar_edge" value="10"/>
131 <distance name="button_width" value="18"/>
132@@ -101,6 +101,7 @@
133 y="(((height - title_height) / 2) `max` 0)"/>
134 </draw_ops>
135
136+
137 <draw_ops name="draw_title">
138 <!-- Background gradient -->
139 <gradient type="vertical" x="0" y="0" width="width" height="top_height">
140
141=== modified file 'debian/changelog'
142--- debian/changelog 2011-03-22 02:13:52 +0000
143+++ debian/changelog 2011-03-23 04:19:21 +0000
144@@ -4,11 +4,9 @@
145 * Ambiance/Radiance/gtk-2.0/gtkrc
146 - Fix inconsistent menu item distances (LP: #659866)
147
148- [Andrea Cimitan]
149 * Ambiance/apps/gnome-terminal.rc
150 - Add dark-terminal theming to tweak resize grip
151
152- [Andrea Cimitan]
153 * Ambiance/Radiance/apps/chromium.rc
154 - Add specific chromium theming bits (LP: #697854)
155
156@@ -21,8 +19,13 @@
157 - Fix borderless overlap (LP: #733504)*
158 - Update <info> meta-data; version, and incorrect Radiance *name*.
159 - Downcase some hexadecimal colours
160-
161- -- James schriver <jws141@gmail.com> Mon, 21 Mar 2011 22:11:28 -0400
162+ - Add border-less metacity themes and fixes (LP: #733431)
163+ - Move to 0px borders now that Unity and Unity-2D/Metacity can cope (LP: #7$
164+
165+ * Radiance/apps/chromium.rc
166+ - Fix incognito theming in Radiance (LP: #697854)
167+
168+ -- James Schriver <jws141@gmail.com> Wed, 23 Mar 2011 00:06:35 -0400
169
170 light-themes (0.1.8.10) natty; urgency=low
171