libsysprof-gtk: setup some default styling for tracks

This commit is contained in:
Christian Hergert
2023-06-29 15:11:42 -07:00
parent 58853a85bb
commit 8373314bf3
3 changed files with 24 additions and 0 deletions

View File

@ -76,3 +76,21 @@ timeruler {
color: alpha(currentColor, .8);
background: alpha(@borders, .25);
}
tracks track chart {
margin-top: 1px;
}
tracks track info {
background: alpha(@borders, .5);
}
tracks track info button {
min-height: 0px;
min-width: 0px;
}
tracks row {
padding: 0;
margin: 0;
}
tracks row track info {
padding: 1px 0 0 0;
}

View File

@ -117,6 +117,7 @@ sysprof_tracks_view_class_init (SysprofTracksViewClass *klass)
gtk_widget_class_set_template_from_resource (widget_class, "/libsysprof-gtk/sysprof-tracks-view.ui");
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT);
gtk_widget_class_set_css_name (widget_class, "tracks");
gtk_widget_class_bind_template_child (widget_class, SysprofTracksView, list_view);
g_type_ensure (SYSPROF_TYPE_TIME_RULER);

View File

@ -39,6 +39,7 @@
<property name="css-name">track</property>
<child>
<object class="GtkStack">
<property name="css-name">info</property>
<property name="hhomogeneous">true</property>
<property name="vhomogeneous">true</property>
<property name="hexpand">false</property>
@ -51,10 +52,14 @@
</binding>
<property name="child">
<object class="GtkBox">
<property name="spacing">6</property>
<child>
<object class="GtkInscription" id="title">
<property name="hexpand">true</property>
<property name="text-overflow">ellipsize-end</property>
<style>
<class name="heading"/>
</style>
<binding name="text">
<lookup name="title" type="SysprofTrack">
<lookup name="item" type="GtkTreeListRow">