[vlc-commits] macosx: implemented pressed state for the effects button (dark UI) ( close #7408)
Felix Paul Kühne
git at videolan.org
Tue Sep 25 22:57:37 CEST 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Sep 25 22:45:20 2012 +0200| [c62eab3d5c33caf6e602f11acdbbe5dcc0ce4941] | committer: Felix Paul Kühne
macosx: implemented pressed state for the effects button (dark UI) (close #7408)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c62eab3d5c33caf6e602f11acdbbe5dcc0ce4941
---
Makefile.am | 2 ++
extras/package/macosx/vlc.xcodeproj/project.pbxproj | 8 ++++++++
modules/gui/macosx/ControlsBar.m | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 64facfe..becb0f9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -336,6 +336,8 @@ EXTRA_DIST += \
extras/package/macosx/Resources/mainwindow_dark/effects-double-buttons_dark at 2x.png \
extras/package/macosx/Resources/mainwindow_dark/effects-one-button-blue_dark.png \
extras/package/macosx/Resources/mainwindow_dark/effects-one-button-blue_dark at 2x.png \
+ extras/package/macosx/Resources/mainwindow_dark/effects-one-button-pressed-dark.png \
+ extras/package/macosx/Resources/mainwindow_dark/effects-one-button-pressed-dark at 2x.png \
extras/package/macosx/Resources/mainwindow_dark/effects-one-button_dark.png \
extras/package/macosx/Resources/mainwindow_dark/effects-one-button_dark at 2x.png \
extras/package/macosx/Resources/mainwindow_dark/forward-3btns-dark-pressed.png \
diff --git a/extras/package/macosx/vlc.xcodeproj/project.pbxproj b/extras/package/macosx/vlc.xcodeproj/project.pbxproj
index e80c545..b7cd8ea 100644
--- a/extras/package/macosx/vlc.xcodeproj/project.pbxproj
+++ b/extras/package/macosx/vlc.xcodeproj/project.pbxproj
@@ -7,6 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
+ 7DFFA16C16124F38001AF89F /* effects-one-button-pressed-dark.png in Resources */ = {isa = PBXBuildFile; fileRef = 7DFFA16A16124F38001AF89F /* effects-one-button-pressed-dark.png */; };
+ 7DFFA16D16124F38001AF89F /* effects-one-button-pressed-dark at 2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 7DFFA16B16124F38001AF89F /* effects-one-button-pressed-dark at 2x.png */; };
CC04323D13B246DF00D7D52E /* effects-double-buttons_dark.png in Resources */ = {isa = PBXBuildFile; fileRef = CC04321313B246DF00D7D52E /* effects-double-buttons_dark.png */; };
CC04323E13B246DF00D7D52E /* effects-double-buttons-blue_dark.png in Resources */ = {isa = PBXBuildFile; fileRef = CC04321413B246DF00D7D52E /* effects-double-buttons-blue_dark.png */; };
CC04323F13B246DF00D7D52E /* effects-double-buttons-pressed_dark.png in Resources */ = {isa = PBXBuildFile; fileRef = CC04321513B246DF00D7D52E /* effects-double-buttons-pressed_dark.png */; };
@@ -461,6 +463,8 @@
5CCED71314C0D4A90057F8D1 /* ExtensionsManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ExtensionsManager.m; path = ../../../modules/gui/macosx/ExtensionsManager.m; sourceTree = SOURCE_ROOT; };
5CCED71414C0D4A90057F8D1 /* VLCUIWidgets.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = VLCUIWidgets.h; path = ../../../modules/gui/macosx/VLCUIWidgets.h; sourceTree = SOURCE_ROOT; };
5CCED71514C0D4A90057F8D1 /* VLCUIWidgets.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = VLCUIWidgets.m; path = ../../../modules/gui/macosx/VLCUIWidgets.m; sourceTree = SOURCE_ROOT; };
+ 7DFFA16A16124F38001AF89F /* effects-one-button-pressed-dark.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "effects-one-button-pressed-dark.png"; path = "Resources/mainwindow_dark/effects-one-button-pressed-dark.png"; sourceTree = "<group>"; };
+ 7DFFA16B16124F38001AF89F /* effects-one-button-pressed-dark at 2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "effects-one-button-pressed-dark at 2x.png"; path = "Resources/mainwindow_dark/effects-one-button-pressed-dark at 2x.png"; sourceTree = "<group>"; };
8E49720006417F6800370C9F /* playlistinfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = playlistinfo.h; path = ../../../modules/gui/macosx/playlistinfo.h; sourceTree = SOURCE_ROOT; };
8E49720106417F6800370C9F /* playlistinfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = playlistinfo.m; path = ../../../modules/gui/macosx/playlistinfo.m; sourceTree = SOURCE_ROOT; };
8E55FB7F0459B0FD00FB3317 /* output.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = output.h; path = ../../../modules/gui/macosx/output.h; sourceTree = SOURCE_ROOT; };
@@ -1271,6 +1275,8 @@
CC919060159B4BB800E634A7 /* effects-double-buttons-pressed_dark at 2x.png */,
CC919061159B4BB800E634A7 /* effects-one-button_dark at 2x.png */,
CC919062159B4BB800E634A7 /* effects-one-button-blue_dark at 2x.png */,
+ 7DFFA16A16124F38001AF89F /* effects-one-button-pressed-dark.png */,
+ 7DFFA16B16124F38001AF89F /* effects-one-button-pressed-dark at 2x.png */,
CC919065159B4BB800E634A7 /* fullscreen-double-buttons_dark at 2x.png */,
CC919066159B4BB800E634A7 /* fullscreen-double-buttons-pressed_dark at 2x.png */,
CC919067159B4BB800E634A7 /* fullscreen-one-button-pressed_dark at 2x.png */,
@@ -2211,6 +2217,8 @@
CC461F75160084A10022423C /* SharedDialogs.xib in Resources */,
CCE8BAC4160615D9006741FB /* effects-one-button-pressed.png in Resources */,
CCE8BAC5160615D9006741FB /* effects-one-button-pressed at 2x.png in Resources */,
+ 7DFFA16C16124F38001AF89F /* effects-one-button-pressed-dark.png in Resources */,
+ 7DFFA16D16124F38001AF89F /* effects-one-button-pressed-dark at 2x.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
diff --git a/modules/gui/macosx/ControlsBar.m b/modules/gui/macosx/ControlsBar.m
index 1057341..b2acdee 100644
--- a/modules/gui/macosx/ControlsBar.m
+++ b/modules/gui/macosx/ControlsBar.m
@@ -469,7 +469,7 @@
if (b_nativeFullscreenMode) {
[o_effects_btn setImage: [NSImage imageNamed:@"effects-one-button_dark"]];
- [o_effects_btn setAlternateImage: [NSImage imageNamed:@"effects-one-button-blue_dark"]];
+ [o_effects_btn setAlternateImage: [NSImage imageNamed:@"effects-one-button-pressed-dark"]];
} else {
[o_effects_btn setImage: [NSImage imageNamed:@"effects-double-buttons_dark"]];
[o_effects_btn setAlternateImage: [NSImage imageNamed:@"effects-double-buttons-pressed_dark"]];
More information about the vlc-commits
mailing list