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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user