Skip to content

Commit d0891a7

Browse files
committed
themes: highlight the mainwindow separator on hover
Make it easier to find the dockwidget separator by highlighting it on hover. Signed-off-by: David Aguilar <davvid@gmail.com>
1 parent 9bd14f1 commit d0891a7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

cola/themes.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,15 @@ def style_sheet_flat(self):
300300
color: %(button_text)s;
301301
}
302302
303+
/* MainWindow separator */
304+
QMainWindow::separator {
305+
width: %(separator)spx;
306+
height: %(separator)spx;
307+
}
308+
QMainWindow::separator:hover {
309+
background: %(focus)s;
310+
}
311+
303312
/* scroll bar */
304313
QScrollBar {
305314
background-color: %(field)s;
@@ -499,8 +508,8 @@ def style_sheet_flat(self):
499508
grayed=grayed,
500509
button_text=button_text,
501510
field_text=field_text,
502-
focus=focus
503-
)
511+
separator=defs.separator,
512+
focus=focus)
504513

505514

506515
def get_all_themes():

0 commit comments

Comments
 (0)