mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
progress-cell: Simplify styles
This commit is contained in:
@ -1,26 +1,15 @@
|
|||||||
progresscell progress {
|
progresscell progress {
|
||||||
background: @accent_bg_color;
|
background: @accent_bg_color;
|
||||||
border-radius: 3px;
|
|
||||||
border: 1px solid shade(@accent_bg_color, .75);
|
|
||||||
border-right: none;
|
border-right: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
progresscell {
|
progresscell {
|
||||||
min-height: 18px;
|
min-height: 18px;
|
||||||
}
|
border-radius: 3px;
|
||||||
|
|
||||||
progresscell progress:backdrop {
|
|
||||||
background: @borders;
|
|
||||||
border-color: shade(@borders, .9);
|
|
||||||
}
|
|
||||||
progresscell label:backdrop.in-progress {
|
|
||||||
color: inherit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
progresscell trough {
|
progresscell trough {
|
||||||
background: alpha(@borders, .5);
|
background: alpha(@borders, .5);
|
||||||
border: 1px solid @borders;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
progresscell label {
|
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->progress), GTK_WIDGET (self));
|
||||||
gtk_widget_set_parent (GTK_WIDGET (self->alt_label), 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_update_property (GTK_ACCESSIBLE (self),
|
||||||
GTK_ACCESSIBLE_PROPERTY_VALUE_MAX, 1.0,
|
GTK_ACCESSIBLE_PROPERTY_VALUE_MAX, 1.0,
|
||||||
GTK_ACCESSIBLE_PROPERTY_VALUE_MIN, 0.0,
|
GTK_ACCESSIBLE_PROPERTY_VALUE_MIN, 0.0,
|
||||||
|
|||||||
Reference in New Issue
Block a user