[geary] Remove borders from interior frames in the UI: Bug #736165
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Remove borders from interior frames in the UI: Bug #736165
- Date: Tue, 11 Nov 2014 23:29:43 +0000 (UTC)
commit 01355adc3aa3c492cc45bba0ce4ef42cd42ece24
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Nov 11 15:29:18 2014 -0800
Remove borders from interior frames in the UI: Bug #736165
THANKS | 1 +
src/client/components/main-window.vala | 32 ++++++++++++++++++++++++++++----
2 files changed, 29 insertions(+), 4 deletions(-)
---
diff --git a/THANKS b/THANKS
index 9b974e9..ae0dc02 100644
--- a/THANKS
+++ b/THANKS
@@ -30,6 +30,7 @@ Kai Mast <mail kai-mast de>
William Jon McCann <william jon mccann gmail com>
Thomas Moschny <thomas moschny gmx de>
Tom Most <twm freecog net>
+Georges Basile Stavracas Neto <georges stavracas gmail com>
Philipp Nordhus <philipp nhus de>
Andreas Obergrusberger <tradiaz yahoo de>
Martin Olsson <martin minimum se>
diff --git a/src/client/components/main-window.vala b/src/client/components/main-window.vala
index 0736f80..f8ea60f 100644
--- a/src/client/components/main-window.vala
+++ b/src/client/components/main-window.vala
@@ -139,11 +139,33 @@ public class MainWindow : Gtk.ApplicationWindow {
Gtk.CssProvider provider = new Gtk.CssProvider();
Gtk.StyleContext.add_provider_for_screen(Gdk.Display.get_default().get_default_screen(),
provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+ string css = """
+ .folder_frame {
+ border-left-width: 0px;
+ border-top-width: 0px;
+ }
+ .conversation_frame {
+ border-top-width: 0px;
+ border-bottom-width: 0px;
+ }
+ GtkBox GtkHeaderBar {
+ border-radius: 0px;
+ }
+ """;
+
+ if(Gtk.MAJOR_VERSION >= 3 && Gtk.MINOR_VERSION >= 14) {
+ css += """
+ .folder_frame {
+ border-right-width: 0px;
+ }
+ .conversation_frame {
+ border-width: 0px;
+ }
+ """;
+ }
+
try {
- provider.load_from_data("""
- GtkBox GtkHeaderBar {
- border-radius: 0px;
- }""", -1);
+ provider.load_from_data(css, -1);
} catch (Error error) {
debug("Could not load styling from data: %s", error.message);
}
@@ -159,6 +181,7 @@ public class MainWindow : Gtk.ApplicationWindow {
folder_list_scrolled.add(folder_list);
Gtk.Frame folder_frame = new Gtk.Frame(null);
folder_frame.shadow_type = Gtk.ShadowType.IN;
+ folder_frame.get_style_context ().add_class ("folder_frame");
folder_frame.add(folder_list_scrolled);
// message list
@@ -168,6 +191,7 @@ public class MainWindow : Gtk.ApplicationWindow {
conversation_list_scrolled.add(conversation_list_view);
Gtk.Frame conversation_frame = new Gtk.Frame(null);
conversation_frame.shadow_type = Gtk.ShadowType.IN;
+ conversation_frame.get_style_context ().add_class ("conversation_frame");
conversation_frame.add(conversation_list_scrolled);
// Three-pane display.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]