From 5d54b6aca7f1d1b9f63dc7792b2765c1ca91d628 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 18 May 2017 23:27:51 +0200 Subject: session list's back button: Make background transparent. --- src/main-window.vala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/main-window.vala') diff --git a/src/main-window.vala b/src/main-window.vala index 13b26ad..65dde2b 100644 --- a/src/main-window.vala +++ b/src/main-window.vala @@ -121,8 +121,25 @@ public class MainWindow : Gtk.Window var image = new Gtk.Image.from_file (Path.build_filename (Config.PKGDATADIR, "arrow_left.png", null)); image.show (); back_button.set_size_request (grid_size - GreeterList.BORDER * 2, grid_size - GreeterList.BORDER * 2); + + try + { + var style = new Gtk.CssProvider (); + style.load_from_data ("* {background-color: transparent; + %s + }".printf(shadow_style), -1); + var context = back_button.get_style_context(); + context.add_provider (style, + Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); + } + catch (Error e) + { + debug ("Internal error loading back button style: %s", e.message); + } + back_button.add (image); back_button.clicked.connect (pop_list); + align.add (back_button); align = new Gtk.Alignment (0.0f, 0.5f, 0.0f, 1.0f); -- cgit v1.2.3