From 618c4ac575b44d966b780540e1b2b40640190e84 Mon Sep 17 00:00:00 2001 From: Alice Mikhaylenko Date: Mon, 24 Jun 2024 01:41:30 +0400 Subject: [PATCH] progress-cell: Simplify styles --- src/sysprof/style.css | 15 ++------------- src/sysprof/sysprof-progress-cell.c | 2 ++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/sysprof/style.css b/src/sysprof/style.css index 752d73c7..03e7d775 100644 --- a/src/sysprof/style.css +++ b/src/sysprof/style.css @@ -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 { diff --git a/src/sysprof/sysprof-progress-cell.c b/src/sysprof/sysprof-progress-cell.c index 51b399b3..867b6754 100644 --- a/src/sysprof/sysprof-progress-cell.c +++ b/src/sysprof/sysprof-progress-cell.c @@ -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,