[gtk/wip/jimmac/adjust-for-contemporary-trends: 24/26] Adwaita: round progress and levelbars
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/adjust-for-contemporary-trends: 24/26] Adwaita: round progress and levelbars
- Date: Mon, 11 Jan 2021 13:10:58 +0000 (UTC)
commit 7a3dd41dba7d98d926920cd57b1b22d987960142
Author: Jakub Steiner <jimmac gmail com>
Date: Fri Jan 8 22:25:33 2021 +0100
Adwaita: round progress and levelbars
gtk/theme/Adwaita/_common.scss | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 5c4b396033..0562745e32 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3013,25 +3013,25 @@ progressbar {
}
border-radius: 1.5px;
-
+ $_progress-radius: 5px;
&.left {
- border-top-left-radius: 2px;
- border-bottom-left-radius: 2px;
+ border-top-left-radius: $_progress-radius;
+ border-bottom-left-radius: $_progress-radius;
}
&.right {
- border-top-right-radius: 2px;
- border-bottom-right-radius: 2px;
+ border-top-right-radius: $_progress-radius;
+ border-bottom-right-radius: $_progress-radius;
}
&.top {
- border-top-right-radius: 2px;
- border-top-left-radius: 2px;
+ border-top-right-radius: $_progress-radius;
+ border-top-left-radius: $_progress-radius;
}
&.bottom {
- border-bottom-right-radius: 2px;
- border-bottom-left-radius: 2px;
+ border-bottom-right-radius: $_progress-radius;
+ border-bottom-left-radius: $_progress-radius;
}
}
@@ -3060,25 +3060,25 @@ progressbar {
* Level Bar *
*************/
-$levelbar_size: 9px;
-$levelbar_border_radius: 3px;
+$_levelbar_size: 9px;
+$_levelbar_border_radius: 5px;
levelbar {
&.horizontal {
trough > block {
- min-height: $levelbar_size;
- border-radius: $levelbar_border_radius;
+ min-height: $_levelbar_size;
+ border-radius: $_levelbar_border_radius;
&:dir(rtl) {
- border-radius: 0 $levelbar_border_radius $levelbar_border_radius 0;
+ border-radius: 0 $_levelbar_border_radius $_levelbar_border_radius 0;
}
&:dir(ltr) {
- border-radius: $levelbar_border_radius 0 0 $levelbar_border_radius;
+ border-radius: $_levelbar_border_radius 0 0 $_levelbar_border_radius;
}
&.empty,&.full {
- border-radius: $levelbar_border_radius;
+ border-radius: $_levelbar_border_radius;
}
}
@@ -3099,12 +3099,12 @@ levelbar {
&.vertical {
trough > block {
- min-width: $levelbar_size;
- border-radius: $levelbar_border_radius;
+ min-width: $_levelbar_size;
+ border-radius: $_levelbar_border_radius;
}
&.discrete > trough > block {
- min-width: $levelbar_size - 7px;
+ min-width: $_levelbar_size - 7px;
margin: 1px 0;
min-height: 32px;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]