-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.xaml
44 lines (38 loc) · 1.57 KB
/
settings.xaml
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
<!--Chameleon - An automated bright / dark mode toggle
service that follows the sun.
Authors:
Simon Olofsson
https://github.com/dotchetter
Michael Hällström
https://github.com/yousernaym
Date:
2021-03-17
Design for settings dialog window -->
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Name="Window"
SizeToContent="WidthAndHeight"
ResizeMode="NoResize"
Title = "Chameleon settings"
>
<Window.Resources>
<Style x:Key="ControlBaseStyle" TargetType="{x:Type Control}">
<Setter Property="Margin" Value="1"/>
</Style>
<Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource ControlBaseStyle}"/>
<Style TargetType="{x:Type RadioButton}" BasedOn="{StaticResource ControlBaseStyle}"/>
</Window.Resources>
<StackPanel Orientation = "Horizontal">
<StackPanel Margin="10">
<RadioButton x:Name = "useDarkRb" Content = "Always use dark theme"/>
<RadioButton x:Name = "useLightRb" Content = "Always use light theme"/>
<RadioButton x:Name = "sunRb" Content = "Let sun decide" IsChecked = "True"/>
</StackPanel>
<StackPanel Margin = "10">
<CheckBox x:Name="appsCb" Content="Changes apply to apps" IsChecked="True"/>
<CheckBox x:Name="systemCb" Content="Changes apply to system" IsChecked="True"/>
</StackPanel>
</StackPanel>
</Window>