🚀 A comprehensive collection of enhanced Qt StyleSheets with modern design patterns, complete widget coverage, and integrated SVG icon system
🎯 Features • 📦 Installation • 🎨 Themes • 🧪 Testing • 📚 Documentation
This is an enhanced collection of Qt StyleSheets (QSS) with custom SVG icons and improved component coverage. Built upon the excellent foundation by Jaime A. Quiroga P. (GTRONICK) and enhanced with modern UI/UX principles.
| 🎨 | Custom SVG Icons Scalable vector icons for all UI elements |
| 🚀 | Enhanced Themes Improved versions of popular themes |
| 🔧 | Complete Widget Coverage Support for all major Qt widgets |
| 📱 | Modern Design Updated with contemporary UI/UX principles |
| ♿ | Accessibility Better contrast and usability |
| ⚡ | Performance Optimized Efficient CSS rendering and loading |
|
MacOS-Enhanced.qss Modern macOS-style with custom SVG icons |
MaterialDark-Enhanced.qss Material Design dark theme enhanced |
Ubuntu-Enhanced.qss Ubuntu-inspired with enhanced components |
|
Ubuntu.qss |
ElegantDark.qss |
MaterialDark.qss |
|
ConsoleStyle.qss |
AMOLED.qss |
Aqua.qss |
|
ManjaroMix.qss |
NeonButtons.qss |
MacOS.qss |
arrow-up.svg • arrow-down.svgarrow-left.svg • arrow-right.svg
|
| 📏 | Scalable Vector-based for any size without quality loss |
| 🎨 | Customizable Easy to modify colors, strokes, and styles |
| 🎯 | Consistent Unified design language across all themes |
| ⚡ | Performance Optimized SVG code for fast rendering |
git clone https://github.com/GTRONICK/QSS.git
|
pip install -r requirements.txt
|
python theme_tester.py
|
#include <QApplication>
#include <QFile>
#include <QTextStream>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
// 📁 Load stylesheet from file
QFile file("MacOS-Enhanced.qss");
if (file.open(QFile::ReadOnly | QFile::Text)) {
QTextStream stream(&file);
QString styleSheet = stream.readAll();
app.setStyleSheet(styleSheet);
file.close();
}
return app.exec();
}import sys
from PyQt6.QtWidgets import QApplication
from PyQt6.QtCore import QFile, QTextStream
def load_stylesheet(file_path):
"""Load QSS stylesheet from file"""
file = QFile(file_path)
if file.open(QFile.OpenModeFlag.ReadOnly | QFile.OpenModeFlag.Text):
stream = QTextStream(file)
stylesheet = stream.readAll()
file.close()
return stylesheet
return ""
app = QApplication(sys.argv)
# 🎨 Apply enhanced theme
stylesheet = load_stylesheet("MaterialDark-Enhanced.qss")
app.setStyleSheet(stylesheet)
# Your application code here...
sys.exit(app.exec())<!-- resources.qrc -->
<RCC>
<qresource prefix="/themes">
<file>MacOS-Enhanced.qss</file>
<file>MaterialDark-Enhanced.qss</file>
<file>Ubuntu-Enhanced.qss</file>
</qresource>
<qresource prefix="/icons">
<file>icons/svg/arrow-up.svg</file>
<file>icons/svg/arrow-down.svg</file>
<file>icons/svg/checkbox-checked.svg</file>
<file>icons/svg/radio-checked.svg</file>
<!-- Add all other SVG icons -->
</qresource>
</RCC>| 🎯 | Focus States Better visual feedback for focused elements |
| 🚫 | Disabled States Proper styling for disabled components |
| 🎭 | Hover Effects Smooth hover transitions and animations |
| 🎨 | Custom Icons SVG-based icons for all interactive elements |
| 📝 | Better Typography Improved font choices and sizing |
| ♿ | Accessibility Enhanced contrast ratios and usability |
| 📐 | Modern Spacing Consistent padding and margins |
Main Interface Clean aqua-blue design with modern gradients |
Widget Gallery Comprehensive component showcase |
macOS Style Interface Native macOS look and feel |
Control Elements Apple-inspired design patterns |
Ubuntu-Inspired Design Orange accents with modern Ubuntu styling and comprehensive widget coverage |
- 🎨 Live Theme Switching - Change themes instantly without restart
- 📱 Comprehensive Widget Gallery - All Qt widgets in organized tabs
- 🔧 Interactive Examples - Test hover, focus, and disabled states
- 📊 Performance Monitoring - Theme loading times and resource usage
- 🌐 Arabic Interface - Right-to-left layout support
# Run the theme tester
python theme_tester.py
# Or use the helper script
python run_theme_tester.py|
Buttons, Checkboxes, Radio buttons |
Text fields, Combo boxes, Spin boxes |
|
Sliders, Progress bars, Lists, Tables |
Splitters, Tool boxes, Tab widgets |
/* 🎯 Change accent color */
QPushButton {
border-color: #your-accent-color;
background-color: #your-background-color;
}
/* 🌈 Selection colors */
QWidget {
selection-background-color: #your-selection-color;
selection-color: #your-text-color;
}Replace SVG files in icons/svg/ directory:
# 📁 Icon structure
icons/svg/
├── arrow-up.svg # ⬆️ Navigation
├── checkbox-*.svg # ☑️ Form controls
└── radio-*.svg # 🔘 Radio buttons/* 🔤 Global font settings */
QWidget {
font-family: "Segoe UI", "SF Pro Display", "Ubuntu", sans-serif;
font-size: 14px;
font-weight: 400;
}
/* 📱 Platform-specific fonts */
QWidget[platform="windows"] { font-family: "Segoe UI"; }
QWidget[platform="macos"] { font-family: "SF Pro Display"; }
QWidget[platform="linux"] { font-family: "Ubuntu"; }|
|
|
|
- 📦 Icon Optimization: Use compressed SVG files
- 🌈 Gradient Limits: Minimize complex gradients
- 🎯 Selector Specificity: Use targeted CSS selectors
- 💾 Resource Bundling: Package assets in Qt resource files
- 📐 Create SVG with 16x16 viewBox
- 🎨 Use
currentColorfor dynamic coloring - ⚡ Optimize SVG code for performance
- 📁 Add to
icons/svg/directory - 🔗 Reference in theme files
- 📋 Copy enhanced theme as base
- 🎨 Modify color scheme variables
- 🔧 Adjust component styling
- 🧪 Test with theme tester application
- 📚 Document theme characteristics
|
MIT License Same as original QSS collection |
Jaime A. Quiroga P. Original QSS collection creator |
- 🎨 Enhanced Version: Modern UI/UX improvements
- 🎯 Custom Icons: Scalable SVG icon system
- 🧪 Testing: Community feedback and testing
- 📚 Documentation: Comprehensive guides and examples
| ✨ | Custom SVG Icon System Scalable vector graphics for all UI elements |
| 🎨 | Enhanced Theme Versions MacOS, MaterialDark, and Ubuntu themes improved |
| 🔧 | Complete Widget Coverage Support for all major Qt widgets |
| 📱 | Modern Design Principles Contemporary UI/UX patterns |
| ♿ | Accessibility Features Better contrast and usability |
| 🧪 | Theme Tester Application Interactive testing and preview tool |
- Initial theme collection by GTRONICK
- Basic component styling
- System-dependent icons
| 🖥️ | System Info Qt version, Platform, OS version |
| 🎨 | Theme Details Which theme and component affected |
| 🐛 | Bug Description Expected vs actual behavior |
| 📷 | Screenshots Visual examples when possible |




