diff --git a/src/style.css b/src/style.css index 12ec1c1..72a9403 100644 --- a/src/style.css +++ b/src/style.css @@ -35,8 +35,10 @@ color: black; } -graphview { - background-color: @view_bg_color; +node { + /* Compared to the default card color, this is not transparent in dark-mode + and provides a better contrast to the background in light mode */ + background-color: @headerbar_bg_color; } node label.heading { diff --git a/src/ui/graph/graph_view.rs b/src/ui/graph/graph_view.rs index 6198b30..a9e8105 100644 --- a/src/ui/graph/graph_view.rs +++ b/src/ui/graph/graph_view.rs @@ -128,6 +128,8 @@ mod imp { fn constructed(&self) { self.parent_constructed(); + self.obj().add_css_class("view"); + self.obj().set_overflow(gtk::Overflow::Hidden); self.setup_node_dragging();