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

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.1.0.tar.gz (7.8 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.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qt_themes-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for qt_themes-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b524bd5e650eee2778d1210fe797709d9dad32dd284265b0f131403c7b04d58f
MD5 659fc883953be2f11fb164df39399699
BLAKE2b-256 80573793167432b506fdfb65c936568da839cf9b7fc2c017351fb82fa65efaa1

See more details on using hashes here.

Provenance

The following attestation bundles were made for qt_themes-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: qt_themes-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for qt_themes-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cd7e2b7870bc46bbf3550759f74cca4209ea9bcb43592eab749eea0d4be9869
MD5 e75f2f5785cec4c3da4109e3af2abe26
BLAKE2b-256 31d7213d26b02a85e211763054d8994cd6dd352b19ddbfd1ef5520ffd99fd173

See more details on using hashes here.

Provenance

The following attestation bundles were made for qt_themes-0.1.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