fix design of alert tone widget; fix incorrect storage of the key for placement (should be the filename not the name);

pull/1/head
Bryan Biedenkapp 11 months ago
parent 09020a440c
commit b6096aa0b2

@ -2,17 +2,18 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="55" Width="105" Height="55" Width="105"
DataContext="{Binding RelativeSource={RelativeSource Self}}" Background="#FF848484"> DataContext="{Binding RelativeSource={RelativeSource Self}}">
<UserControl.Effect> <UserControl.Effect>
<DropShadowEffect ShadowDepth="1" BlurRadius="16" Color="#FF686767" Opacity="0.3" /> <DropShadowEffect ShadowDepth="1" BlurRadius="16" Color="#FF686767" Opacity="0.3" />
</UserControl.Effect> </UserControl.Effect>
<Grid Margin="1,1,1,1" Background="#FF00BC48"> <Border BorderBrush="LightGray" BorderThickness="1,1,1,1" CornerRadius="8" Background="#FF00BC48">
<Grid Margin="2.5" Background="#FF00BC48">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="31*"/> <RowDefinition Height="31*"/>
<RowDefinition Height="39*"/> <RowDefinition Height="39*"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Button Click="PlayAlert_Click" VerticalContentAlignment="Bottom" HorizontalAlignment="Left" Margin="46,21,0,0" VerticalAlignment="Top" Height="28" Width="48" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" FontSize="10" FontFamily="Arial" Grid.RowSpan="2"> <Button Click="PlayAlert_Click" VerticalContentAlignment="Bottom" HorizontalAlignment="Left" Margin="46,20,0,0" VerticalAlignment="Top" Height="28" Width="48" BorderBrush="#FFC1C1C1" BorderThickness="1,1,1,1" FontSize="10" FontFamily="Arial" Grid.RowSpan="2">
<Button.Resources> <Button.Resources>
<Style TargetType="{x:Type Border}"> <Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="2"/> <Setter Property="CornerRadius" Value="2"/>
@ -28,4 +29,5 @@
</Button> </Button>
<TextBlock HorizontalAlignment="Center" FontWeight="Bold" FontSize="10" TextWrapping="Wrap" Text="{Binding AlertFileName}" TextAlignment="Center" VerticalAlignment="Top" Width="100" Background="{x:Null}" Height="24" Margin="0,4,0,0" Grid.RowSpan="2" Foreground="White"/> <TextBlock HorizontalAlignment="Center" FontWeight="Bold" FontSize="10" TextWrapping="Wrap" Text="{Binding AlertFileName}" TextAlignment="Center" VerticalAlignment="Top" Width="100" Background="{x:Null}" Height="24" Margin="0,4,0,0" Grid.RowSpan="2" Foreground="White"/>
</Grid> </Grid>
</Border>
</UserControl> </UserControl>

@ -1905,7 +1905,7 @@ namespace dvmconsole
{ {
double x = Canvas.GetLeft(alertTone); double x = Canvas.GetLeft(alertTone);
double y = Canvas.GetTop(alertTone); double y = Canvas.GetTop(alertTone);
settingsManager.UpdateAlertTonePosition(alertTone.AlertFileName, x, y); settingsManager.UpdateAlertTonePosition(alertTone.AlertFilePath, x, y);
ChannelBox_MouseRightButtonUp(sender, e); ChannelBox_MouseRightButtonUp(sender, e);
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.