From aa16bcd6049be5f332fe7d08544576ce20b6c6eb Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 8 Dec 2017 13:22:58 +0400 Subject: [PATCH] Add a special key for saved messages userpic bg. --- Telegram/Resources/colors.palette | 1 + Telegram/SourceFiles/ui/empty_userpic.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/Resources/colors.palette b/Telegram/Resources/colors.palette index 60b942ea85..b93f8442c4 100644 --- a/Telegram/Resources/colors.palette +++ b/Telegram/Resources/colors.palette @@ -316,6 +316,7 @@ historyPeer8NameFg: #ce671b; // orange group member name historyPeer8NameFgSelected: historyPeer8NameFg; // orange group member name in a selected message historyPeer8UserpicBg: #faa774; // orange userpic background historyPeerUserpicFg: windowFgActive; // default userpic initials +historyPeerSavedMessagesBg: historyPeer4UserpicBg; // saved messages userpic background // Some values are marked as (adjusted), it means they're adjusted by // hue and saturation of the average background color if user chooses diff --git a/Telegram/SourceFiles/ui/empty_userpic.cpp b/Telegram/SourceFiles/ui/empty_userpic.cpp index dfb04037b3..623c5cac07 100644 --- a/Telegram/SourceFiles/ui/empty_userpic.cpp +++ b/Telegram/SourceFiles/ui/empty_userpic.cpp @@ -84,7 +84,7 @@ void EmptyUserpic::PaintSavedMessages( int y, int outerWidth, int size) { - const auto &bg = st::historyPeer4UserpicBg; + const auto &bg = st::historyPeerSavedMessagesBg; const auto &fg = st::historyPeerUserpicFg; PaintSavedMessages(p, x, y, outerWidth, size, bg, fg); }