mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Improved VoiceRecordButton colors.
This commit is contained in:
parent
1d120092cf
commit
5d2ffae215
3 changed files with 5 additions and 4 deletions
|
@ -691,7 +691,7 @@ void VoiceRecordBar::startRedCircleAnimation() {
|
||||||
void VoiceRecordBar::drawRedCircle(Painter &p) {
|
void VoiceRecordBar::drawRedCircle(Painter &p) {
|
||||||
PainterHighQualityEnabler hq(p);
|
PainterHighQualityEnabler hq(p);
|
||||||
p.setPen(Qt::NoPen);
|
p.setPen(Qt::NoPen);
|
||||||
p.setBrush(st::historyRecordSignalColor);
|
p.setBrush(st::historyRecordVoiceFgInactive);
|
||||||
|
|
||||||
p.setOpacity(1. - _redCircleProgress);
|
p.setOpacity(1. - _redCircleProgress);
|
||||||
const int radii = st::historyRecordSignalRadius * showAnimationRatio();
|
const int radii = st::historyRecordSignalRadius * showAnimationRatio();
|
||||||
|
|
|
@ -665,7 +665,7 @@ void VoiceRecordButton::init() {
|
||||||
}
|
}
|
||||||
PainterHighQualityEnabler hq(p);
|
PainterHighQualityEnabler hq(p);
|
||||||
const auto color = anim::color(
|
const auto color = anim::color(
|
||||||
st::historyRecordSignalColor,
|
st::historyRecordVoiceFgInactive,
|
||||||
st::historyRecordVoiceFgActive,
|
st::historyRecordVoiceFgActive,
|
||||||
_colorProgress.current());
|
_colorProgress.current());
|
||||||
_recordCircle->paint(p, color);
|
_recordCircle->paint(p, color);
|
||||||
|
|
|
@ -327,14 +327,15 @@ historyScheduledToggle: IconButton(historyAttach) {
|
||||||
}
|
}
|
||||||
historyRecordVoiceFg: historyComposeIconFg;
|
historyRecordVoiceFg: historyComposeIconFg;
|
||||||
historyRecordVoiceFgOver: historyComposeIconFgOver;
|
historyRecordVoiceFgOver: historyComposeIconFgOver;
|
||||||
|
historyRecordVoiceFgInactive: attentionButtonFg;
|
||||||
historyRecordVoiceFgActive: windowBgActive;
|
historyRecordVoiceFgActive: windowBgActive;
|
||||||
|
historyRecordVoiceFgActiveIcon: windowFgActive;
|
||||||
historyRecordVoiceShowDuration: 120;
|
historyRecordVoiceShowDuration: 120;
|
||||||
historyRecordVoiceDuration: 120;
|
historyRecordVoiceDuration: 120;
|
||||||
historyRecordVoice: icon {{ "send_control_record", historyRecordVoiceFg }};
|
historyRecordVoice: icon {{ "send_control_record", historyRecordVoiceFg }};
|
||||||
historyRecordVoiceOver: icon {{ "send_control_record", historyRecordVoiceFgOver }};
|
historyRecordVoiceOver: icon {{ "send_control_record", historyRecordVoiceFgOver }};
|
||||||
historyRecordVoiceActive: icon {{ "send_control_record_active", recordActiveIcon }};
|
historyRecordVoiceActive: icon {{ "send_control_record_active", historyRecordVoiceFgActiveIcon }};
|
||||||
historyRecordVoiceRippleBgActive: lightButtonBgOver;
|
historyRecordVoiceRippleBgActive: lightButtonBgOver;
|
||||||
historyRecordSignalColor: attentionButtonFg;
|
|
||||||
historyRecordSignalRadius: 5px;
|
historyRecordSignalRadius: 5px;
|
||||||
historyRecordCancel: windowSubTextFg;
|
historyRecordCancel: windowSubTextFg;
|
||||||
historyRecordCancelActive: windowActiveTextFg;
|
historyRecordCancelActive: windowActiveTextFg;
|
||||||
|
|
Loading…
Add table
Reference in a new issue