ZaStoGram_desktop/Telegram/SourceFiles/ui/window_palette.h
John Preston f38aa0dbde Repainted opaque popup and panel items after a wallet recolor.
Task: 2026/10/16/recolour-the-wallet-window-with-its-card-in-one-wave
2026-10-20 17:07:52 +04:00

28 lines
773 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
namespace style {
class palette;
} // namespace style
namespace Ui {
class RpWidget;
void SetWindowPalette(
not_null<RpWidget*> window,
Fn<const style::palette*(bool child)> resolve);
[[nodiscard]] bool HasWindowPalettes();
[[nodiscard]] const style::palette *WindowPaletteFor(
not_null<const QWidget*> widget);
void ForceFullPaletteRepaint(not_null<QWidget*> widget);
void RefreshWindowPaletteChild(not_null<QWidget*> child);
void UpdateWindowPaletteChildren(not_null<const QWidget*> window);
} // namespace Ui