ZaStoGram_desktop/Telegram/SourceFiles/info/channel_statistics/earn/earn_icons.h
John Preston e362ce85a3 Remove unused gift painter, currency and gradient helpers.
Task: 2026/10/22/remove-unused-gift-painter-and-currency-helpers
2026-10-22 16:38:14 +04:00

51 lines
1.5 KiB
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
#include "ui/text/custom_emoji_helper.h"
namespace Ui::Text {
class CustomEmoji;
} // namespace Ui::Text
namespace Ui::Earn {
// Mono only where a white shine would vanish or clash, like white marks.
[[nodiscard]] QImage IconCurrencyMono(int size, const QColor &c);
[[nodiscard]] QImage IconCurrencyMono(
const style::font &font,
const QColor &c);
[[nodiscard]] QImage IconCurrencyTwoTone(int size, const QColor &c);
[[nodiscard]] QImage IconCurrencyTwoTone(
const style::font &font,
const QColor &c);
[[nodiscard]] float64 AlignedMarkTop(
const style::font &font,
const QImage &image);
[[nodiscard]] QByteArray CurrencySvgMono(const QColor &c);
[[nodiscard]] QByteArray CurrencySvgTwoTone(const QColor &c);
[[nodiscard]] QImage MenuIconCurrency(const QSize &size);
[[nodiscard]] QImage MenuIconCredits();
std::unique_ptr<Ui::Text::CustomEmoji> MakeCurrencyIconEmoji(
const style::font &font,
const QColor &c);
struct IconDescriptor {
int size = 0;
std::optional<QMargins> margin;
};
[[nodiscard]] Ui::Text::PaletteDependentEmoji IconCreditsEmoji(
IconDescriptor descriptor = {});
[[nodiscard]] Ui::Text::PaletteDependentEmoji IconCurrencyEmoji(
IconDescriptor descriptor = {});
[[nodiscard]] Ui::Text::PaletteDependentEmoji IconCreditsEmojiSmall();
} // namespace Ui::Earn