Skip to main content

A collection of themes for Qt applications in Python.

Project description

qt-themes

This is a collection of themes for Qt in Python.

The color schemes are applied with a QPalette which avoids the conflicts that can happen when using stylesheets.

Header

Installation

Install using pip:

pip install qt-themes

Usage

Apply a theme for the QApplication:

from PySide6 import QtWidgets
import qt_themes

app = QtWidgets.QApplication()
qt_themes.set_theme('nord')
widget = QtWidgets.QWidget()
widget.show()
app.exec()

Get a color from a theme:

import qt_themes

theme = qt_themes.get_theme('atom_one')
green = theme.green

Additional themes can be provided using the environment variable QT_THEMES.

Themes

These are some of the themes that are included in the package.

One Dark Two

https://github.com/beatreichenbach/one_dark_two

One Dark Two

Monokai

https://monokai.pro

Monokai

Nord

https://nordtheme.com

Nord

Catppuccin

https://catppuccin.com

Catppuccin Latte Catppuccin Frappe Catppuccin Macchiato Catppuccin Mocha

Atom One

https://atom.io

Atom One

GitHub

https://github.com

GitHub Dark GitHub Light

Dracula

https://draculatheme.com/

Dracula

Blender

https://blender.org

Blender

Contributing

To contribute please refer to the Contributing Guide.

License

MIT License. Copyright 2024 - Beat Reichenbach. See the License file for details.

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

qt_themes-0.3.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

qt_themes-0.3.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file qt_themes-0.3.0.tar.gz.

File metadata

  • Download URL: qt_themes-0.3.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for qt_themes-0.3.0.tar.gz
Algorithm Hash digest
SHA256 06eaa3c9a5feb5738f382f0093e09ad4c2d6865edf8c3421d7240f1472966223
MD5 dbb67a1efa958655ac029619f0751d84
BLAKE2b-256 fd68fda9ba495ca278846c139c7983c0e82159d327c7854ebcf00b4db6551716

See more details on using hashes here.

Provenance

The following attestation bundles were made for qt_themes-0.3.0.tar.gz:

Publisher: publish.yml on beatreichenbach/qt-themes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qt_themes-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: qt_themes-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for qt_themes-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc8567ee00cd369b9bd81abdc18c15a724938a7e0c46456865de92b72c96180d
MD5 05a03cd367cff9e93b9bdfc1f18fe0f6
BLAKE2b-256 eaf1cad6cc5ddb6824dc77a8bd1c10c30a716734d78cef7fcb4160898ff1b4a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for qt_themes-0.3.0-py3-none-any.whl:

Publisher: publish.yml on beatreichenbach/qt-themes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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