Commit Graph

26 Commits (3c7306469e66b491529f14b8974fbc30c8cbc882)

Author SHA1 Message Date
Alex Huszagh 4698e92df3 Add titlebar customization issues and workarounds.
Add QMdiSubWindow titlebar customization issues, including title bar
icons, to ISSUES.md, and add a working example of a custom title bar.
This is a full-featured, drop-in replacement that could also be modified
for use in a QMainWindow or QDialog settings.

Closes #63.
2022-05-07 01:59:55 -05:00
Alex Huszagh 78b65c217d Refactor test suite to use shared definitions.
Import shared definitions from `/example`, and remove numerous forms of redundant code, including compatibility definitions. Also, fix a few minor issues with dialogs being too small in the test suites.
2022-05-03 15:46:42 -05:00
Alex Huszagh 71eaba28c7 Update documentation for QCommandLinkButton.
Document the inability to theme the QCommandLinkButton default icon.
Although the icon can be hard-coded via `qproperty-icon` and the size
via `qproperty-iconSize`, it can no longer be customized, defeating the
purpose.

Closes #60.
2022-05-03 01:42:58 -05:00
Alex Huszagh 267d6544cd Further fixes to QToolButton padding.
Added `hasMenu` property so the user can manually override the padding on QToolButtons.

Updated the `QToolBar` to remove `min-height` and `min-width` so the icons can pack closer to together, and specified custom padding rules for the regular icons and those with the drop-down menus. These are narrowly selected via `QDialog QToolBar QToolButton`, and can be manually overridden via `hasMenu`, so they're unlikely to affect anything other than `QFileDialog`.

Likewise, updated the rules for `QToolButton` padding to ensure the button is padded only if it is not auto-raised and it has text. Likewise, this can be manually overridden via the `hasMenu` property. These rules are extensively described in the stylesheet comments.

Further improves the patches to #22, #28, and #47.
2022-05-02 21:30:46 -05:00
Alex Huszagh f5a6a9fb77 Fix highlighting of QGroupBox checkbox.
Fix the highlighting of an unchecked QGroupBox when it is not hovered or the active widget.

Closes #55.
2022-05-02 17:26:31 -05:00
Alex Huszagh 6358a38273 Bug fix for test suite in Qt6. 2022-05-01 14:55:13 -05:00
Alex Huszagh 94c1b04583 Enhancements and bug fixes for test suite.
Add ability to start at given test. Fix bugs in 2 tests.
2022-05-01 14:43:45 -05:00
Alex Huszagh eaa5e1013a Make title for test suite more descriptive. 2022-05-01 14:30:14 -05:00
Alex Huszagh 9655e7da32 Fix styles for triangular QTabBars.
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.
2022-05-01 12:07:07 -05:00
Alex Huszagh 90d9658b71 Added utility to print available tests. 2022-05-01 10:23:30 -05:00
Alex Huszagh f59f881798 Update README documentation for plugins/overview.
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.
2022-05-01 10:08:16 -05:00
Alex Huszagh cc504bf73a Added example of styling QSlider ticks.
Added references to bugs with QSlider tick styling with stylesheets,
along with example workarounds.

Closes #43.
2022-04-30 15:28:39 -05:00
Alex Huszagh 744571ebae Added unittests for comprehensive widget coverage.
Added file to specify unittest coverage, and added numerous unittests.
2022-04-30 13:31:01 -05:00
Alex Huszagh 42b1cf7f55 Added unittests for ToolButtonStyle.
Added tests for both auto-raised and not auto-raised QToolButtons with
all ToolButtonStyles.
2022-04-29 12:58:40 -05:00
Alex Huszagh 0377357dc0 Added unittests for auto-raised QToolButtons.
Added unittests for different arrow types both auto-raised and not.
2022-04-29 12:38:17 -05:00
Alex Huszagh 3243107b0a Bug fix for missing QStyle in Qt5. 2022-04-28 13:03:36 -05:00
Alex Huszagh 047d5cc984 Use better icons for the examples and tests. 2022-04-28 12:57:05 -05:00
Alex Huszagh db1019ddd8 Bug fixes for QToolButton
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.
2022-04-28 10:56:39 -05:00
Alex Huszagh f307bed419 Fix dialog exec in PyQt6.
Closes #32.
2022-04-27 12:38:47 -05:00
Alex Huszagh ae5956fc0c Update build file locations.
- Move all built files to `dist/`.
- Update `configure.py` to allow building both QRC and PyQt6-based
resources.
- Update test suites and example widgets for new resource locations.
- Update README and install documentation for new resource locations.

Fixes #30.
2022-04-27 12:35:35 -05:00
Alex Huszagh 040d6d260f Add test case for issue #25.
Currently cannot reproduce issue #25, we've added a sample test case to
test any changes for it.
2022-04-26 11:21:00 -05:00
Alex Huszagh 4a04f66a0b Fix missing native icon warning in test suite.
Fix using `icon_url` of `close.svg` in the native test suite, due to an
invalid `style_prefix`. Closes #27.
2022-04-26 09:07:27 -05:00
Alex Huszagh a9be9b96e7 Fix default test settings, fixed #26. 2022-04-26 08:53:23 -05:00
Alex Huszagh 2298fcd8bb Add full support for the Advanced Docking System
closes #20
2021-07-20 18:15:07 -05:00
Alex Huszagh 37e1e0c063 Added initial support for extensions and UI fixes.
- Renamed icons with `-` to `_`.
- Added initial support for the Advanced Docking System.
- Added extension for QDockWidget tooltips.
- Bug fixes for QTabWidget.
- Bug fixes for the separator in the QDockWidget.
2021-07-20 13:48:42 -05:00
Alex Huszagh 846254032c Add support for the extensions syntax in configurations. 2021-07-19 21:51:24 -05:00