Skip to main content

A dark stylesheet for Python and Qt applications

Project description

QDarkStyle is a dark stylesheet for Python and Qt applications.

This module provides a function to transparently load the stylesheets with the correct rc file.

First, start importing our module

import qdarkstyle

Then you can get stylesheet provided by QDarkStyle for various Qt wrappers as shown bellow

# PySide
dark_stylesheet = qdarkstyle.load_stylesheet_pyside()
# PySide 2
dark_stylesheet = qdarkstyle.load_stylesheet_pyside2()
# PyQt4
dark_stylesheet = qdarkstyle.load_stylesheet_pyqt()
# PyQt5
dark_stylesheet = qdarkstyle.load_stylesheet_pyqt5()

Or from environment variables provided for QtPy or PyQtGraph, see

# QtPy
dark_stylesheet = qdarkstyle.load_stylesheet_from_environment()
# PyQtGraph
dark_stylesheet = qdarkstyle.load_stylesheet_from_environment(is_pyqtgraph)

Finally, set your QApplication with it

app.setStyleSheet(dark_stylesheet)

Enjoy!

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
QDarkStyle-2.6.4-py2.py3-none-any.whl (174.8 kB) Copy SHA256 hash SHA256 Wheel py2.py3
QDarkStyle-2.6.4.tar.gz (199.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page