mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Allow changing accent color in default themes.
This commit is contained in:
@@ -908,7 +908,9 @@ void Generator::restoreTextPalette() {
|
||||
|
||||
} // namespace
|
||||
|
||||
std::unique_ptr<Preview> PreviewFromFile(const QString &filepath) {
|
||||
std::unique_ptr<Preview> PreviewFromFile(
|
||||
const QString &filepath,
|
||||
const Colorizer *colorizer) {
|
||||
auto result = std::make_unique<Preview>();
|
||||
result->pathRelative = filepath.isEmpty()
|
||||
? QString()
|
||||
@@ -916,7 +918,11 @@ std::unique_ptr<Preview> PreviewFromFile(const QString &filepath) {
|
||||
result->pathAbsolute = filepath.isEmpty()
|
||||
? QString()
|
||||
: QFileInfo(filepath).absoluteFilePath();
|
||||
if (!LoadFromFile(filepath, &result->instance, &result->content)) {
|
||||
if (!LoadFromFile(
|
||||
filepath,
|
||||
&result->instance,
|
||||
&result->content,
|
||||
colorizer)) {
|
||||
return nullptr;
|
||||
}
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user