summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindowsysteminterface.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <[email protected]>2025-04-09 20:48:10 +0200
committerTor Arne Vestbø <[email protected]>2025-04-15 17:31:29 +0200
commitfdfed82675f852f108e0224a50d58a8b38d67a1a (patch)
tree2b876ce49159964773fde101207200b3f0216422 /src/gui/kernel/qwindowsysteminterface.cpp
parent3a21b4bcaf99ee705ab8f8ed0fc413d117edd1e1 (diff)
Handle Windows theme changes in central theme listener
Instead of having each window listen for theme changes we now have a single theme listener window, similar to the way we handle screen management. This reduces the amount of redundant callbacks to QWSI for theme changes somewhat, but Windows still emits several redundant events even for a single window. We want the theme change event to be synchronous, so there is no obvious way to debounce these events, besides the clearing of the message queue that we already do in this patch. Since we don't know exactly what part of the theme changed we can't bail out of the theme change event to QWSI based on the color scheme being the same, as the accent color or other parts of the theme might have changed. Change-Id: I827fa50effadf8a8e674a03ddc72958c60310f48 Reviewed-by: Oliver Wolff <[email protected]> Reviewed-by: Zhao Yuhang <[email protected]>
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface.cpp')
0 files changed, 0 insertions, 0 deletions