Commit c7e23f14 authored by Daksh Shah's avatar Daksh Shah Committed by David Fuhrmann

macosx: Make toolTips on Full Screen consistent

Now the tooltips which are shown in the Normal View are same
as the ones which are shown in Full-Screen View. Adapted the shorter version.
And also, changed the Normal View toolTip of "Fullscreen" to "Enter fullscreen"
fixes #19993
Signed-off-by: default avatarDavid Fuhrmann <dfuhrmann@videolan.org>
parent b8c7cf13
......@@ -78,7 +78,7 @@
if (_darkInterface)
[self.timeSlider setSliderStyleDark];
[self.fullscreenButton setToolTip: _NS("Fullscreen")];
[self.fullscreenButton setToolTip: _NS("Enter fullscreen")];
[[self.fullscreenButton cell] accessibilitySetOverrideValue:[self.fullscreenButton toolTip] forAttribute:NSAccessibilityDescriptionAttribute];
if (!_darkInterface) {
......
......@@ -92,7 +92,7 @@ static NSString *kAssociatedFullscreenRect = @"VLCFullscreenAssociatedWindowRect
forAttribute:NSAccessibilityTitleAttribute]; \
[target accessibilitySetOverrideValue:desc \
forAttribute:NSAccessibilityDescriptionAttribute]; \
[target setToolTip:desc];
[target setToolTip:title];
- (void)setupControls
{
......@@ -113,8 +113,8 @@ static NSString *kAssociatedFullscreenRect = @"VLCFullscreenAssociatedWindowRect
_NS("Backward"),
_NS("Seek backward"));
setupButton(_fullscreenButton,
_NS("Toggle Fullscreen mode"),
_NS("Leave fullscreen mode"));
_NS("Leave fullscreen"),
_NS("Leave fullscreen"));
setupButton(_volumeSlider,
_NS("Volume"),
_NS("Adjust the volume"));
......@@ -221,11 +221,13 @@ static NSString *kAssociatedFullscreenRect = @"VLCFullscreenAssociatedWindowRect
- (void)setPlay
{
[_playPauseButton setState:NSOffState];
[_playPauseButton setToolTip: _NS("Play")];
}
- (void)setPause
{
[_playPauseButton setState:NSOnState];
[_playPauseButton setToolTip: _NS("Pause")];
}
- (void)setStreamTitle:(NSString *)title
......@@ -292,6 +294,7 @@ static NSString *kAssociatedFullscreenRect = @"VLCFullscreenAssociatedWindowRect
- (void)setVolumeLevel:(int)value
{
[_volumeSlider setIntValue:value];
[_volumeSlider setToolTip: [NSString stringWithFormat:_NS("Volume: %i %%"), (value*200)/AOUT_VOLUME_MAX]];
}
#pragma mark -
......
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