From f80647c23c722496ea1f69d04efaa7a0219d4f43 Mon Sep 17 00:00:00 2001
From: Carlos Garnacho <carlos@lanedo.com>
Date: Mon, 14 May 2012 16:22:47 +0200
Subject: [PATCH] Make GTK3 entries look identical to GTK2
The border color has been tweaked, as well as coloring in the
combination of selected and focused states. Progressbars in
entries now get the same color for all relevant states.
http://bugs.sugarlabs.org/ticket/3389
Signed-off-by: Carlos Garnacho <carlos@lanedo.com>
---
gtk3/theme/gtk-widgets.css.em | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index 2ff8e48..b0334ee 100644
a
|
b
|
GtkToggleButton.button:active GtkLabel { |
225 | 225 | .entry { |
226 | 226 | border-radius: $(2 * subcell_size)px; |
227 | 227 | border-width: $(thickness)px; |
228 | | border-color: @selection_grey; |
| 228 | border-color: @text_field_grey; |
229 | 229 | border-style: solid; |
230 | 230 | background-color: @text_field_grey; |
231 | 231 | color: @black; |
… |
… |
GtkToggleButton.button:active GtkLabel { |
234 | 234 | padding: $(2 * max(my_ceil((3*subcell_size - font_height - entry_ythickness*2)/2.0),0))px $(2 * max(subcell_size - entry_xthickness, 0))px $(2 * max(my_floor((3*subcell_size - font_height - entry_ythickness*2)/2.0), 0))px $(2 * max(subcell_size - entry_xthickness, 0))px; |
235 | 235 | } |
236 | 236 | |
237 | | .entry.progressbar { |
| 237 | .entry.progressbar, |
| 238 | .entry.progressbar:focused { |
238 | 239 | border-radius: $(2 * subcell_size)px; |
239 | | border-width: $(thickness)px; |
| 240 | border-width: 0px; |
| 241 | margin: $(thickness)px; |
240 | 242 | background-color: @selection_grey; |
241 | 243 | } |
242 | 244 | |
… |
… |
GtkToggleButton.button:active GtkLabel { |
253 | 255 | color: @black; |
254 | 256 | } |
255 | 257 | |
256 | | .entry:selected, .entry:selected:focused, |
| 258 | .entry:selected { |
| 259 | background-color: @white; |
| 260 | color: @black; |
| 261 | } |
| 262 | |
| 263 | .entry:selected:focused, |
257 | 264 | .view:selected:focused { |
258 | 265 | background-color: @selection_grey; |
259 | 266 | color: @black; |