Skip to main content

Flat dark theme for PySide, PyQt.

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.

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

PyQtDarkTheme is easy to freeze with freezing library(PyInstaller, py2app, cx_freeze or etc..).

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

from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton

import qdarktheme

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.6.tar.gz (54.7 kB view details)

Uploaded Source

Built Distribution

PyQtDarkTheme-0.1.6-py3-none-any.whl (98.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for PyQtDarkTheme-0.1.6.tar.gz
Algorithm Hash digest
SHA256 ac5dc4b2b11ff4235314cb31b8e24bcb609257bf7c67dc303b758f1bed29a6bf
MD5 a397fa7b6da5f6ea9c45459b1cdb815b
BLAKE2b-256 ea3b985a8af8b0c0940bac487a374da393b4d04758745ef7f308620f014a8751

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for PyQtDarkTheme-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2a91315934444274b0f68a0e5cfeac1aa9bf772f8c247054045b956820004acb
MD5 357806f9b2e036536add0be3468f99a3
BLAKE2b-256 f8ec5f4ac1e4751e5b624c6e5c9a5e881b7bbc555f882595e725037bc45d8031

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