Skip to content

Commit

Permalink
Hide mouse controls when not used
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheusxx committed Dec 22, 2012
1 parent ca000a3 commit 5e9aa70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -162,8 +162,7 @@

<Label x:Name="PlayerStateLabel" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Left"
Content="{Binding PlayerStateText}" Scroll="Auto"
Color="{ThemeResource TextColor}"
IsVisible="{Binding ShowMouseControls}"/>
Color="{ThemeResource TextColor}" />

<Label x:Name="CurrentProgramStartLabel" Grid.Column="1" Grid.Row="1"
Content="{Binding Source={StaticResource SlimTvClient}, Path=CurrentProgram.StartTime, Converter={StaticResource DateFormatConverter}}"
Expand Down
Expand Up @@ -19,7 +19,7 @@
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="100"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="80"/>
</Grid.RowDefinitions>

Expand All @@ -44,7 +44,7 @@
<Control Grid.Column="0" Grid.Row="3" x:Name="ProgressPresenter" Margin="10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Template="{DynamicResource ResourceKey=OSD_Progress_Template}"/>

<Grid Grid.Column="0" Grid.Row="2" HorizontalAlignment="Center" Opacity="0.94">
<Grid Grid.Column="0" Grid.Row="2" HorizontalAlignment="Center" Opacity="0.94" IsVisible="{Binding ShowMouseControls}">
<Canvas Height="80" Opacity="0.38" Width="1062" Margin="10">
<Path Data="M1490.5,891.5C1490.5,919.666,1467.666,942.5,1439.5,942.5L479.5,942.5C451.333,942.5,428.5,919.666,428.5,891.5C428.5,863.334,451.333,840.5,479.5,840.5L1439.5,840.5C1467.666,840.5,1490.5,863.334,1490.5,891.5z"
Fill="#FFE6EFEF" Height="80" Canvas.Left="-2.5" Stretch="Fill" Stroke="Black" StrokeThickness="5" StrokeLineJoin="Miter" Canvas.Top="-2.5" Width="1067" Opacity="0.905"/>
Expand Down

0 comments on commit 5e9aa70

Please sign in to comment.