Skip to content

Commit

Permalink
Shadow effect added
Browse files Browse the repository at this point in the history
  • Loading branch information
philippn committed Sep 21, 2014
1 parent 4bcf999 commit 948193e
Showing 1 changed file with 40 additions and 28 deletions.
68 changes: 40 additions & 28 deletions NowPlayingKiosk/Skin/skin.xaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,44 @@
<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Grid.Background>
<!-- Benutze 'background.png' aus dem Skin-Verzeichnis -->
<!-- ImageBrush ImageSource="{Binding Path=BackgroundImage}"/ -->
<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Grid.Background>
<!-- Benutze 'background.png' aus dem Skin-Verzeichnis -->
<!-- ImageBrush ImageSource="{Binding Path=BackgroundImage}"/ -->

<!-- Benutze Farbverlauf (von oben nach unten) -->
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Color="#0A3C10" Offset="0.0" />
<GradientStop Color="#6B9D66" Offset="1.0" />
</LinearGradientBrush>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="80*" />
<RowDefinition Height="20*" />
</Grid.RowDefinitions>
<!-- Benutze Farbverlauf (von oben nach unten) -->
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Color="#0A3C10" Offset="0.0" />
<GradientStop Color="#6B9D66" Offset="1.0" />
</LinearGradientBrush>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="80*" />
<RowDefinition Height="20*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="5*" />
<ColumnDefinition Width="90*" />
<ColumnDefinition Width="5*" />
</Grid.ColumnDefinitions>
<Grid Grid.Row="0" Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="5*" />
<ColumnDefinition Width="90*" />
<ColumnDefinition Width="5*" />
<ColumnDefinition Width="3*" />
<ColumnDefinition Width="3*" />
</Grid.ColumnDefinitions>
<Grid Grid.Row="0" Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" />
<ColumnDefinition Width="3*" />
</Grid.ColumnDefinitions>
<Image Margin="10" Grid.Row="0" Grid.Column="0" Source="{Binding Path=CoverImage}" VerticalAlignment="Bottom" />
<WrapPanel Margin="10" Grid.Row="0" Grid.Column="1" Orientation="Vertical" VerticalAlignment="Bottom">
<TextBlock Text="{Binding Path=Artist}" TextWrapping="Wrap" FontSize="50" FontFamily="Courier New, Courier, monospace" FontWeight="Bold" Foreground="#C2EEBE"/>
<TextBlock Text="{Binding Path=Title}" TextWrapping="Wrap" FontSize="50" FontFamily="Courier New, Courier, monospace" FontWeight="Bold" Foreground="#FFFF00"/>
</WrapPanel>
</Grid>
<Image Margin="10" Grid.Row="0" Grid.Column="0" Source="{Binding Path=CoverImage}" VerticalAlignment="Bottom">
<Image.Effect>
<DropShadowEffect ShadowDepth="10" Direction="330" Color="Black" Opacity="0.5" BlurRadius="4" />
</Image.Effect>
</Image>
<WrapPanel Margin="10" Grid.Row="0" Grid.Column="1" Orientation="Vertical" VerticalAlignment="Bottom">
<TextBlock Text="{Binding Path=Artist}" TextWrapping="Wrap" FontSize="50" FontFamily="Courier New, Courier, monospace" FontWeight="Bold" Foreground="#C2EEBE">
<TextBlock.Effect>
<DropShadowEffect ShadowDepth="10" Direction="330" Color="Black" Opacity="0.5" BlurRadius="4" />
</TextBlock.Effect>
</TextBlock>
<TextBlock Text="{Binding Path=Title}" TextWrapping="Wrap" FontSize="50" FontFamily="Courier New, Courier, monospace" FontWeight="Bold" Foreground="#FFFF00">
<TextBlock.Effect>
<DropShadowEffect ShadowDepth="10" Direction="330" Color="Black" Opacity="0.5" BlurRadius="4" />
</TextBlock.Effect>
</TextBlock>
</WrapPanel>
</Grid>
</Grid>

0 comments on commit 948193e

Please sign in to comment.