Commit Graph

9 Commits (aa6a420bdc0d945d7f9be511d07b181ecd93d16c)

Author SHA1 Message Date
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 48bd6fb47d Refactor examples.
Add shared code between the examples, to reduce the amount of
boilerplate used in each example. Includes shared colors, Qt5/Qt6 compat
definitions, argparsers, and app startup/exec code.
2022-05-03 12:43:49 -05:00
Alex Huszagh 7117f45ef8 Added standalone issues documentation.
Create a standalone file documenting limitations and issues with
stylesheets, and providing code samples and workarounds for these
issues.
2022-05-03 10:44:26 -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 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 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 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 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