Created
October 15, 2014 19:53
-
-
Save nigel-sampson/57cb1ed7c73816cba706 to your computer and use it in GitHub Desktop.
Spectrum Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Application | |
x:Class="Spectrum.Demo.App" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:convereters="using:Spectrum.Universal.Converters"> | |
<Application.Resources> | |
<convereters:ComplimentConverter x:Key="Compliment" /> | |
<convereters:ShiftLightnessConverter x:Key="ShiftLightness" /> | |
<convereters:ShiftHueConverter x:Key="ShiftHue" /> | |
<Color x:Key="AccentColor">#FF0088D1</Color> | |
<SolidColorBrush x:Key="AccentBrush" Color="{StaticResource AccentColor}"/> | |
<SolidColorBrush x:Key="ComplimentaryAccentBrush" | |
Color="{Binding Source={StaticResource AccentColor}, Converter={StaticResource Compliment}}"/> | |
<SolidColorBrush x:Key="LightenedAccentBrush" | |
Color="{Binding Source={StaticResource AccentColor}, Converter={StaticResource ShiftLightness}, ConverterParameter=0.3}"/> | |
<SolidColorBrush x:Key="SecondaryAccentBrush" | |
Color="{Binding Source={StaticResource AccentColor}, Converter={StaticResource ShiftHue}, ConverterParameter=-120}"/> | |
</Application.Resources> | |
</Application> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment