From 91231c98930eebe6488d6a85b0c3556ddf6e3575 Mon Sep 17 00:00:00 2001 From: Nazar Date: Fri, 27 Apr 2018 18:38:01 +0300 Subject: [PATCH] =?UTF-8?q?Fix=20indicator=20image=20of=20checkable=20QGro?= =?UTF-8?q?upBox=20for=20checked/unchecked=20stat=E2=80=A6=20(#94)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix indicator image of checkable QGroupBox for checked/unchecked state #93 * Edit version information --- CHANGES.md | 2 ++ qdarkstyle/__init__.py | 2 +- qdarkstyle/style.qss | 6 ++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index e8389419a..cafe104ed 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,7 @@ # Changelog +- 2.5.4 + - Fix indicator image of checkable QGroupBox for check/uncheck states, #93 - 2.5.3 - Add future warning and pending deprecation for 3.0 version preparation #89 - Add ISSUE_TEMPLATE to ask for default information on issue tracker diff --git a/qdarkstyle/__init__.py b/qdarkstyle/__init__.py index d0c951711..a4d73afa5 100644 --- a/qdarkstyle/__init__.py +++ b/qdarkstyle/__init__.py @@ -48,7 +48,7 @@ import platform import os import warnings -__version__ = "2.5.3" +__version__ = "2.5.4" PYQTGRAPH_QT_LIB_VALUES = ['PyQt', 'PyQt5', 'PySide', 'PySide2'] QT_API_VALUES = ['pyqt', 'pyqt5', 'pyside', 'pyside2'] diff --git a/qdarkstyle/style.qss b/qdarkstyle/style.qss index d7901bbeb..df7b79acd 100644 --- a/qdarkstyle/style.qss +++ b/qdarkstyle/style.qss @@ -47,7 +47,8 @@ QGroupBox::indicator { margin-left: 2px; } -QCheckBox::indicator:unchecked { +QCheckBox::indicator:unchecked, +QGroupBox::indicator:unchecked { image: url(:/qss_icons/rc/checkbox_unchecked.png); } @@ -61,7 +62,8 @@ QGroupBox::indicator:unchecked:pressed { image: url(:/qss_icons/rc/checkbox_unchecked_focus.png); } -QCheckBox::indicator:checked { +QCheckBox::indicator:checked +QGroupBox::indicator:checked, { image: url(:/qss_icons/rc/checkbox_checked.png); }