-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingsWindow.xaml
More file actions
66 lines (60 loc) · 5.9 KB
/
SettingsWindow.xaml
File metadata and controls
66 lines (60 loc) · 5.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<Window x:Class="DualSenseBatteryMonitor.SettingsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:DualSenseBatteryMonitor"
mc:Ignorable="d"
Title="DualSense Battery Monitor Settings" Height="650" Width="400" WindowStartupLocation="CenterScreen" Foreground="White" WindowStyle="SingleBorderWindow" SnapsToDevicePixels="True" Topmost="False" Focusable="True" IsHitTestVisible="True" ResizeMode="NoResize" ShowInTaskbar="True" Icon="/icons/window/BatteryMonitor.ico" ShowActivated="True">
<Window.Background>
<LinearGradientBrush x:Name="gradient_background" EndPoint="0,0" StartPoint="1,1" SpreadMethod="Pad">
<GradientStop Color="#FF00439C" Offset="0"/>
<GradientStop Color="#FF1F1F1F" Offset="1"/>
</LinearGradientBrush>
</Window.Background>
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="Settings" FontSize="32" FontWeight="Bold" Foreground="White" Margin="0,0,0,10"/>
<StackPanel Grid.Row="1">
<CheckBox x:Name="RunOnStartupCheckBox" Content="Run on startup" FontSize="18" Foreground="White" Checked="RunOnStartupCheckBox_Changed" Unchecked="RunOnStartupCheckBox_Changed" Margin="0,10,0,0"/>
<TextBlock Text="Automatically launch the battery monitor when Windows starts" FontSize="12" Foreground="#FFB0B0B0" Margin="22,2,0,0" TextWrapping="Wrap"/>
<CheckBox x:Name="ShowLowBatteryCheckBox" Content="Show low battery warning continuously" FontSize="18" Foreground="White" Checked="ShowLowBatteryCheckBox_Changed" Unchecked="ShowLowBatteryCheckBox_Changed" Margin="0,10,0,0"/>
<TextBlock Text="Keep the low battery warning visible until the controller is charged or the battery level is no longer low" FontSize="12" Foreground="#FFB0B0B0" Margin="22,2,0,0" TextWrapping="Wrap"/>
<CheckBox x:Name="ShowBatteryTimeLeftCheckBox" Content="Show battery time remaining" FontSize="18" Foreground="White" Checked="ShowBatteryTimeLeftCheckBox_Changed" Unchecked="ShowBatteryTimeLeftCheckBox_Changed" Margin="0,10,0,0"/>
<TextBlock x:Name="TextBlock_ShowBatteryTimeLeftDesc" Text="Shows an estimate of how much battery time is left based on previously known drain rate" FontSize="12" Foreground="#FFB0B0B0" Margin="22,2,0,0" TextWrapping="Wrap"/>
<CheckBox x:Name="ShowBatteryFullDrainCheckBox" Content="Show full charge duration" FontSize="18" Foreground="White" Checked="ShowBatteryFullDrainCheckBox_Changed" Unchecked="ShowBatteryFullDrainCheckBox_Changed" Margin="0,10,0,0"/>
<TextBlock x:Name="TextBlock_ShowBatteryFullDrainDesc" Text="Shows an estimate of how long a full charge lasts based on the observed drain rate" FontSize="12" Foreground="#FFB0B0B0" Margin="22,2,0,0" TextWrapping="Wrap"/>
<CheckBox x:Name="ShowErrorCheckBox" Content="Show error warning continuously" FontSize="18" Foreground="White" Checked="ShowErrorCheckBox_Changed" Unchecked="ShowErrorCheckBox_Changed" Margin="0,10,0,0"/>
<TextBlock Text="Keep error warnings visible until the issue is resolved" FontSize="12" Foreground="#FFB0B0B0" Margin="22,2,0,0" TextWrapping="Wrap"/>
<CheckBox x:Name="DontSaveBatteryStatsCheckBox" Content="Don't save battery stats" FontSize="18" Foreground="White" Checked="DontSaveBatteryStatsCheckBox_Changed" Unchecked="DontSaveBatteryStatsCheckBox_Changed" Margin="0,10,0,0"/>
<TextBlock Text="Disables saving battery drain data to disk. Any saved stats will be deleted." FontSize="12" Foreground="#FFB0B0B0" Margin="22,2,0,0" TextWrapping="Wrap"/>
<CheckBox x:Name="WriteExceptionsCheckBox" Content="Write exceptions/errors in log file" FontSize="18" Foreground="White" Checked="WriteExceptionsCheckBox_Changed" Unchecked="WriteExceptionsCheckBox_Changed" Margin="0,10,0,0"/>
<TextBlock Text="Save error details to a log file when an error/exception occurs" FontSize="12" Foreground="#FFB0B0B0" Margin="22,2,0,0" TextWrapping="Wrap"/>
</StackPanel>
<StackPanel Grid.Row="2" Orientation="Vertical" HorizontalAlignment="Center">
<Grid>
<TextBlock x:Name="VersionTextBlock" Text="Version 9.9.9" FontSize="12" Foreground="#FFB0B0B0" HorizontalAlignment="Center"/>
<Image x:Name="icon_NewUpdateAvaiable" Height="15" Width="15" Stretch="UniformToFill" Source="{StaticResource NewUpdateIconDrawingImage}" Panel.ZIndex="2" Cursor="Help" ToolTip="New version available" HorizontalAlignment="Right" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed">
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform Y="-5" X="6"/>
</TransformGroup>
</Image.RenderTransform>
</Image>
</Grid>
<TextBlock Text="by PixelIndieDev" FontSize="11" Foreground="#FFB0B0B0" HorizontalAlignment="Center"/>
<TextBlock FontSize="11" Foreground="#FFB0B0B0" HorizontalAlignment="Center" Cursor="Hand">
<Hyperlink NavigateUri="https://github.com/PixelIndieDev/DualSenseBatteryMonitor" RequestNavigate="Hyperlink_RequestNavigate" Foreground="#FFDEDEDE">
Visit Github Page
</Hyperlink>
</TextBlock>
</StackPanel>
</Grid>
</Window>