Commit Graph

158 Commits (8f17872d473a5c37c6430c411ad2ae73aed97fd4)

Author SHA1 Message Date
Alex Huszagh 0e3d5150c1 Add example of overwriting standard icons.
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.
2022-04-29 11:40:45 -05:00
Alex Huszagh 3131987eb7 Added pull request templates. 2022-04-29 09:55:58 -05:00
Alex Huszagh 8a834231a2 Add issue template for bug report. 2022-04-29 09:50:55 -05:00
Alex Huszagh 0012c78599 Add issue templates. 2022-04-29 09:41:37 -05:00
Alex Huszagh 1ea115e266 Fix table sort indicator and padding.
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.
2022-04-29 09:32:33 -05:00
Alex Huszagh c29d290eb8 Fix padding in QHeaderView sections.
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.
2022-04-29 09:22:09 -05:00
Alex Huszagh 565eb038bf Update README due to master -> main renaming. 2022-04-28 15:31:21 -05:00
Alex Huszagh 9ad5917cb5 Fix min-height in QToolButton affecting QFileDialog.
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.
2022-04-28 15:29:44 -05:00
Alex Huszagh 90f679d600 Fix arrow placement on QToolButton.
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.
2022-04-28 15:18:43 -05:00
Alex Huszagh 836febe922 Fix hover/pressed/checked events for auto-raised QToolButtons.
Fixes #34.
2022-04-28 13:51:05 -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 e54c825b90 Fix QHeaderView column margins with arrows.
Fixes #31. Sets `-5em` left and right margins as a hack to ensure that
the headers are properly spaced.
2022-04-27 18:18:58 -05:00
Alex Huszagh 102976f25f Fix bottom margin in QHeaderView rows with arrows.
Partially addresses #31. Only fixes the row header margins, and not the
margins for the QHeaderView columns.
2022-04-27 18:17:19 -05:00
Alex Huszagh 09f02a1185 Compile resource files during configuration.
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.
2022-04-27 17:32:20 -05:00
Alex Huszagh c14c9f657e Update VCS script to ignore all changes in dist. 2022-04-27 17:04:30 -05:00
Alex Huszagh ad10af6fc3 Rename git.py to vcs.py to avoid git command conflicts. 2022-04-27 16:40:12 -05:00
Alex Huszagh f753556c2c Allow tracking/untracking of distribution files.
Provides `git.py`, which enables/disables the tracking of all files in `dist` via the `--track-dist` and `--no-track-dist` mutually exclusive options. This is done via modifying `.gitignore`, since `update-index assume-unchanged` can't handle directories. Therefore, `.gitignore` is automatically untracked. To track `.gitignore`, run `python git.py --track-gitignore`.

Closes #29.
2022-04-27 16:34:23 -05:00
Alex Huszagh 0221df47e3 Add version to configure.py. 2022-04-27 13:55:48 -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 c2064b90c9 Update CMake build/install documentation.
Fixes #24.
2022-04-26 11:51:27 -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
Alexander Huszagh 79a9825c26
LICENSE notification updates 2021-07-26 09:46:01 -05:00
Alex Huszagh 6efb52c129 Moved breeze.qrc to dist. 2021-07-21 11:27:13 -05:00
Alex Huszagh 374d283cf0 Minor patch to README table of contents. 2021-07-21 11:23:20 -05:00
Alex Huszagh 8aff25b3a1 Added install directions for CMake.
- Moved generated directories to `dist/` for cleaner builds.
2021-07-21 11:21:14 -05:00
Alexander Huszagh e3d35390bc
Capitalize Extensions for Better Readability 2021-07-20 19:34:35 -05:00
Alex Huszagh 024179a9cb Minor README updates. 2021-07-20 19:31:00 -05:00
Alex Huszagh f886ba8cf1 README updates for extensions. 2021-07-20 19:27:57 -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 228009860b Added comprehensive support for the Advance Docking System. 2021-07-20 17:09:57 -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
Alex Huszagh 458fb583dc Tenative commit to debug AdvancedDockingSystem. 2021-07-19 13:25:51 -05:00
Alex Huszagh 3bf2427ce2 Added support for PyQt6. 2021-07-18 10:11:09 -05:00
Alexander Huszagh 7c34e5dd3d
Removed outdated limitation, which required an undocumented fix. 2021-07-17 01:51:52 -05:00
Alexander Huszagh 60a383063f
Update README.md 2021-07-17 01:42:44 -05:00
Alex Huszagh d620f2226b Bug fixes for #11 2021-07-17 00:09:44 -05:00
Alex Huszagh 735d6486ee Bug fix for #15. 2021-07-16 23:24:48 -05:00
Alex Huszagh 64b6e7ca51 Added gallery images for Windows. 2021-07-16 23:02:35 -05:00
Alexander Huszagh 81d45e9669
Update gallery for better formatting. 2021-07-16 22:43:38 -05:00
Alex Huszagh a7f536fbe7 Initial commit for gallery screenshots. 2021-07-16 22:32:20 -05:00
Alex Huszagh ce29da0ba7 Added support for better dialog widgets, useful for custom themes. 2021-07-16 22:07:12 -05:00
Alex Huszagh 038a9d2a65 Updated tests, minor bug fixes, and merge lightv2 into light. 2021-07-16 17:03:26 -05:00
Alex Huszagh 799693e9d6 Minor documentation updates. 2021-07-16 15:18:21 -05:00
Alex Huszagh 4279cb7c52 Added documentation for designing custom themes. 2021-07-16 15:16:35 -05:00