Commit Graph

129 Commits (fb3a789dc307ccfbba5799d55ae362142fe3decc)

Author SHA1 Message Date
Alex Huszagh fb3a789dc3 Bug fix for QCalendarWidget in QDateTimeEdit.
Fixes the year drop-down menu to properly be styled, via the
`qt_datetimedit_calendar` object name.
2022-05-01 12:43:57 -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 dac2e86ef1 Fixed network drive icon. 2022-05-01 02:39:22 -05:00
Alex Huszagh a0bc755c94 Fixed hard drive icon. 2022-05-01 02:34:32 -05:00
Alex Huszagh d6c6f65a55 Update titlebar close icon. 2022-05-01 01:58:14 -05:00
Alex Huszagh 1bcde40657 Fix file dialog and browser icons for lower resoluton displays. 2022-05-01 01:18:31 -05:00
Alex Huszagh a694f3164c All extension discovery without stylesheets. 2022-05-01 01:17:19 -05:00
Alex Huszagh d6537888e7 Provide a complete standard icon set.
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.
2022-04-30 22:33:04 -05:00
Alex Huszagh 92bc22b70e Allow optional stylesheets in extensions. 2022-04-30 17:15:41 -05:00
Alex Huszagh eac6429258 Add more standard icons to example.
Separate overwritten and non-overwritten icons so it's easier to
describe the icons.
2022-04-30 17:10:33 -05:00
Alex Huszagh 5cf73e10c3 Added plugin README. 2022-04-30 16:33:28 -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 52686dd40c Added example workaround for placeholder text.
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.
2022-04-30 14:26:01 -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 48b7d6d75d Fix QCalendarWidget.
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.
2022-04-29 15:55:37 -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 aeb45a3e91 Added example for #38. 2022-04-29 11:52:10 -05:00
Alex Huszagh 9ed3ed5e86 Update README sections to better describe extending stylesheets. 2022-04-29 11:45:08 -05:00
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