Fix scrollbar + sizegrip issue causing view expansion.

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.
main
Alex Huszagh 2022-05-02 15:40:05 -05:00
parent 8ad730cd70
commit 2a90ca995a
12 changed files with 4773 additions and 4502 deletions

View File

@ -217,7 +217,6 @@ Some issues cannot be fixed with stylesheets alone, or there are bugs in Qt itse
- Triangular QTabBars do not have hover events for non-selected widgets.
- Custom padding for triangular QTabBars on the bottom is ignored. All other tab positions work.
- `QDial` cannot be customized via a stylesheet, which is a known bug in [QTBUG-1160](https://bugreports.qt.io/browse/QTBUG-1160). An example of how to style a `QDial` is available in [dial.py](/example/dial.py). This works out-of-the-box, and can be a drop-in replacement for `QDial`.
- The size grips in a `QColumnView` will cause the column to auto-resize on a hover event with a stylesheet set. It's recommended to set `setResizeGripsVisible` to `false` until this is fixed.
# Installing

File diff suppressed because it is too large Load Diff

View File

@ -67,11 +67,6 @@ QWidget:disabled
background-color: #31363b;
}
QWidget:disabled:hover
{
background-color: #31363b;
}
QCheckBox
{
spacing: 0.23em;

View File

@ -67,11 +67,6 @@ QWidget:disabled
background-color: #eff0f1;
}
QWidget:disabled:hover
{
background-color: #eff0f1;
}
QCheckBox
{
spacing: 0.23em;

4
dist/qrc/breeze.qrc vendored
View File

@ -35,6 +35,7 @@
<file>dark/hseptoolbar.svg</file>
<file>dark/left_arrow.svg</file>
<file>dark/left_arrow_disabled.svg</file>
<file>dark/left_arrow_hover.svg</file>
<file>dark/message_critical.svg</file>
<file>dark/message_information.svg</file>
<file>dark/message_question.svg</file>
@ -45,6 +46,7 @@
<file>dark/radio_unchecked_disabled.svg</file>
<file>dark/right_arrow.svg</file>
<file>dark/right_arrow_disabled.svg</file>
<file>dark/right_arrow_hover.svg</file>
<file>dark/sizegrip.svg</file>
<file>dark/stylesheet.qss</file>
<file>dark/transparent.svg</file>
@ -92,6 +94,7 @@
<file>light/hseptoolbar.svg</file>
<file>light/left_arrow.svg</file>
<file>light/left_arrow_disabled.svg</file>
<file>light/left_arrow_hover.svg</file>
<file>light/message_critical.svg</file>
<file>light/message_information.svg</file>
<file>light/message_question.svg</file>
@ -102,6 +105,7 @@
<file>light/radio_unchecked_disabled.svg</file>
<file>light/right_arrow.svg</file>
<file>light/right_arrow_disabled.svg</file>
<file>light/right_arrow_hover.svg</file>
<file>light/sizegrip.svg</file>
<file>light/stylesheet.qss</file>
<file>light/transparent.svg</file>

View File

@ -67,11 +67,6 @@ QWidget:disabled
background-color: #31363b;
}
QWidget:disabled:hover
{
background-color: #31363b;
}
QCheckBox
{
spacing: 0.23em;

View File

@ -1,5 +1,5 @@
<svg width="60" height="90">
<g transform="scale(10)">
<path d="m 5.0823028,1.1894593 -3.310321,3.3105408 3.3117417,3.3105408 c 0.157702,0.1577125 0.157702,0.4134624 0,0.5711749 -0.157702,0.1577123 -0.4134349,0.1577123 -0.5711369,0 l -3.59731017,-3.5961283 0,0 0,0 c -0.15770191,-0.1577124 -0.15770191,-0.4134624 0,-0.5711748 L 4.5125866,0.61828437 c 0.157702,-0.1577124 0.4134349,-0.1577124 0.5711369,0 0.1562813,0.1577125 0.1562813,0.41346243 -0.00142,0.57117493 z" fill="#31363b"/>
<path d="m 5.0823028,1.1894593 -3.310321,3.3105408 3.3117417,3.3105408 c 0.157702,0.1577125 0.157702,0.4134624 0,0.5711749 -0.157702,0.1577123 -0.4134349,0.1577123 -0.5711369,0 l -3.59731017,-3.5961283 0,0 0,0 c -0.15770191,-0.1577124 -0.15770191,-0.4134624 0,-0.5711748 L 4.5125866,0.61828437 c 0.157702,-0.1577124 0.4134349,-0.1577124 0.5711369,0 0.1562813,0.1577125 0.1562813,0.41346243 -0.00142,0.57117493 z" fill="#31363b" fill-opacity="1.0"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 505 B

After

Width:  |  Height:  |  Size: 524 B

View File

@ -1,5 +1,5 @@
<svg width="60" height="90">
<g transform="scale(10)">
<path d="m 5.0823028,1.1894593 -3.310321,3.3105408 3.3117417,3.3105408 c 0.157702,0.1577125 0.157702,0.4134624 0,0.5711749 -0.157702,0.1577123 -0.4134349,0.1577123 -0.5711369,0 l -3.59731017,-3.5961283 0,0 0,0 c -0.15770191,-0.1577124 -0.15770191,-0.4134624 0,-0.5711748 L 4.5125866,0.61828437 c 0.157702,-0.1577124 0.4134349,-0.1577124 0.5711369,0 0.1562813,0.1577125 0.1562813,0.41346243 -0.00142,0.57117493 z" fill="#bab9b8"/>
<path d="m 5.0823028,1.1894593 -3.310321,3.3105408 3.3117417,3.3105408 c 0.157702,0.1577125 0.157702,0.4134624 0,0.5711749 -0.157702,0.1577123 -0.4134349,0.1577123 -0.5711369,0 l -3.59731017,-3.5961283 0,0 0,0 c -0.15770191,-0.1577124 -0.15770191,-0.4134624 0,-0.5711748 L 4.5125866,0.61828437 c 0.157702,-0.1577124 0.4134349,-0.1577124 0.5711369,0 0.1562813,0.1577125 0.1562813,0.41346243 -0.00142,0.57117493 z" fill="#bab9b8" fill-opacity="1.0"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 505 B

After

Width:  |  Height:  |  Size: 524 B

View File

@ -1,5 +1,5 @@
<svg width="60" height="90">
<g transform="scale(10)">
<path d="m 0.9166972,1.1894593 3.310321,3.3105408 -3.3117417,3.3105408 c -0.157702,0.1577125 -0.157702,0.4134624 0,0.5711749 0.157702,0.1577123 0.4134349,0.1577123 0.5711369,0 l 3.5973102,-3.5961283 0,0 0,0 c 0.1577019,-0.1577124 0.1577019,-0.4134624 0,-0.5711748 L 1.4864134,0.61828437 c -0.157702,-0.1577124 -0.4134349,-0.1577124 -0.5711369,0 -0.1562813,0.1577125 -0.1562813,0.41346243 0.00142,0.57117493 z" fill="#31363b"/>
<path d="m 0.9166972,1.1894593 3.310321,3.3105408 -3.3117417,3.3105408 c -0.157702,0.1577125 -0.157702,0.4134624 0,0.5711749 0.157702,0.1577123 0.4134349,0.1577123 0.5711369,0 l 3.5973102,-3.5961283 0,0 0,0 c 0.1577019,-0.1577124 0.1577019,-0.4134624 0,-0.5711748 L 1.4864134,0.61828437 c -0.157702,-0.1577124 -0.4134349,-0.1577124 -0.5711369,0 -0.1562813,0.1577125 -0.1562813,0.41346243 0.00142,0.57117493 z" fill="#31363b" fill-opacity="1.0"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 521 B

View File

@ -1,5 +1,5 @@
<svg width="60" height="90">
<g transform="scale(10)">
<path d="m 0.9166972,1.1894593 3.310321,3.3105408 -3.3117417,3.3105408 c -0.157702,0.1577125 -0.157702,0.4134624 0,0.5711749 0.157702,0.1577123 0.4134349,0.1577123 0.5711369,0 l 3.5973102,-3.5961283 0,0 0,0 c 0.1577019,-0.1577124 0.1577019,-0.4134624 0,-0.5711748 L 1.4864134,0.61828437 c -0.157702,-0.1577124 -0.4134349,-0.1577124 -0.5711369,0 -0.1562813,0.1577125 -0.1562813,0.41346243 0.00142,0.57117493 z" fill="#bab9b8"/>
<path d="m 0.9166972,1.1894593 3.310321,3.3105408 -3.3117417,3.3105408 c -0.157702,0.1577125 -0.157702,0.4134624 0,0.5711749 0.157702,0.1577123 0.4134349,0.1577123 0.5711369,0 l 3.5973102,-3.5961283 0,0 0,0 c 0.1577019,-0.1577124 0.1577019,-0.4134624 0,-0.5711748 L 1.4864134,0.61828437 c -0.157702,-0.1577124 -0.4134349,-0.1577124 -0.5711369,0 -0.1562813,0.1577125 -0.1562813,0.41346243 0.00142,0.57117493 z" fill="#bab9b8" fill-opacity="1.0"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 521 B

View File

@ -67,11 +67,6 @@ QWidget:disabled
background-color: #eff0f1;
}
QWidget:disabled:hover
{
background-color: #eff0f1;
}
QCheckBox
{
spacing: 0.23em;

View File

@ -67,11 +67,6 @@ QWidget:disabled
background-color: ^background^;
}
QWidget:disabled:hover
{
background-color: ^background^;
}
QCheckBox
{
spacing: 0.23em;