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

Commit ff6bcd3

Browse files
committed
Moved Info css to window.cc
1 parent 715b3a9 commit ff6bcd3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/info.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ Info::Info() {
88
label.set_max_width_chars(40);
99
label.set_line_wrap(true);
1010
content_area->add(label);
11-
12-
auto provider = Gtk::CssProvider::create();
13-
provider->load_from_data("* {border-radius: 5px;}");
14-
get_style_context()->add_provider(provider, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
11+
12+
get_style_context()->add_class("juci_info");
1513

1614
//Workaround from https://bugzilla.gnome.org/show_bug.cgi?id=710888
1715
//Issue described at the same issue report

src/window.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Window::Window() {
2828
provider->load_from_data(R"(
2929
.juci_directories *:selected {border-left-color: inherit; color: inherit; background-color: rgba(128, 128, 128 , 0.2); background-image: inherit;}
3030
)"+notebook_style+R"(
31+
.juci_info {border-radius: 5px;}
3132
.juci_tooltip_window {background-color: transparent;}
3233
.juci_tooltip_box {)"+border_radius_style+R"(padding: 3px;}
3334
)");

0 commit comments

Comments
 (0)