[gnome-tweak-tool] Improve main window styling
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Improve main window styling
- Date: Mon, 10 Sep 2012 08:39:24 +0000 (UTC)
commit 97880488ab191f02ccc80c0be6d7b37bed272808
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sun Sep 9 16:23:33 2012 +0200
Improve main window styling
Use a bigger window size (same as the control center), to avoid showing
most description truncated or having the scrollbars in any view but the
extensions one.
Use @theme_bg_color instead of @bg_color to work with the dark theme too.
https://bugzilla.gnome.org/show_bug.cgi?id=683630
gtweak/tweakview.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtweak/tweakview.py b/gtweak/tweakview.py
index 0b71eb5..480e96e 100644
--- a/gtweak/tweakview.py
+++ b/gtweak/tweakview.py
@@ -45,7 +45,8 @@ class TweakView:
self._main_window = builder.get_object('main_window')
self._main_window.props.title = gettext(self._main_window.props.title)
- self._main_window.set_size_request(640, 480)
+
+ self._main_window.set_size_request(740, 636)
self._main_window.connect('destroy', Gtk.main_quit)
self._entry_manager = EntryManager(
@@ -67,7 +68,7 @@ class TweakView:
ctx = builder.get_object('tweak_viewport').get_style_context ()
provider = Gtk.CssProvider()
provider.load_from_data ("GtkViewport {\n"
- " background-color: @bg_color;\n"
+ " background-color: @theme_bg_color;\n"
"}\n")
ctx.add_provider (provider,6000)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]