-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKickSettingsWindow.xaml
More file actions
88 lines (80 loc) · 4.32 KB
/
Copy pathKickSettingsWindow.xaml
File metadata and controls
88 lines (80 loc) · 4.32 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<Window x:Class="VioletTooth.KickSettingsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Auto-kick settings"
Icon="/app.ico"
Height="560"
Width="720"
MinHeight="480"
MinWidth="640"
Background="#F4F6F8"
WindowStartupLocation="CenterOwner">
<Grid Margin="18">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Margin="0,0,0,12">
<TextBlock x:Name="TitleText" FontSize="20" FontWeight="SemiBold"/>
<TextBlock x:Name="SubtitleText" Margin="0,4,0,0" Foreground="#656D76"/>
</StackPanel>
<Border Grid.Row="1" Background="White" CornerRadius="10" Padding="14" Margin="0,0,0,12">
<StackPanel>
<TextBlock x:Name="GlobalTitle" FontWeight="SemiBold" FontSize="15" Margin="0,0,0,8"/>
<CheckBox x:Name="GlobalEnabled" Margin="0,0,0,8"/>
<DockPanel Margin="0,0,0,8">
<TextBlock x:Name="IdleOverLabel" VerticalAlignment="Center" Margin="0,0,8,0"/>
<TextBox x:Name="GlobalIdleValue" Width="70" Margin="0,0,8,0"/>
<ComboBox x:Name="GlobalIdleUnit" Width="100" SelectedIndex="1"/>
<TextBlock x:Name="ThenKickHint" VerticalAlignment="Center" Margin="8,0,0,0" Foreground="#656D76"/>
</DockPanel>
<CheckBox x:Name="GlobalBootKick"/>
</StackPanel>
</Border>
<Border Grid.Row="2" Background="White" CornerRadius="10" Padding="14">
<DockPanel>
<DockPanel DockPanel.Dock="Top" Margin="0,0,0,8">
<StackPanel Orientation="Horizontal" DockPanel.Dock="Right">
<Button x:Name="AddRuleButton" Margin="0,0,8,0" Padding="10,5" Click="AddRule_Click"/>
<Button x:Name="DeleteRuleButton" Padding="10,5" Click="DeleteRule_Click"/>
</StackPanel>
<TextBlock x:Name="NameRulesTitle" FontWeight="SemiBold" FontSize="15" VerticalAlignment="Center"/>
</DockPanel>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1.1*"/>
<ColumnDefinition Width="12"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ListBox x:Name="RuleList"
Grid.Column="0"
DisplayMemberPath="Summary"
SelectionChanged="RuleList_SelectionChanged"/>
<StackPanel Grid.Column="2" x:Name="RuleEditor" IsEnabled="False">
<CheckBox x:Name="RuleEnabled" Margin="0,0,0,8"/>
<TextBlock x:Name="NameContainsLabel" Margin="0,0,0,4"/>
<TextBox x:Name="RuleNameContains" Margin="0,0,0,10"/>
<TextBlock x:Name="IdleTimeoutLabel" Margin="0,0,0,4"/>
<DockPanel Margin="0,0,0,10">
<TextBox x:Name="RuleIdleValue" Width="70" Margin="0,0,8,0"/>
<ComboBox x:Name="RuleIdleUnit" Width="100" SelectedIndex="1"/>
</DockPanel>
<CheckBox x:Name="RuleBootKick" Margin="0,0,0,10"/>
<Button x:Name="ApplyRuleButton" Padding="10,5" HorizontalAlignment="Left" Click="ApplyRule_Click"/>
</StackPanel>
</Grid>
</DockPanel>
</Border>
<TextBlock x:Name="HintText"
Grid.Row="3"
Margin="0,10,0,0"
Foreground="#656D76"/>
<StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,14,0,0">
<Button x:Name="CancelButton" Width="88" Margin="0,0,8,0" Padding="10,6" Click="Cancel_Click"/>
<Button x:Name="SaveButton" Width="88" Padding="10,6" Click="Save_Click"/>
</StackPanel>
</Grid>
</Window>