themes: highlight focused widgets
Add a thin border around focused trees, lists, and text fields. Signed-off-by: David Aguilar <davvid@gmail.com>
This commit is contained in:
+9
-6
@@ -169,6 +169,15 @@ class Theme(object):
|
||||
show-decoration-selected: 1;
|
||||
spacing: 2px;
|
||||
}
|
||||
|
||||
/* Focused widths get a thin border */
|
||||
QTreeView:focus, QListView:focus,
|
||||
QLineEdit:focus, QTextEdit:focus, QPlainTextEdit:focus {
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
border-color: %(focus)s;
|
||||
}
|
||||
|
||||
QWidget:disabled {
|
||||
border-color: %(grayed)s;
|
||||
color: %(grayed)s;
|
||||
@@ -190,12 +199,6 @@ class Theme(object):
|
||||
QAbstractItemView::item:hover {
|
||||
background-color: %(lighter)s;
|
||||
}
|
||||
QWidget:focus {
|
||||
border-color: %(focus)s;
|
||||
}
|
||||
QStackedWidget QFrame {
|
||||
border-width: 0;
|
||||
}
|
||||
QLabel {
|
||||
color: %(darker)s;
|
||||
background-color: transparent;
|
||||
|
||||
Reference in New Issue
Block a user