Browse Source

Moved Info css to window.cc

merge-requests/382/head
eidheim 8 years ago
parent
commit
ff6bcd3b81
  1. 6
      src/info.cc
  2. 1
      src/window.cc

6
src/info.cc

@ -8,10 +8,8 @@ Info::Info() {
label.set_max_width_chars(40); label.set_max_width_chars(40);
label.set_line_wrap(true); label.set_line_wrap(true);
content_area->add(label); content_area->add(label);
auto provider = Gtk::CssProvider::create(); get_style_context()->add_class("juci_info");
provider->load_from_data("* {border-radius: 5px;}");
get_style_context()->add_provider(provider, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
//Workaround from https://bugzilla.gnome.org/show_bug.cgi?id=710888 //Workaround from https://bugzilla.gnome.org/show_bug.cgi?id=710888
//Issue described at the same issue report //Issue described at the same issue report

1
src/window.cc

@ -28,6 +28,7 @@ Window::Window() {
provider->load_from_data(R"( provider->load_from_data(R"(
.juci_directories *:selected {border-left-color: inherit; color: inherit; background-color: rgba(128, 128, 128 , 0.2); background-image: inherit;} .juci_directories *:selected {border-left-color: inherit; color: inherit; background-color: rgba(128, 128, 128 , 0.2); background-image: inherit;}
)"+notebook_style+R"( )"+notebook_style+R"(
.juci_info {border-radius: 5px;}
.juci_tooltip_window {background-color: transparent;} .juci_tooltip_window {background-color: transparent;}
.juci_tooltip_box {)"+border_radius_style+R"(padding: 3px;} .juci_tooltip_box {)"+border_radius_style+R"(padding: 3px;}
)"); )");

Loading…
Cancel
Save