Commit d6b48f31 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

UI: update hover color for buttons in call screen

Change-Id: I61fd43cd0357d8665b37ba226c066a96fc6f2da9
parent 6c3cb231
......@@ -336,9 +336,9 @@ CVPixelBufferRef pixelBufferPreview;
-(void) setUpButtons:(lrc::api::call::Info&)callInfo isRecording:(BOOL) isRecording {
muteAudioButton.image = callInfo.audioMuted ? [NSImage imageNamed:@"micro_off.png"] :
[NSImage imageNamed:@"micro_on.png"];
NSColor* audioImageColor = callInfo.audioMuted ? [NSColor redColor] : [NSColor whiteColor];
NSColor* audioImageColor = callInfo.audioMuted ? [NSColor callButtonRedColor] : [NSColor whiteColor];
[self updateColorForButton: muteAudioButton color: audioImageColor];
NSColor* videoImageColor = callInfo.videoMuted ? [NSColor redColor] : [NSColor whiteColor];
NSColor* videoImageColor = callInfo.videoMuted ? [NSColor callButtonRedColor] : [NSColor whiteColor];
[self updateColorForButton: muteVideoButton color: videoImageColor];
muteVideoButton.image = callInfo.videoMuted ? [NSImage imageNamed:@"camera_off.png"] :
[NSImage imageNamed:@"camera_on.png"];
......@@ -1122,7 +1122,7 @@ CVPixelBufferRef pixelBufferPreview;
auto& currentCall = callModel->getCall(callUid_);
callModel->toggleMedia(callUid_, lrc::api::NewCallModel::Media::AUDIO);
muteAudioButton.image = currentCall.audioMuted ? [NSImage imageNamed:@"micro_off.png"] : [NSImage imageNamed:@"micro_on.png"];
NSColor* audioImageColor = currentCall.audioMuted ? [NSColor redColor] : [NSColor whiteColor];
NSColor* audioImageColor = currentCall.audioMuted ? [NSColor callButtonRedColor] : [NSColor whiteColor];
[self updateColorForButton: muteAudioButton color: audioImageColor];
}
......@@ -1144,7 +1144,7 @@ CVPixelBufferRef pixelBufferPreview;
}
callModel->toggleMedia(callUid_, lrc::api::NewCallModel::Media::VIDEO);
muteVideoButton.image = currentCall.videoMuted ? [NSImage imageNamed:@"camera_off.png"] : [NSImage imageNamed:@"camera_on.png"];
NSColor* videoImageColor = currentCall.videoMuted ? [NSColor redColor] : [NSColor whiteColor];
NSColor* videoImageColor = currentCall.videoMuted ? [NSColor callButtonRedColor] : [NSColor whiteColor];
[self updateColorForButton: muteVideoButton color: videoImageColor];
}
......
......@@ -36,6 +36,7 @@
+ (NSColor*) presenceColor;
+ (NSColor*) unregisteredColor;
+ (NSColor*) buttonBlinkColorColor;
+ (NSColor*) callButtonRedColor;
- (NSColor *)lightenColorByValue:(float)value;
- (NSColor *)darkenColorByValue:(float)value;
......
......@@ -85,6 +85,10 @@ return [NSColor colorWithCalibratedRed:59/255.0 green:193/255.0 blue:211/255.0 a
return [NSColor colorWithCalibratedRed:76/255.0 green:217/255.0 blue:100/255.0 alpha:1];
}
+ (NSColor*) callButtonRedColor
{
return [NSColor colorWithCalibratedRed:144/255.0 green:27/255.0 blue:33/255.0 alpha:1];
}
- (NSColor *)lightenColorByValue:(float)value {
if(![self isKindOfClass:[NSCalibratedRGBColorSpace class]]) {
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment