eric ide

Message931

Author: TRz
Recipients: TRz, detlev, vince
Date: 2017-10-18.19:21:25
Content
Hello Vince,
a good starting point could be the Qt style sheets. I've attached you a sample,
which you should also find in the PyQt / Qt supplied examples.
All you have to do is modifying UI/UserInterface.py:
1. Add qApp, e.g.:
from PyQt5.QtGui import QKeySequence, QDesktopServices, qApp
2. Add following code after (maybe add a complete path)
"e5App().registerObject("Numbers", self.numbersViewer)":
        with open(r'UI\coffee.qss', 'rt', encoding='utf-8') as fp:
            styleSheet = fp.read()        
        qApp.setStyleSheet(styleSheet)
3. Restart eric
Ok, it's very ugly but modifying the qss is all you need and the most work. If a
nice style sheet exsist, we'll find a way to put it in the right place of eric...
Tobias
History
Date User Action Args
2017-10-18 19:21:25TRzsetmessageid: <1508354485.5.0.505383111574.issue248@eric-ide.python-projects.org>
2017-10-18 19:21:25TRzsetrecipients: + TRz, detlev, vince
2017-10-18 19:21:25TRzlinkissue248 messages
2017-10-18 19:21:25TRzcreate