Skip to main content

Qt theme in pure qss

Project description

Qt Theme

Qt theme in pure qss - 纯 qss 的 Qt 主题

Preview and Export Resource Package Online - 在线预览和导出资源包

dark

light

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(GREEN)
Warning The warning color(ORANGE)
Danger The error color(RED)

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

qttheme-1.0.0.tar.gz (31.3 MB view details)

Uploaded Source

Built Distribution

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

qttheme-1.0.0-py3-none-any.whl (32.7 MB view details)

Uploaded Python 3

File details

Details for the file qttheme-1.0.0.tar.gz.

File metadata

  • Download URL: qttheme-1.0.0.tar.gz
  • Upload date:
  • Size: 31.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for qttheme-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2764ea54ee20038b62db8bf84918aaca9e121c18a243de69cfcce3497b16714a
MD5 50e018e95cd748527956bff4e79984d7
BLAKE2b-256 062133883dfdb48a16e271c96ba47184e49b625e4d0ebffafb2823835e2ff19a

See more details on using hashes here.

File details

Details for the file qttheme-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: qttheme-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for qttheme-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2379628872dec9124a8637cefca632c68541b1dc4526216b2e3b6a98ce9bf446
MD5 d6681844f5db857aef76638aca628fa6
BLAKE2b-256 621b3595e3e9abfeae9257c912d32a3aea92d397a08adc1bd4d89e063ae34b10

See more details on using hashes here.

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