diff --git a/src/info.cc b/src/info.cc index 90f752f..22029a7 100644 --- a/src/info.cc +++ b/src/info.cc @@ -8,10 +8,8 @@ Info::Info() { label.set_max_width_chars(40); label.set_line_wrap(true); content_area->add(label); - - auto provider = Gtk::CssProvider::create(); - provider->load_from_data("* {border-radius: 5px;}"); - get_style_context()->add_provider(provider, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); + + get_style_context()->add_class("juci_info"); //Workaround from https://bugzilla.gnome.org/show_bug.cgi?id=710888 //Issue described at the same issue report diff --git a/src/window.cc b/src/window.cc index c8ddb7b..bbd1b37 100644 --- a/src/window.cc +++ b/src/window.cc @@ -28,6 +28,7 @@ Window::Window() { 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;} )"+notebook_style+R"( + .juci_info {border-radius: 5px;} .juci_tooltip_window {background-color: transparent;} .juci_tooltip_box {)"+border_radius_style+R"(padding: 3px;} )");