mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make tab appearance nicer in locked mode
This commit is contained in:
parent
9b8dce3034
commit
b4fa38612b
@ -383,8 +383,21 @@ QTabBar::tab:selected {
|
|||||||
border-top-left-radius: 4px;
|
border-top-left-radius: 4px;
|
||||||
border-top-right-radius: 4px;
|
border-top-right-radius: 4px;
|
||||||
border-bottom-width: 0;
|
border-bottom-width: 0;
|
||||||
padding: 2px;
|
padding: 2px 8px;
|
||||||
padding-left: 0.5em;
|
margin-left: -4px;
|
||||||
|
margin-right: -4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:first:selected {
|
||||||
|
margin-left: 0; /* the first selected tab has nothing to overlap with on the left */
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:last:selected {
|
||||||
|
margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
|
||||||
|
}
|
||||||
|
|
||||||
|
QTabBar::tab:only-one {
|
||||||
|
margin: 0; /* if there is only one tab, we don't want overlapping margins */
|
||||||
}
|
}
|
||||||
'''
|
'''
|
||||||
app.setStyleSheet(ss)
|
app.setStyleSheet(ss)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user