Used the `QAbstractItemView::item` subcontrol `max-height` and
`QAbstractItemView::*-arrow` subcontrol `margin` to ensure size
consistency between Qt5 and Qt6, otherwise, Qt6 has a much larger arrow
size which creates visual inconsistency.
Removed the style for `QWidget:disabled:hover`, which causes the issue, and seemingly has no negative consequences since the default background color is still `^background^` without it.
Closes#54.
Removes the border on QColumnView when not focused, and uses the correct
arrows through the QAbstractItemView::left-arrow and
QAbastractItemView::right-arrow subcontrols to style the arrows.
Closes#45.
Closes#46.
Only 3 widgets subclass QAbstractSlider: QSlider, QScrollBar, and QDial.
We cannot style QDial, and QSlider is the only one we want styled, with
our separate customizations for QScrollbar.
Closes#53.
Added `QDial` styling to known issues, and added a drop-in replacement for `QDial` (subclassing it) that consistently styles over all platforms and application styles.
Closes#42.
Weirdly, this is controlled via QAbstractSpinBox and the arrow
indicators, which is fixed by setting a `width` and `height` for those
subcontrols. This makes little sense, since the calendar popup is styled
using QStyle.CC_ComboBox, but it works reliable for Qt5 and Qt6.
Closes#40.
Added padding to properly pad text on the tab bar. Added negative
padding to avoid clipping the close button, without it overlapping with
the border. Added highlighting for the selected tav. Added
documentation for known bugs with padding south tabs, and color/outline
for selected tabs.
Closes#48.
Closes#50.
Update the overview description to simplify and better describe the
stylesheet overview. Update the testing documentation. Add a section for
plugins with links to the plugin code.
Provides pixmaps for all Qt standard icons, as an extension, with
descriptions on how to use QCommonStyle to override the default standard
icons. This provides a consistent look and feel on all apps.
Added an example PyQt6 application with a workaround to attempt to fix
the placeholder text color issues, which further supports the idea that
it is a Qt bug, and not a stylesheet issue.
Using `QtGui.QPalette.ColorRole.PlaceholderText`, we are able to modify
the placeholder text color in Qt5, but not in Qt6.
Closes#41.
Closes#44.
Fixes the QToolButton views for the QCalendarWidget, displaying the
desired behavior for both the month and year select. Also fixes the
icons for the QPrevNextCalButton (a subclass of QToolButton) to fix the
next and previous icons. Also, Qt6 now has the menu-arrow correctly
displayed.
Fixes#39.
Added `example/standard_icons.py` which subclasses `QCommonStyle` to
override standard icons, while keeping the default style. This respects
the stylesheet, while allowing custom standard icons. Added this example
to the documentation.
Closes#33.
Ensures table sort indicator is present on the right, is always visible by clipping just the right amount of content, and fixes the padding issues with the tables before. If the sort indicator is not present, there is no clipping.
Closes#35.
Also patches the workaround for #31, by avoiding any hacks to get the desired behavior. Sets the `subcontrol-origin` to `margin` and `subcontrol-position` to `right`, and uses `::up-arrow` and `::down-arrow` subcontrols only when `showSortIndicator="true"`.
Closes#37.
Removed the `min-height` styles from `QToolButton[autoRaise="false"]` and `QToolButton[autoRaise="false"]:checked, QToolButton[autoRaise="false"]:pressed` to fix the issues with the clear text icon in #28. This does not affect the UI anyway, so has no downsides.
Fixes#28.
Fixes issues between the arrow placement in the `menu-arrow` and `menu-indicator` of a QToolButton, which was inconsistent between Qt5 and Qt6. Using `subcontrol-origin: content;` and then adjusting `padding-right: -1.11em;` fixes the issue.
Fixes#36.
Fixed styles for auto-raised QToolButtons. Also added fixes for standard icons in test suites, to ensure they work in Qt5 and Qt6. Added auto-raised icons to `example/widgets.py`.
Closes#22.
Added `--compiled-resource` flag, which can be used to invoke `pyrcc5`.
The `pyrcc5` executable can be controlled via the `PYRCC5` environment
variable or the `--pyrcc5` flag. Updated the documentation to reflect
this, including the default build scripts.