2
0
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:
John Preston
2019-08-27 16:59:15 +03:00
parent 763bdf8798
commit 117d6192fa
13 changed files with 238 additions and 183 deletions

View File

@@ -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;