Skip to content
Permalink
Browse files

Added example.

  • Loading branch information...
Raffael Hannemann
Raffael Hannemann committed Nov 18, 2014
1 parent c27fc7d commit a6e0d6b312fad657349ab5b15087cdbdcc53ab20
@@ -8,6 +8,21 @@ Yes, the names are a little ironic.
Example
-------

´´´objc
// Let's define two handlers, which switch between the Vibrant Dark and the Vibrant Light appearance
[WAYTheDarkSide welcomeApplicationWithBlock:^{
[weakSelf.window setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameVibrantDark]];
[weakSelf.contentView setMaterial:NSVisualEffectMaterialDark];
[self.label setStringValue:@"Dark!"];
} immediately:YES];

[WAYTheDarkSide outcastApplicationWithBlock:^{
[weakSelf.window setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameVibrantLight]];
[weakSelf.contentView setMaterial:NSVisualEffectMaterialLight];
[self.label setStringValue:@"Light!"];
} immediately:YES];
´´´

![WAYTheDarkSide](WAYTheDarkSide%20Example.png)

Usage
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>19767427-BAA3-4A61-9303-7EEE175189F3</string>
<key>IDESourceControlProjectName</key>
<string>WAYTheDarkSideDemo</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>0A7C3E0462563EDE48045CD5349ABC4796F61B03</key>
<string>https://github.com/weAreYeah/WAYTheDarkSide.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>WAYTheDarkSideDemo.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>0A7C3E0462563EDE48045CD5349ABC4796F61B03</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/weAreYeah/WAYTheDarkSide.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>0A7C3E0462563EDE48045CD5349ABC4796F61B03</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>0A7C3E0462563EDE48045CD5349ABC4796F61B03</string>
<key>IDESourceControlWCCName</key>
<string>WAYTheDarkSide</string>
</dict>
</array>
</dict>
</plist>

0 comments on commit a6e0d6b

Please sign in to comment.
You can’t perform that action at this time.