How hubenchang0515/qttheme works
QtTheme provides Flat QSS themes for Qt applications, plus a desktop configurator for selecting, previewing, and exporting theme resources. The main workflow is to choose a theme and colors, preview the resulting style, then export or embed its resources; C++ and Python APIs also let applications query available options and load QSS. The README documents an online preview/export flow as well. Configurator and packer links reflect the named source modules and documented workflow; their implementations were not sampled, so those internal connections are not inferred.
Main entry points: QtTheme Python APIs · QtTheme.qrc Qt resource bundle · ThemeConfigurator.cpp Theme configurator · PySide2 PySide2 adapter
Components 18
Theme configuration
- Configurator app
src/main.cpp - Main window
src/mainwindow.cpp - Theme configurator
src/ThemeConfigurator.cpp - Theme preview
src/ThemePreview.cpp - Resource packer
src/ZipPacker.cpp
Theme runtime
- C++ theme API
src/QtTheme/ThemeManager.cpp
Theme resources
- QSS themes
src/resource/theme - Theme icons
src/resource/icon - Qt resource bundle
src/resource/QtTheme.qrc
Language bindings
- Python APIs
src/python/QtTheme - PyQt5 adapter
src/python/QtTheme/PyQt5 - PyQt6 adapter
src/python/QtTheme/PyQt6 - PySide2 adapter
src/python/QtTheme/PySide2 - PySide6 adapter
src/python/QtTheme/PySide6
Other components
- Theme user
- Qt application
- Online exporter
- Exported package
Connections 19
- Theme user → Configurator app: opens
- Configurator app → Main window: starts
- Theme user → Theme configurator: selects colors
- Theme configurator → Theme preview: previews selection
- Theme configurator → Resource packer: exports resources
- C++ theme API → QSS themes: reads styles
- C++ theme API → Qt resource bundle: initializes
- Qt application → C++ theme API: queries and loads
- Python APIs → PyQt5 adapter: provides adapter
- Python APIs → PyQt6 adapter: provides adapter
- Python APIs → PySide2 adapter: provides adapter
- Python APIs → PySide6 adapter: provides adapter
- PySide2 adapter → Qt resource bundle: loads embedded styles
- PySide2 adapter → QSS themes: reads styles
- Qt resource bundle → QSS themes: embeds
- Qt resource bundle → Theme icons: embeds
- Theme user → Online exporter: previews and exports
- Online exporter → Exported package: exports package
- Resource packer → Exported package: creates package