Remove borders from interior frames in the UI: Bug #736165
This commit is contained in:
parent
b73c56c358
commit
01355adc3a
2 changed files with 29 additions and 4 deletions
1
THANKS
1
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>
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue