summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/snippets/code/code.pro
diff options
context:
space:
mode:
authorDoris Verria <doris.verria@qt.io>2024-08-21 14:12:01 +0200
committerDoris Verria <doris.verria@qt.io>2024-08-23 11:14:34 +0200
commitd4a2f01976bbb0f8b357bfd96faf9ec249047c95 (patch)
tree4e55e26dbb6d7711815db08d829616d015f9f0d3 /src/sql/doc/snippets/code/code.pro
parenta06f3e823bea0361125a10dd361f6fd50a4041cc (diff)
QWindowsTheme: Set correct accent color depending on color scheme
The accent colors retrieved through the UISettings.GetColorValue API are not theme aware. They will report the same values for both light and dark mode. We were using the same Accent color value for both color schemes giving us poor contrast when app is running on dark mode. The API gives us several shades of accent colors from lightest to darkest which we need to map to the accent roles in our QPalette depending on the active color scheme. The following colors and their mappings are based on the modern WindowsUI3 and its official Figma file: Light Mode AccentDefault (default accent color for controls) -> AccentDark1 AccentText/Primary (accent color for links) -> AccentDark2 Dark Mode AccentDefault -> AccentLight2 AccentText/Primary -> AccentLight3 Fix this for the qwindowstheme so that it affects both the windows11 style and the FluentWinUI3 for Quick. Pick-to: 6.8 6.7 Change-Id: If1c3a909d0a4dc9082e7589eaeaebd05e9f65a29 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/code/code.pro')
0 files changed, 0 insertions, 0 deletions