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()
# 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!

Project details


Download files

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

Source Distribution

QDarkStyle-2.5.4.tar.gz (140.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

QDarkStyle-2.5.4-py2.py3-none-any.whl (118.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file QDarkStyle-2.5.4.tar.gz.

File metadata

  • Download URL: QDarkStyle-2.5.4.tar.gz
  • Upload date:
  • Size: 140.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for QDarkStyle-2.5.4.tar.gz
Algorithm Hash digest
SHA256 3eb60922b8c4d9cedecb6897ca4c9f8a259d81bdefe5791976ccdf12432de1f0
MD5 dbc8a488c7294fc399f5c30a236cdff0
BLAKE2b-256 2aa16d3f940e479d6a7f5be32d0dcec67088857e98ae3e135bb7e72b60175c78

See more details on using hashes here.

File details

Details for the file QDarkStyle-2.5.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for QDarkStyle-2.5.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 51331fc6490b38c376e6ba8d8c814320c8d2d1c2663055bc396321a7c28fa8be
MD5 843d20eba9f77d54f7859a5f63fe94fb
BLAKE2b-256 97264ec7b5c654d69bce00004deb78dff72879d9dc5031b7b4f9f0736070083a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page