mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-gtk: setup some default styling for tracks
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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">
|
||||
|
||||
Reference in New Issue
Block a user