Skip to content

Commit

Permalink
macosx: implemented pressed state for the effects button (bright UI) …
Browse files Browse the repository at this point in the history
…(refs #7408)
  • Loading branch information
fkuehne committed Sep 16, 2012
1 parent 17bf09b commit a38092c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ EXTRA_DIST += \
extras/package/macosx/Resources/mainwindow/[email protected] \
extras/package/macosx/Resources/mainwindow/effects-one-button-blue.png \
extras/package/macosx/Resources/mainwindow/[email protected] \
extras/package/macosx/Resources/mainwindow/effects-one-button-pressed.png \
extras/package/macosx/Resources/mainwindow/[email protected] \
extras/package/macosx/Resources/mainwindow/effects-one-button.png \
extras/package/macosx/Resources/mainwindow/[email protected] \
extras/package/macosx/Resources/mainwindow/forward-3btns-pressed.png \
Expand Down
6 changes: 3 additions & 3 deletions extras/package/macosx/Resources/English.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
<integer value="21"/>
<integer value="4948"/>
<integer value="4596"/>
<integer value="4756"/>
<integer value="4948"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
Expand Down Expand Up @@ -776,7 +776,7 @@
<reference key="NSSuperview" ref="129808516"/>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="424650866">
<int key="NSCellFlags">-2080374784</int>
<int key="NSCellFlags">67108864</int>
<int key="NSCellFlags2">134217728</int>
<string key="NSContents"/>
<reference key="NSSupport" ref="188716167"/>
Expand Down
8 changes: 8 additions & 0 deletions extras/package/macosx/vlc.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@
CCD83E4D13FEA143004F1652 /* VideoEffects.xib in Resources */ = {isa = PBXBuildFile; fileRef = CCD83E4013FEA143004F1652 /* VideoEffects.xib */; };
CCD83E4E13FEA143004F1652 /* Wizard.xib in Resources */ = {isa = PBXBuildFile; fileRef = CCD83E4213FEA143004F1652 /* Wizard.xib */; };
CCDB535D13E97D3500A1782F /* dropzone-background.png in Resources */ = {isa = PBXBuildFile; fileRef = CCDB535C13E97D3500A1782F /* dropzone-background.png */; };
CCE8BAC4160615D9006741FB /* effects-one-button-pressed.png in Resources */ = {isa = PBXBuildFile; fileRef = CCE8BAC2160615D9006741FB /* effects-one-button-pressed.png */; };
CCE8BAC5160615D9006741FB /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = CCE8BAC3160615D9006741FB /* [email protected] */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
Expand Down Expand Up @@ -966,6 +968,8 @@
CCDBA3B313D32E200006127B /* macosx.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = macosx.m; path = ../../../modules/video_output/macosx.m; sourceTree = "<group>"; };
CCE8BABC16060542006741FB /* Windows.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = Windows.h; path = ../../../modules/gui/macosx/Windows.h; sourceTree = "<group>"; };
CCE8BABD16060542006741FB /* Windows.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = Windows.m; path = ../../../modules/gui/macosx/Windows.m; sourceTree = "<group>"; };
CCE8BAC2160615D9006741FB /* effects-one-button-pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "effects-one-button-pressed.png"; path = "Resources/mainwindow/effects-one-button-pressed.png"; sourceTree = "<group>"; };
CCE8BAC3160615D9006741FB /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "[email protected]"; path = "Resources/mainwindow/[email protected]"; sourceTree = "<group>"; };
CCF0777913659A8000AF19FD /* SPInvocationGrabbing.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SPInvocationGrabbing.h; path = ../../../modules/gui/macosx/SPInvocationGrabbing.h; sourceTree = "<group>"; };
CCF0777A13659A8000AF19FD /* SPInvocationGrabbing.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = SPInvocationGrabbing.m; path = ../../../modules/gui/macosx/SPInvocationGrabbing.m; sourceTree = "<group>"; };
CCF0777B13659A8000AF19FD /* SPMediaKeyTap.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SPMediaKeyTap.h; path = ../../../modules/gui/macosx/SPMediaKeyTap.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1365,6 +1369,8 @@
CC04333013B28B8200D7D52E /* effects-double-buttons.png */,
CC04333113B28B8200D7D52E /* effects-one-button-blue.png */,
CC04333213B28B8200D7D52E /* effects-one-button.png */,
CCE8BAC2160615D9006741FB /* effects-one-button-pressed.png */,
CCE8BAC3160615D9006741FB /* [email protected] */,
CC04333713B28B8200D7D52E /* fullscreen-double-buttons-pressed.png */,
CC04333813B28B8200D7D52E /* fullscreen-double-buttons.png */,
CC0F725015063C820086B6A0 /* fullscreen-one-button-pressed.png */,
Expand Down Expand Up @@ -2203,6 +2209,8 @@
CC16700315F5178B0088201B /* forward-6btns-dark.png in Resources */,
CC16700415F5178B0088201B /* [email protected] in Resources */,
CC461F75160084A10022423C /* SharedDialogs.xib in Resources */,
CCE8BAC4160615D9006741FB /* effects-one-button-pressed.png in Resources */,
CCE8BAC5160615D9006741FB /* [email protected] in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
2 changes: 1 addition & 1 deletion modules/gui/macosx/MainWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ - (void)awakeFromNib
[o_volume_up_btn setImage: [NSImage imageNamed:@"volume-high"]];
if (b_nativeFullscreenMode) {
[o_effects_btn setImage: [NSImage imageNamed:@"effects-one-button"]];
[o_effects_btn setAlternateImage: [NSImage imageNamed:@"effects-one-button-blue"]];
[o_effects_btn setAlternateImage: [NSImage imageNamed:@"effects-one-button-pressed"]];
} else {
[o_effects_btn setImage: [NSImage imageNamed:@"effects-double-buttons"]];
[o_effects_btn setAlternateImage: [NSImage imageNamed:@"effects-double-buttons-pressed"]];
Expand Down

0 comments on commit a38092c

Please sign in to comment.