Commit c68b8101 authored by Felix Paul Kühne's avatar Felix Paul Kühne

legacy macosx intf: make sure we display the right playback button graphic...

legacy macosx intf: make sure we display the right playback button graphic when drawing the video window
parent eaf80712
...@@ -71,8 +71,8 @@ ...@@ -71,8 +71,8 @@
[o_btn_playlist setToolTip: _NS("Playlist")]; [o_btn_playlist setToolTip: _NS("Playlist")];
[self setTitle: _NS("VLC media player")]; [self setTitle: _NS("VLC media player")];
o_img_play = [NSImage imageNamed: @"play_big"]; o_img_play = [NSImage imageNamed: @"play_embedded"];
o_img_pause = [NSImage imageNamed: @"pause_big"]; o_img_pause = [NSImage imageNamed: @"pause_embedded"];
[self controlTintChanged]; [self controlTintChanged];
[[NSNotificationCenter defaultCenter] addObserver: self [[NSNotificationCenter defaultCenter] addObserver: self
...@@ -112,8 +112,13 @@ ...@@ -112,8 +112,13 @@
if( [o_btn_play alternateImage] == o_img_play_pressed ) if( [o_btn_play alternateImage] == o_img_play_pressed )
b_playing = YES; b_playing = YES;
o_img_play_pressed = [NSImage imageNamed: @"play_big_down"]; if( [NSColor currentControlTint] == NSGraphiteControlTint ) {
o_img_pause_pressed = [NSImage imageNamed: @"pause_big_down"]; o_img_play_pressed = [NSImage imageNamed: @"play_embedded_graphite"];
o_img_pause_pressed = [NSImage imageNamed: @"pause_embedded_graphite"];
} else {
o_img_play_pressed = [NSImage imageNamed:@"play_embedded_blue"];
o_img_pause_pressed = [NSImage imageNamed:@"pause_embedded_blue"];
}
if( b_playing ) if( b_playing )
[o_btn_play setAlternateImage: o_img_play_pressed]; [o_btn_play setAlternateImage: o_img_play_pressed];
......
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