Browse Source
based on Electron-Cash/Electron-Cash@7e69f0e6eaad2679850ad297dcd7fa31a7262a4f see ColinDuquesnoy/QDarkStyleSheet#159regtest_lnd
SomberNight
6 years ago
2 changed files with 21 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||
"""This is used to patch the QApplication style sheet. |
|||
It reads the current stylesheet, appends our modifications and sets the new stylesheet. |
|||
""" |
|||
|
|||
from PyQt5 import QtWidgets |
|||
|
|||
|
|||
def patch_qt_stylesheet(use_dark_theme: bool) -> None: |
|||
if not use_dark_theme: |
|||
return |
|||
|
|||
app = QtWidgets.QApplication.instance() |
|||
|
|||
style_sheet = app.styleSheet() |
|||
style_sheet = style_sheet + ''' |
|||
QAbstractScrollArea { padding: 0px; } |
|||
''' |
|||
app.setStyleSheet(style_sheet) |
Loading…
Reference in new issue