summaryrefslogtreecommitdiff
path: root/src/leap/gui/styles.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-27 00:12:22 +0900
committerkali <kali@leap.se>2012-11-27 00:43:01 +0900
commitd5136a5f3b2aa8b16e8341f2eb99d05993028acf (patch)
tree7ef847e02cb9d60fb38761d0001f41968ea5a23f /src/leap/gui/styles.py
parent7a263b8ee74cc92ba39796cd9ad48395adfa7450 (diff)
inline validation at register page.
inline widget and focus and red marks and whistles.
Diffstat (limited to 'src/leap/gui/styles.py')
-rw-r--r--src/leap/gui/styles.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/leap/gui/styles.py b/src/leap/gui/styles.py
index 18c0ac97..b482922e 100644
--- a/src/leap/gui/styles.py
+++ b/src/leap/gui/styles.py
@@ -1,19 +1,14 @@
-ErrorLabelStyleSheet = """
-QLabel { color: red;
- font-weight: bold}
-"""
+GreenLineEdit = "QLabel {color: green; font-weight: bold}"
+ErrorLabelStyleSheet = """QLabel { color: red; font-weight: bold }"""
+ErrorLineEdit = """QLineEdit { border: 1px solid red; }"""
-ErrorLineEdit = """
-QLineEdit {
- border: 1px solid red;
-}
-"""
# XXX this is bad.
# and you should feel bad for it.
# The original style has a sort of box color
# white/beige left-top/right-bottom or something like
# that.
+
RegularLineEdit = """
QLineEdit {
border: 1px solid black;