ZaStoGram_desktop/Telegram/SourceFiles/ui/webview_helpers.h
John Preston 7ca891ed68 Remove unused visual helpers and the obsolete image source.
Task: 2026/10/21/remove-unused-visual-helpers-and-the-obsolete-image-source
2026-10-21 23:36:07 +04:00

28 lines
724 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
#include "base/flat_map.h"
namespace tr {
template <typename ...Tags>
struct phrase;
} // namespace tr
namespace Ui {
[[nodiscard]] QByteArray ComputeStyles(
const base::flat_map<QByteArray, const style::color*> &colors,
const base::flat_map<QByteArray, tr::phrase<>> &phrases,
int zoom,
bool nightTheme = false);
[[nodiscard]] QByteArray EscapeForAttribute(QByteArray value);
[[nodiscard]] QByteArray EscapeForScriptString(QByteArray value);
} // namespace Ui