[gnome-themes-standard/wip/strength-bar] strenght-bar: styling for new GtkStrengthBar
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard/wip/strength-bar] strenght-bar: styling for new GtkStrengthBar
- Date: Fri, 8 Jun 2012 22:47:05 +0000 (UTC)
commit eee02d558e2abd5052a82f87b6d723b3afbb2126
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue May 29 17:01:46 2012 -0400
strenght-bar: styling for new GtkStrengthBar
themes/Adwaita/gtk-3.0/gtk-widgets.css | 52 ++++++++++++++++++++++++++++++++
1 files changed, 52 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 81e33f3..8a3b27b 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -604,6 +604,58 @@ GtkProgressBar.vertical:backdrop,
background-color: @unfocused_dark_bg;
}
+/* strenght bars as used for password quality or remaining power */
+GtkStrengthBar {
+ -GtkStrengthBar-min-block-width: 16;
+ -GtkStrengthBar-min-block-height: 3;
+}
+
+GtkStrengthBar.vertical {
+ -GtkStrengthBar-min-block-height: 16;
+ -GtkStrengthBar-min-block-width: 3;
+}
+
+.strength-bar.trough {
+ background-image: none;
+ background-color: @theme_base_color;
+
+ border-color: darker(@borders);
+ border-width: 1px;
+ border-radius: 5px;
+ border-style: solid;
+}
+
+.strength-bar.fill-component {
+ border-width: 1px;
+ border-style: solid;
+
+ border-color: darker(@theme_selected_bg_color);
+ background-color: @theme_selected_bg_color;
+}
+
+.strength-bar.fill-component.horizontal {
+ margin: 3px 1px;
+}
+
+.strength-bar.fill-component.vertical {
+ margin: 1px 3px;
+}
+
+.strength-bar.fill-component.strong {
+ border-color: darker(@success_color);
+ background-color: @success_color;
+}
+
+.strength-bar.fill-component.weak {
+ border-color: darker(@error_bg_color);
+ background-color: @error_bg_color;
+}
+
+.strength-bar.fill-component.empty {
+ background-color: transparent;
+ border-color: @borders;
+}
+
/************
* GtkScale *
************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]