Qt sass theme getter
Project description
qt-sass-theme-getter
Qt sass theme getter.
Default theme is dark-gray theme, my favorite.
Setup
python -m pip install qt-sass-theme-getter
Included Packages
- qtsass - For convert sass into css
Method Overview
-
setThemeColor(bg_color, widget_color, text_color, hover_color, border_color, select_color, disabled_color, text_widget_color)
- you can set the theme color by yourself. Give 6-digit hex color string such as #FF0000.-
bg_color - background color
-
widget_color - widget color
-
text_color - text color
-
hover_color - certain widgets' color when mouse cursor is hovering
-
border_color - color of widgets' border
-
select_color - selected widgets' color
-
disabled_color - disabled widgets' color
-
text_widget_color - background color of text widget such as
QTextEdit/QTextBrowser
-
-
getThemeFiles(output_dir = os.getcwd())
- you can save css files inoutput_dir
which were converted from .scss files included in this package. -
getThemeStyle() -> str
- use it toQMainWindow
,QDialog
. -
getIconButtonStyle() -> str
- use it toQPushButton/QToolButton
which has icon. -
getIconTextButtonStyle() -> str
- use it toQPushButton/QToolButton
. -
getMenuBarStyle() -> str
- use it toQMenuBar
. -
getMainWidgetStyle() -> str
- use it to "top level"QWidget
.
Example
Here's basic usage - get the style code and modify it(such as getThemeStyle() + QLineEdit { ... }), and set it to desired widget.
pyqt-dark-gray-theme/darkGrayTheme.py - return the dark-gray styles using qt-sass-theme-getter pacakge, even though dark-gray is default.
pyqt-style-setter/styleSetter.py - set the style of some widgets
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
Built Distribution
Hashes for qt-sass-theme-getter-0.0.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1bb80ce672f487ad1c7ae4d947ef847106fc0b117e3a585edbe388ba5c8d164 |
|
MD5 | c9679d8cc2131ce17c1c063e30d30ec2 |
|
BLAKE2b-256 | 0da663caf23a35d5a6429bf4d7012afc2576e5d939eaae4d67634640ea737d25 |
Hashes for qt_sass_theme_getter-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31d96dde34be5c8ed62a4882fa1862f227f91ce849170aebbc9e95796dba69d3 |
|
MD5 | f30e88ef4cef73aad7cd74fb5bd14dcf |
|
BLAKE2b-256 | c983b99bff869d723ad3df490b33e2e23cb59b5de817a0ae8043cde6836661be |