Skip to main content

Dark theme for PySide, PyQt and Qt Designer.

Project description

PyQtDarkTheme

PyPI Latest Release Python Versions Qt Versions License Build Status CodeQL Status Total alerts Language grade: Python Code style: black

Dark theme for PySide and PyQt.

This python package applies a flat dark theme to a Qt applications(PySide6, PyQt6, PyQt5 and PySide2) using a qt stylesheets system. There's a Light Theme too. Color and style balanced from the Dark theme for easy viewing in daylight.

Dark Theme

widget_gallery_dark_theme

Light Theme

widget_gallery_light_them

Requirements

Installation Method

  • Last released version
    pip install pyqtdarktheme
    
  • Latest development version
    pip install git+https://github.com/5yutan5/PyQtDarkTheme
    

Usage

import sys

import qdarktheme
from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton

app = QApplication(sys.argv)
main_win = QMainWindow()
push_button = QPushButton("PyQtDarkTheme!!")
main_win.setCentralWidget(push_button)

app.setStyleSheet(qdarktheme.load_stylesheet())

main_win.show()

app.exec()

⚠ The image quality may be lower on Qt5(PyQt5, PySide2) due to the use of svg. You can add the following attribute to improve the quality of images.

app.setAttribute(Qt.ApplicationAttribute.AA_UseHighDpiPixmaps)

Light theme

app.setStyleSheet(qdarktheme.load_stylesheet("light"))

Check common widgets

To check common widgets, run:

python -m qdarktheme.widget_gallery

License

PyQtDarkTheme incorporates image assets from external sources. The icons for the PyQtDarkTheme are derived Material design icons(Apache License Version 2.0). Any file not listed in the NOTICE.md file is covered by PyQtDarkTheme's MIT license.

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

PyQtDarkTheme-0.1.5.tar.gz (39.5 kB view hashes)

Uploaded Source

Built Distribution

PyQtDarkTheme-0.1.5-py3-none-any.whl (86.5 kB view hashes)

Uploaded Python 3

Supported by

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