[gtk/gtk-3-24: 1/5] win32 theme: Fix levelbar and tweak progressbar
- From: Luca Bacci <lbacci src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 1/5] win32 theme: Fix levelbar and tweak progressbar
- Date: Tue, 23 Nov 2021 13:25:09 +0000 (UTC)
commit f9d82e965ede7b03b902f81216461bf15be334d9
Author: Jaime Velasco Juan <jsagarribay gmail com>
Date: Thu Oct 20 09:58:19 2016 +0100
win32 theme: Fix levelbar and tweak progressbar
Both have a similar look now
gtk/theme/win32/gtk-win32-base.css | 46 +++++++++++++++++++++++++++-----------
1 file changed, 33 insertions(+), 13 deletions(-)
---
diff --git a/gtk/theme/win32/gtk-win32-base.css b/gtk/theme/win32/gtk-win32-base.css
index 8f92398f43..e0a7bca9b9 100644
--- a/gtk/theme/win32/gtk-win32-base.css
+++ b/gtk/theme/win32/gtk-win32-base.css
@@ -998,39 +998,59 @@ scale value {
}
-/* Progress bars */
+/* Progress bars and level bars */
-progressbar {
- background-color: transparent;
- padding: 0;
+progressbar.horizontal trough,
+levelbar.horizontal trough {
+ min-height: -gtk-win32-part-height(progress, 1, 1);
+ background-image: -gtk-win32-theme-part(progress, 1, 1);
+}
+progressbar.vertical trough,
+levelbar.vertical trough {
+ min-width: -gtk-win32-part-width(progress, 1, 1);
+ background-image: -gtk-win32-theme-part(progress, 2, 1);
}
-progressbar trough {
- border-width: 0;
- background-image: -gtk-win32-theme-part(progress, 1, 1);
+progressbar.horizontal progress, levelbar.horizontal block {
+ min-height: -gtk-win32-part-height(progress, 5, 1);
}
progressbar progress,
+levelbar block.filled,
entry progress,
entry progress:focus {
- border-width: 0;
background-image: -gtk-win32-theme-part(progress, 5, 1);
}
-progressbar progress.pulse,
+/* We use here PBFS_PAUSED (yellow by default) and PBFS_PARTIAL (blue) */
+levelbar block.low {
+ background-image: -gtk-win32-theme-part(progress, 5, 3);
+}
+levelbar block.full {
+ background-image: -gtk-win32-theme-part(progress, 5, 4);
+}
+
+progressbar.horizontal progress.pulse,
entry progress.pulse,
entry progress.pulse:focus {
- background-color: transparent;
background-image: -gtk-win32-theme-part(progress, 8, 1);
}
-progressbar.vertical trough {
- background-image: -gtk-win32-theme-part(progress, 2, 1);
+progressbar.vertical progress,
+levelbar.vertical block {
+ min-width: -gtk-win32-part-width(progress, 6, 1);
}
-progressbar.vertical progress {
+progressbar.vertical progress,
+levelbar.vertical block.filled {
background-image: -gtk-win32-theme-part(progress, 6, 1);
}
+levelbar.vertical block.low {
+ background-image: -gtk-win32-theme-part(progress, 6, 3);
+}
+levelbar.vertical block.full {
+ background-image: -gtk-win32-theme-part(progress, 6, 4);
+}
progressbar.vertical progress.pulse {
background-image: -gtk-win32-theme-part(progress, 10, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]