How to use the qdarkstyle.load_stylesheet_pyside function in QDarkStyle

To help you get started, we’ve selected a few QDarkStyle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github plasmax / PythonEditor / tests / NukeApp.py View on Github external
def main():
    app = QtGui.QApplication(sys.argv)
    print QtGui.QStyleFactory.keys()
    nuke = Nuke()
    nuke.show()

    import qdarkstyle
    app.setStyleSheet(qdarkstyle.load_stylesheet_pyside())
    # styles = [u'Windows', u'WindowsXP', u'WindowsVista', u'Motif', u'CDE', u'Plastique', u'Cleanlooks']
    QtGui.QApplication.setStyle(QtGui.QStyleFactory.create('Cleanlooks'))
    # QtGui.QApplication.setStyle(QtGui.QStyleFactory.create('Plastique'))

    app.exec_()
github plasmax / PythonEditor / PythonEditor / IDE.py View on Github external
parent.layout().setContentsMargins(0,0,0,0)

            parent = self.parentWidget().parentWidget().parentWidget().parentWidget()
            parent.layout().setContentsMargins(0,0,0,0)
        except:
            pass

        super(IDE, self).showEvent(event)

if __name__ == '__main__':
    app = QtGui.QApplication(sys.argv)
    ide = IDE()

    try:
        import qdarkstyle
        app.setStyleSheet(qdarkstyle.load_stylesheet_pyside())
    except ImportError:
        qdarkstyledir = os.path.join(os.path.dirname(__file__), 'qdarkstyle')
        if os.path.isdir(qdarkstyledir):
            sys.path.append(qdarkstyledir)
            import qdarkstyle
            app.setStyleSheet(qdarkstyle.load_stylesheet_pyqt())
            print('QDarkStyle not found')

    ide.show()
    app.exec_()