Qt theme in pure qss
Project description
Qt Theme
Qt theme in pure qss - 纯 qss 的 Qt 主题
Preview and Export Resource Package Online - 在线预览和导出资源包
Usage
# import resource
import QtTheme.PySide6
# import QtTheme.PySide2
# import QtTheme.PyQt6
# import QtTheme.PyQt5
# open qss file
qss = QFile(":/QtTheme/theme/Flat/Dark/Blue/Pink.qss")
qss.open(QFile.OpenModeFlag.ReadOnly)
# set style sheet of the root widget
mainwindow.setStyleSheet(qss.readAll().data().decode())
# set color of widgets
button.setProperty("Color", "Primary")
API
Only one API:
QWidget.setProperty("Color", "XXX")
| Color | Explain |
|---|---|
| Primary | The primary color selected when exporting |
| Secondary | The secondary color selected when exporting |
| Success | The success color( |
| Warning | The warning color( |
| Danger | The error color( |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qttheme-1.0.1.tar.gz
(34.7 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
qttheme-1.0.1-py3-none-any.whl
(36.2 MB
view details)
File details
Details for the file qttheme-1.0.1.tar.gz.
File metadata
- Download URL: qttheme-1.0.1.tar.gz
- Upload date:
- Size: 34.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7744e8d657f3f4a04b3a1e5297f54fbd94281d21898e4871614bf9619102b59e
|
|
| MD5 |
77708426833ae098fa08381e053b0d50
|
|
| BLAKE2b-256 |
2ee65571ec3aa8c6859111c7520f99500204488a1adef135ba4a654f5fddbd3c
|
File details
Details for the file qttheme-1.0.1-py3-none-any.whl.
File metadata
- Download URL: qttheme-1.0.1-py3-none-any.whl
- Upload date:
- Size: 36.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
636788aa9c4c5ba1cf8e4e1f69ae145234b2b9e3e96212f78b5db409aa02388b
|
|
| MD5 |
a7576c8afa5c776a029f5dbb5717aad6
|
|
| BLAKE2b-256 |
796494394a205ae7701e7b50e0d8b3befe04c71d16a1ceedfc1944f6c1942ca7
|