summaryrefslogtreecommitdiff
path: root/src/leap/gui/styles.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-11-21 06:15:41 +0900
committerkali <kali@leap.se>2012-11-21 06:15:41 +0900
commit53c6c92e26970de7de0bddca0034e72af7d0ce48 (patch)
tree141fedb84ecc5ffe0e14e873ce6fe3a0d3ec4de3 /src/leap/gui/styles.py
parent8ad4957531f5279cf65df36b015d83443deded33 (diff)
add red border to failed field
Diffstat (limited to 'src/leap/gui/styles.py')
-rw-r--r--src/leap/gui/styles.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/leap/gui/styles.py b/src/leap/gui/styles.py
index 759817ce..18c0ac97 100644
--- a/src/leap/gui/styles.py
+++ b/src/leap/gui/styles.py
@@ -2,3 +2,20 @@ ErrorLabelStyleSheet = """
QLabel { color: red;
font-weight: bold}
"""
+
+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;
+}
+"""