ZaStoGram_desktop/Telegram/SourceFiles/ui/window_palette.h
John Preston 1185196ff4 Give the Wallet window its own card-matched palette
Task: 2026/09/27/give-the-wallet-window-its-own-theme-with-a-card-matched-accent
2026-10-08 22:24:47 +04:00

25 lines
581 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*()> resolve);
[[nodiscard]] bool HasWindowPalettes();
[[nodiscard]] const style::palette *WindowPaletteFor(
not_null<const QWidget*> widget);
} // namespace Ui