aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/controls/data/checkbox
diff options
context:
space:
mode:
authorIvan Solovev <[email protected]>2025-06-10 16:31:16 +0200
committerIvan Solovev <[email protected]>2025-06-13 12:15:41 +0200
commit7322e051c9c3d8dc715c20a3d42d9be83ea2295c (patch)
tree4b13c016a33e3793ef51e3e77d1db940596a5249 /tests/baseline/controls/data/checkbox
parent2d4bebdb51bbf720fe719f5e6ea54b04bde36510 (diff)
QQuickDialogs: fix dark mode in SideBarHEADdev
The patch explicitly sets the colors from the palette for some of the elements of the SideBar. It also removes the usage of Basic.darkShade color, which is not available in general case, replacing it with the palette.dark color. A more complicated problem was related to the icons in buttonDelegate and addFavoriteDelegate, that were not updating their colors. The reason for that was that the unrelying C++ code was constructing the delegates using QQmlComponent::createWithInitialProperties(), and passed a QQuickIcon object as one of the properties. As a result, the original binding on icon.color was removed. To keep the binding, construct the components with a default icon, then manually set the source and the size. This approach is slower, but it allows to preserve the original binding from the QtQuick Button component. Last affected element was the drag pixmap, which was always using the original color. Use the buttonText() palette color to update all the non-transparent pixels of the icon before using it in the drag. Fixes: QTBUG-122738 Pick-to: 6.10 6.9 Change-Id: Ibf4182b1c5a631fe7043e8d76ed98629c69ab4d6 Reviewed-by: Mitch Curtis <[email protected]>
Diffstat (limited to 'tests/baseline/controls/data/checkbox')
0 files changed, 0 insertions, 0 deletions