From 5d2ffae215f2bd29ff11e2250c072004a336cce8 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 9 Nov 2020 17:35:51 +0300 Subject: [PATCH] Improved VoiceRecordButton colors. --- .../history/view/controls/history_view_voice_record_bar.cpp | 2 +- .../view/controls/history_view_voice_record_button.cpp | 2 +- Telegram/SourceFiles/ui/chat/chat.style | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/history/view/controls/history_view_voice_record_bar.cpp b/Telegram/SourceFiles/history/view/controls/history_view_voice_record_bar.cpp index d5cad9a26c..29a7653973 100644 --- a/Telegram/SourceFiles/history/view/controls/history_view_voice_record_bar.cpp +++ b/Telegram/SourceFiles/history/view/controls/history_view_voice_record_bar.cpp @@ -691,7 +691,7 @@ void VoiceRecordBar::startRedCircleAnimation() { void VoiceRecordBar::drawRedCircle(Painter &p) { PainterHighQualityEnabler hq(p); p.setPen(Qt::NoPen); - p.setBrush(st::historyRecordSignalColor); + p.setBrush(st::historyRecordVoiceFgInactive); p.setOpacity(1. - _redCircleProgress); const int radii = st::historyRecordSignalRadius * showAnimationRatio(); diff --git a/Telegram/SourceFiles/history/view/controls/history_view_voice_record_button.cpp b/Telegram/SourceFiles/history/view/controls/history_view_voice_record_button.cpp index e94604f94b..64ef1e235e 100644 --- a/Telegram/SourceFiles/history/view/controls/history_view_voice_record_button.cpp +++ b/Telegram/SourceFiles/history/view/controls/history_view_voice_record_button.cpp @@ -665,7 +665,7 @@ void VoiceRecordButton::init() { } PainterHighQualityEnabler hq(p); const auto color = anim::color( - st::historyRecordSignalColor, + st::historyRecordVoiceFgInactive, st::historyRecordVoiceFgActive, _colorProgress.current()); _recordCircle->paint(p, color); diff --git a/Telegram/SourceFiles/ui/chat/chat.style b/Telegram/SourceFiles/ui/chat/chat.style index f783f6fd19..7fead3ef50 100644 --- a/Telegram/SourceFiles/ui/chat/chat.style +++ b/Telegram/SourceFiles/ui/chat/chat.style @@ -327,14 +327,15 @@ historyScheduledToggle: IconButton(historyAttach) { } historyRecordVoiceFg: historyComposeIconFg; historyRecordVoiceFgOver: historyComposeIconFgOver; +historyRecordVoiceFgInactive: attentionButtonFg; historyRecordVoiceFgActive: windowBgActive; +historyRecordVoiceFgActiveIcon: windowFgActive; historyRecordVoiceShowDuration: 120; historyRecordVoiceDuration: 120; historyRecordVoice: icon {{ "send_control_record", historyRecordVoiceFg }}; historyRecordVoiceOver: icon {{ "send_control_record", historyRecordVoiceFgOver }}; -historyRecordVoiceActive: icon {{ "send_control_record_active", recordActiveIcon }}; +historyRecordVoiceActive: icon {{ "send_control_record_active", historyRecordVoiceFgActiveIcon }}; historyRecordVoiceRippleBgActive: lightButtonBgOver; -historyRecordSignalColor: attentionButtonFg; historyRecordSignalRadius: 5px; historyRecordCancel: windowSubTextFg; historyRecordCancelActive: windowActiveTextFg;