Merge lp:~unity-team/ubuntu-themes/x-sru1 into lp:ubuntu-themes/xenial

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 488
Merged at revision: 487
Proposed branch: lp:~unity-team/ubuntu-themes/x-sru1
Merge into: lp:ubuntu-themes/xenial
Diff against target: 267 lines (+146/-3)
7 files modified
Ambiance/gtk-2.0/apps/caja.rc (+11/-0)
Ambiance/gtk-2.0/apps/mate-panel.rc (+29/-0)
Ambiance/gtk-2.0/gtkrc (+30/-2)
Radiance/gtk-2.0/apps/caja.rc (+11/-0)
Radiance/gtk-2.0/apps/mate-panel.rc (+29/-0)
Radiance/gtk-2.0/gtkrc (+29/-1)
debian/changelog (+7/-0)
To merge this branch: bzr merge lp:~unity-team/ubuntu-themes/x-sru1
Reviewer Review Type Date Requested Status
Ubuntu Artwork Packagers Pending
Review via email: mp+333846@code.launchpad.net

Commit message

gtk2: Ambiance, Radiance: use dark menus as we do in gtk3

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'Ambiance/gtk-2.0/apps/caja.rc'
2--- Ambiance/gtk-2.0/apps/caja.rc 1970-01-01 00:00:00 +0000
3+++ Ambiance/gtk-2.0/apps/caja.rc 2017-11-16 21:10:49 +0000
4@@ -0,0 +1,11 @@
5+# ==============================================================================
6+# CAJA SPECIFIC SETTINGS
7+# ==============================================================================
8+
9+style "caja_info_pane" {
10+ bg[NORMAL] = @bg_color
11+}
12+
13+widget_class "*Caja*<GtkNotebook>*<GtkEventBox>" style "caja_info_pane"
14+widget_class "*Caja*<GtkButton>" style "notebook_button"
15+widget_class "*Caja*<GtkButton>*<GtkLabel>" style "notebook_button"
16
17=== added file 'Ambiance/gtk-2.0/apps/mate-panel.rc'
18--- Ambiance/gtk-2.0/apps/mate-panel.rc 1970-01-01 00:00:00 +0000
19+++ Ambiance/gtk-2.0/apps/mate-panel.rc 2017-11-16 21:10:49 +0000
20@@ -0,0 +1,29 @@
21+# Panel specific settings for correct theming on MATE
22+
23+style "panel" = "dark"
24+{
25+ xthickness = 0
26+ ythickness = 0
27+
28+ engine "murrine" {
29+ colorize_scrollbar = TRUE
30+ }
31+}
32+
33+style "panel_default" = "dark"
34+{
35+ engine "murrine" {
36+ colorize_scrollbar = TRUE
37+ }
38+}
39+
40+widget "*Panel" style "panel"
41+widget "*PanelWidget*" style "panel"
42+widget "*PanelApplet*" style "panel" # workaround for right click menu corrupted bg
43+widget "*fast-user-switch*" style "panel" # workaround for Fast User Switch applet
44+widget "*CPUFreqApplet*" style "panel" # workaround for CpuFreq Applet
45+class "PanelApp*" style "panel"
46+class "PanelToplevel*" style "panel"
47+widget_class "*notif*" style "panel"
48+widget_class "*PanelApplet*" style "panel_default" # workaround for right click menu corrupted bg
49+widget_class "*Tray*" style "panel" # workaround for StarDict, gnubiff... tray icon bg
50
51=== modified file 'Ambiance/gtk-2.0/gtkrc'
52--- Ambiance/gtk-2.0/gtkrc 2014-03-04 17:08:48 +0000
53+++ Ambiance/gtk-2.0/gtkrc 2017-11-16 21:10:49 +0000
54@@ -35,6 +35,9 @@
55 GtkScrollbar::slider-width = 13
56 GtkScrollbar::min-slider-length = 31
57
58+ GtkScrolledWindow::scrollbar-spacing = 0
59+ GtkScrolledWindow::scrollbars-within-bevel = 0
60+
61 GtkMenuBar::internal-padding = 0
62 GtkMenuBar::shadow-type = GTK_SHADOW_NONE
63 GtkExpander::expander-size = 11
64@@ -340,7 +343,7 @@
65 }
66 }
67
68-style "menu" {
69+style "menu" = "dark" {
70 xthickness = 0
71 ythickness = 0
72
73@@ -528,6 +531,10 @@
74 bg[NORMAL] = mix (0.60, shade (1.05, @bg_color), @selected_bg_color)
75 }
76
77+style "caja_location" {
78+ bg[NORMAL] = mix (0.60, shade (1.05, @bg_color), @selected_bg_color)
79+}
80+
81 style "calendar" {
82 xthickness = 0
83 ythickness = 0
84@@ -693,6 +700,10 @@
85 # ToDo: A more generic approach for all applications that have a widget like this.
86 widget "*.nautilus-extra-view-widget" style : highest "nautilus_location"
87
88+# Special case the caja-extra-view-widget
89+# ToDo: A more generic approach for all applications that have a widget like this.
90+widget "*.caja-extra-view-widget" style : highest "caja_location"
91+
92 # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
93 # Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
94 widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround"
95@@ -704,7 +715,7 @@
96 widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround"
97 # GtkCList also uses the fg color to draw text on top of the base colors.
98 widget_class "*<GtkCList>" style "fg_is_text_color_workaround"
99-# Nautilus when renaming files, and maybe other places.
100+# Nautilus/Caja when renaming files, and maybe other places.
101 widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround"
102 # Work around for ubuntu's lucid sound indicator
103 widget "ido-offscreen-scale" style "soundfix"
104@@ -714,9 +725,26 @@
105 # See the documentation of the style.
106 widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround"
107
108+# Various performance fixes if murrine textstyle is on by default in the theme.
109+style "performance-fix" {
110+ engine "murrine" {
111+ textstyle = 0
112+ contrast = 0.5
113+ }
114+}
115+
116+widget_class "*gtkmm__GtkWindow*" style "performance-fix" # Inkscape
117+widget_class "*GimpDisplayShell*" style "performance-fix" # Gimp
118+widget_class "*GimpToolbox*" style "performance-fix"
119+widget_class "*GimpMenuDock*" style "performance-fix"
120+widget "*OOoFixed*" style "performance-fix" # Openoffice/Libreoffice
121+widget_class "*MozContainer*" style "performance-fix" # Firefox (Not sure if this one does anything though.)
122+
123 # Includes
124 #include "apps/banshee.rc"
125 include "apps/chromium.rc"
126 include "apps/ff.rc"
127 include "apps/gnome-terminal.rc"
128 include "apps/nautilus.rc"
129+include "apps/caja.rc"
130+include "apps/mate-panel.rc"
131
132=== added file 'Radiance/gtk-2.0/apps/caja.rc'
133--- Radiance/gtk-2.0/apps/caja.rc 1970-01-01 00:00:00 +0000
134+++ Radiance/gtk-2.0/apps/caja.rc 2017-11-16 21:10:49 +0000
135@@ -0,0 +1,11 @@
136+# ==============================================================================
137+# CAJA SPECIFIC SETTINGS
138+# ==============================================================================
139+
140+style "caja_info_pane" {
141+ bg[NORMAL] = @bg_color
142+}
143+
144+widget_class "*Caja*<GtkNotebook>*<GtkEventBox>" style "caja_info_pane"
145+widget_class "*Caja*<GtkButton>" style "notebook_button"
146+widget_class "*Caja*<GtkButton>*<GtkLabel>" style "notebook_button"
147
148=== added file 'Radiance/gtk-2.0/apps/mate-panel.rc'
149--- Radiance/gtk-2.0/apps/mate-panel.rc 1970-01-01 00:00:00 +0000
150+++ Radiance/gtk-2.0/apps/mate-panel.rc 2017-11-16 21:10:49 +0000
151@@ -0,0 +1,29 @@
152+# Panel specific settings for correct theming on MATE
153+
154+style "panel" = "dark"
155+{
156+ xthickness = 0
157+ ythickness = 0
158+
159+ engine "murrine" {
160+ colorize_scrollbar = TRUE
161+ }
162+}
163+
164+style "panel_default" = "dark"
165+{
166+ engine "murrine" {
167+ colorize_scrollbar = TRUE
168+ }
169+}
170+
171+widget "*Panel" style "panel"
172+widget "*PanelWidget*" style "panel"
173+widget "*PanelApplet*" style "panel" # workaround for right click menu corrupted bg
174+widget "*fast-user-switch*" style "panel" # workaround for Fast User Switch applet
175+widget "*CPUFreqApplet*" style "panel" # workaround for CpuFreq Applet
176+class "PanelApp*" style "panel"
177+class "PanelToplevel*" style "panel"
178+widget_class "*notif*" style "panel"
179+widget_class "*PanelApplet*" style "panel_default" # workaround for right click menu corrupted bg
180+widget_class "*Tray*" style "panel" # workaround for StarDict, gnubiff... tray icon bg
181
182=== modified file 'Radiance/gtk-2.0/gtkrc'
183--- Radiance/gtk-2.0/gtkrc 2014-03-04 17:08:48 +0000
184+++ Radiance/gtk-2.0/gtkrc 2017-11-16 21:10:49 +0000
185@@ -35,6 +35,9 @@
186 GtkScrollbar::slider-width = 13
187 GtkScrollbar::min-slider-length = 31
188
189+ GtkScrolledWindow::scrollbar-spacing = 0
190+ GtkScrolledWindow::scrollbars-within-bevel = 0
191+
192 GtkMenuBar::internal-padding = 0
193 GtkMenuBar::shadow-type = GTK_SHADOW_NONE
194 GtkExpander::expander-size = 11
195@@ -488,6 +491,10 @@
196 bg[NORMAL] = mix (0.60, shade (1.05, @bg_color), @selected_bg_color)
197 }
198
199+style "caja_location" {
200+ bg[NORMAL] = mix (0.60, shade (1.05, @bg_color), @selected_bg_color)
201+}
202+
203 style "calendar" {
204 xthickness = 0
205 ythickness = 0
206@@ -642,6 +649,10 @@
207 # ToDo: A more generic approach for all applications that have a widget like this.
208 widget "*.nautilus-extra-view-widget" style : highest "nautilus_location"
209
210+# Special case the caja-extra-view-widget
211+# ToDo: A more generic approach for all applications that have a widget like this.
212+widget "*.caja-extra-view-widget" style : highest "caja_location"
213+
214 # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
215 # Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
216 widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround"
217@@ -653,7 +664,7 @@
218 widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround"
219 # GtkCList also uses the fg color to draw text on top of the base colors.
220 widget_class "*<GtkCList>" style "fg_is_text_color_workaround"
221-# Nautilus when renaming files, and maybe other places.
222+# Nautilus/Caja when renaming files, and maybe other places.
223 widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround"
224 # Work around for ubuntu's lucid sound indicator
225 widget "ido-offscreen-scale" style "soundfix"
226@@ -663,9 +674,26 @@
227 # See the documentation of the style.
228 widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround"
229
230+# Various performance fixes if murrine textstyle is on by default in the theme.
231+style "performance-fix" {
232+ engine "murrine" {
233+ textstyle = 0
234+ contrast = 0.5
235+ }
236+}
237+
238+widget_class "*gtkmm__GtkWindow*" style "performance-fix" # Inkscape
239+widget_class "*GimpDisplayShell*" style "performance-fix" # Gimp
240+widget_class "*GimpToolbox*" style "performance-fix"
241+widget_class "*GimpMenuDock*" style "performance-fix"
242+widget "*OOoFixed*" style "performance-fix" # Openoffice/Libreoffice
243+widget_class "*MozContainer*" style "performance-fix" # Firefox (Not sure if this one does anything though.)
244+
245 # Includes
246 #include "apps/banshee.rc"
247 include "apps/chromium.rc"
248 include "apps/ff.rc"
249 include "apps/gnome-terminal.rc"
250 include "apps/nautilus.rc"
251+include "apps/caja.rc"
252+include "apps/mate-panel.rc"
253
254=== modified file 'debian/changelog'
255--- debian/changelog 2016-10-24 16:25:22 +0000
256+++ debian/changelog 2017-11-16 21:10:49 +0000
257@@ -1,3 +1,10 @@
258+ubuntu-themes (14.04+16.04.20161024-0ubuntu2) UNRELEASED; urgency=medium
259+
260+ * gtk2: Ambiance, Radiance: inherit style fixes from MATE themes (LP:
261+ #961679)
262+
263+ -- Marco Trevisan (Treviño) <mail@3v1n0.net> Thu, 16 Nov 2017 16:06:39 -0500
264+
265 ubuntu-themes (14.04+16.04.20161024-0ubuntu1) xenial; urgency=medium
266
267 [ Iain Lane ]

Subscribers

People subscribed via source and target branches