MCPcopy Index your code
hub / github.com/beatreichenbach/qt-themes

github.com/beatreichenbach/qt-themes @v0.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.4.0 ↗ · + Follow
32 symbols 103 edges 5 files 7 documented · 22%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Core symbols most depended-on inside this repo

get_theme
called by 2
qt_themes/_theme.py
update_palette
called by 2
qt_themes/_theme.py
_load
called by 2
qt_themes/_theme.py
_get_paths
called by 2
qt_themes/_theme.py
application
called by 2
tests/__init__.py
_update_colors
called by 2
tests/colors.py
set_theme
called by 2
tests/widgets.py
is_dark_theme
called by 1
qt_themes/_theme.py

Shape

Method 17
Function 10
Class 5

Languages

Python100%

Modules by API surface

tests/widgets.py16 symbols
qt_themes/_theme.py9 symbols
tests/colors.py6 symbols
tests/__init__.py1 symbols

For agents

$ claude mcp add qt-themes \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page