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. <b>Give 6-digit hex color string such as #FF0000.</b>
-
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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3158b1b040b5657570cae10e161bd3df69b8e45661673a93b7afebc12fb69cb7 |
|
MD5 | dc16d5147f40bfe640a0ec42361a6900 |
|
BLAKE2b-256 | 4e487efd64f91d789dfa39d8f7863e6e9c0fed702c772cfc28b3a483bca44e78 |
Hashes for qt_sass_theme_getter-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2fd21483c13ad44d5eef9a79ee77ae5f50f6cd2ded0f5c2bd09da3dc3a192a9 |
|
MD5 | 7d53f598dc817ff106bbaa0bf0997054 |
|
BLAKE2b-256 | 90db1729b1bd905095bb6f59cf2ac45300933a8f5f1675aa1f27d3d936314e1d |