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

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.2.0.tar.gz (8.2 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.2.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qt_themes-0.2.0.tar.gz
  • Upload date:
  • Size: 8.2 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.2.0.tar.gz
Algorithm Hash digest
SHA256 f0d364bc485d22547b2ab4d8642c7b00393a3cbddf1244d5a465a7ac1a6c984a
MD5 27b2a3fca56b73ae0112be7ccce80141
BLAKE2b-256 f4c6af7e9d9c4088c188b6aae38bea7ec377381619f810d545018536006c8c69

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qt_themes-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fff570c89d9887d71e32ef54a3c059f6b11a0922b95b26c33b047c6071f961d
MD5 d47992578c968bc7cebc37a9dcd793a1
BLAKE2b-256 addf9f30e121a9abbfc09590f2d34feae3b2ae9bfadfc92ae92749a325e50706

See more details on using hashes here.

Provenance

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