mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
progress-cell: Simplify styles
This commit is contained in:
@ -1,26 +1,15 @@
|
||||
progresscell progress {
|
||||
background: @accent_bg_color;
|
||||
border-radius: 3px;
|
||||
border: 1px solid shade(@accent_bg_color, .75);
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
progresscell {
|
||||
min-height: 18px;
|
||||
}
|
||||
|
||||
progresscell progress:backdrop {
|
||||
background: @borders;
|
||||
border-color: shade(@borders, .9);
|
||||
}
|
||||
progresscell label:backdrop.in-progress {
|
||||
color: inherit;
|
||||
min-height: 18px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
progresscell trough {
|
||||
background: alpha(@borders, .5);
|
||||
border: 1px solid @borders;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
progresscell label {
|
||||
|
||||
@ -242,6 +242,8 @@ sysprof_progress_cell_init (SysprofProgressCell *self)
|
||||
gtk_widget_set_parent (GTK_WIDGET (self->progress), GTK_WIDGET (self));
|
||||
gtk_widget_set_parent (GTK_WIDGET (self->alt_label), GTK_WIDGET (self));
|
||||
|
||||
gtk_widget_set_overflow (GTK_WIDGET (self), GTK_OVERFLOW_HIDDEN);
|
||||
|
||||
gtk_accessible_update_property (GTK_ACCESSIBLE (self),
|
||||
GTK_ACCESSIBLE_PROPERTY_VALUE_MAX, 1.0,
|
||||
GTK_ACCESSIBLE_PROPERTY_VALUE_MIN, 0.0,
|
||||
|
||||
Reference in New Issue
Block a user