css: Improve padding of node title and ports

This commit is contained in:
Tom A. Wagner
2023-08-28 13:14:14 +02:00
parent 0cb40f5cab
commit 8aade39aeb
3 changed files with 8 additions and 4 deletions

View File

@@ -39,9 +39,12 @@ graphview {
background-color: @view_bg_color; background-color: @view_bg_color;
} }
port { node label.heading {
padding-top: 3px; padding: 4px;
padding-bottom: 3px; }
port label {
padding: 3px;
} }
port-handle { port-handle {

View File

@@ -60,6 +60,8 @@ mod imp {
klass.set_layout_manager_type::<gtk::BoxLayout>(); klass.set_layout_manager_type::<gtk::BoxLayout>();
klass.bind_template(); klass.bind_template();
klass.set_css_name("node");
} }
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) { fn instance_init(obj: &glib::subclass::InitializingObject<Self>) {

View File

@@ -34,4 +34,3 @@
</child> </child>
</template> </template>
</interface> </interface>