[gnome-themes-standard/wip/strength-bar] strenght-bar: styling for new GtkStrengthBar



commit 1e00b4865c90557d46accda4a2da7f14f3c03550
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 |   64 ++++++++++++++++++++++++++++++++
 1 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 6d64789..bb90caf 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -604,6 +604,70 @@ GtkProgressBar.vertical:backdrop,
     background-color: @unfocused_dark_bg;
 }
 
+/* strength bars as used for password quality or remaining power */
+GtkStrengthBar {
+    -GtkStrengthBar-min-block-width: 34;
+    -GtkStrengthBar-min-block-height: 3;
+}
+
+GtkStrengthBar.vertical {
+    -GtkStrengthBar-min-block-width: 3;
+    -GtkStrengthBar-min-block-height: 34;
+}
+
+.strength-bar.trough {
+    background-image: none;
+    background-color: @theme_base_color;
+
+    border-image: none;
+    border-color: darker(@borders);
+    border-width: 1px;
+    border-radius: 5px;
+    border-style: solid;
+
+    padding: 2px;
+}
+
+.strength-bar.fill-block {
+    border-width: 1px;
+    border-style: solid;
+
+    border-color: darker(@theme_selected_bg_color);
+    background-color: @theme_selected_bg_color;
+}
+
+.strength-bar.indicator-continuous.fill-block {
+    padding: 2px;
+}
+
+.strength-bar.indicator-discrete.fill-block.horizontal {
+    margin: 0 1px;
+}
+
+.strength-bar.indicator-discrete.fill-block.vertical {
+    margin: 1px 0;
+}
+
+.strength-bar.fill-block.level-strong {
+    border-color: darker(@success_color);
+    background-color: @success_color;
+}
+
+.strength-bar.fill-block.level-warning {
+    border-color: darker(@warning_bg_color);
+    background-color: @warning_bg_color;
+}
+
+.strength-bar.fill-block.level-critical {
+    border-color: darker(@error_bg_color);
+    background-color: @error_bg_color;
+}
+
+.strength-bar.fill-block.empty-fill-block {
+    background-color: transparent;
+    border-color: @borders;
+}
+
 /************
  * GtkScale *
  ************/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]