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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file PyQtDarkTheme-0.1.5.tar.gz.

File metadata

  • Download URL: PyQtDarkTheme-0.1.5.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.7.12 Darwin/20.6.0

File hashes

Hashes for PyQtDarkTheme-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c2602afb0dcd824fd53230141ef1ef900d6ccee9a96f114ad0436fe130bff0d1
MD5 7e79cc8270819a8d6bdde7ad893f6c37
BLAKE2b-256 64af409c24945f1866cbc7d15fb4a41c8df92666b26849f801fe462378694b84

See more details on using hashes here.

File details

Details for the file PyQtDarkTheme-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: PyQtDarkTheme-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 86.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.7.12 Darwin/20.6.0

File hashes

Hashes for PyQtDarkTheme-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6587b5505ca03191dcdaf5bd19aa400d763c415927b32b263ce19120f00e6991
MD5 d7d5d3d8334ea9df52a682bc69223e32
BLAKE2b-256 4121a5e0593e70772f2bc902df3960aff00c1cecaac16b087d7cdb869c06dbd6

See more details on using hashes here.

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