2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Invert patter image to white for dark colors.

This commit is contained in:
John Preston
2021-09-07 00:15:38 +03:00
parent 4273167aa2
commit b6cd9c2911
4 changed files with 56 additions and 17 deletions

View File

@@ -722,6 +722,9 @@ void ChatBackground::setPreparedAfterPaper(QImage image) {
QImage());
} else {
image = postprocessBackgroundImage(std::move(image));
if (Ui::IsPatternInverted(bgColors, _paper.patternOpacity())) {
image = Ui::InvertPatternImage(std::move(image));
}
setPrepared(
image,
image,