mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-gtk: lighten alpha for selection column
This is darker than the ruler posts, but lighter than foreground.
This commit is contained in:
@ -121,13 +121,14 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
|||||||
{
|
{
|
||||||
GtkStyleContext *style_context = gtk_widget_get_style_context (GTK_WIDGET (self));
|
GtkStyleContext *style_context = gtk_widget_get_style_context (GTK_WIDGET (self));
|
||||||
gtk_style_context_get_color (style_context, &color);
|
gtk_style_context_get_color (style_context, &color);
|
||||||
|
color.alpha *= .5;
|
||||||
}
|
}
|
||||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
gtk_snapshot_append_color (snapshot,
|
gtk_snapshot_append_color (snapshot,
|
||||||
&color,
|
&color,
|
||||||
&GRAPHENE_RECT_INIT (x, y, 1,
|
&GRAPHENE_RECT_INIT (x, 0, 1,
|
||||||
gtk_widget_get_height (GTK_WIDGET (self->list_view))));
|
gtk_widget_get_height (GTK_WIDGET (self))));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user