Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
Moved Info css to window.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
eidheim committed Apr 29, 2018
1 parent 715b3a9 commit ff6bcd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;}
)");
Expand Down

0 comments on commit ff6bcd3

Please sign in to comment.