-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAddAppDialog.xaml
More file actions
77 lines (72 loc) · 3.57 KB
/
Copy pathAddAppDialog.xaml
File metadata and controls
77 lines (72 loc) · 3.57 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
<Window x:Class="ScrollV.AddAppDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Add Application"
Height="220" Width="380"
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
WindowStartupLocation="CenterOwner"
ResizeMode="NoResize"
Icon="pack://application:,,,/Assets/appicon.ico">
<Border CornerRadius="16" Background="#1A1A2E">
<Border.Effect>
<DropShadowEffect Color="Black" BlurRadius="30" ShadowDepth="0" Opacity="0.5"/>
</Border.Effect>
<Grid Margin="24">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Header -->
<StackPanel>
<TextBlock Text="Exclude Application" FontSize="18" FontWeight="SemiBold"
Foreground="White"/>
<TextBlock Text="Enter the process name (e.g., 'chrome' or 'notepad')"
FontSize="12" Foreground="#A1A1AA" Margin="0,4,0,0"/>
</StackPanel>
<!-- Input -->
<TextBox x:Name="AppNameInput" Grid.Row="1"
Background="#0F0F23" Foreground="White"
BorderBrush="#3F3F5F" BorderThickness="1"
Padding="12,10" FontSize="14"
VerticalAlignment="Center"
CaretBrush="White"/>
<!-- Buttons -->
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="Cancel" Padding="16,10" Margin="0,0,8,0"
Background="#3F3F5F" Foreground="White"
BorderThickness="0" Cursor="Hand"
Click="CancelButton_Click">
<Button.Template>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" CornerRadius="8"
Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Button.Template>
</Button>
<Button Content="Add to Exclusions" Padding="16,10"
Foreground="White" BorderThickness="0" Cursor="Hand"
Click="AddButton_Click">
<Button.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#6366F1" Offset="0"/>
<GradientStop Color="#8B5CF6" Offset="1"/>
</LinearGradientBrush>
</Button.Background>
<Button.Template>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" CornerRadius="8"
Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Button.Template>
</Button>
</StackPanel>
</Grid>
</Border>
</Window>