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