This repository has been archived by the owner on Jan 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
93 lines (80 loc) · 4.34 KB
/
MainWindow.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
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
89
90
91
92
93
<Window x:Class="AnilistListConverter.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
Title="AnilistListConverter"
Height="450"
Width="800"
ResizeMode="NoResize"
AllowsTransparency="True"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
Background="Transparent">
<Grid>
<!-- Define rows and columns -->
<Grid.RowDefinitions>
<RowDefinition Height="*" /> <!-- Main Input Row -->
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" /> <!-- Single Column spanning entire width -->
</Grid.ColumnDefinitions>
<!-- Border spanning the entire grid -->
<Border CornerRadius="20"
Padding="20"
Style="{StaticResource RoundedBorderStyle}">
<!-- Ensure content is centered within the Border -->
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/> <!-- Title Row -->
<RowDefinition Height="*" /> <!-- Main Input Row -->
<RowDefinition Height="Auto"/> <!-- Progress Bar Row -->
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" /> <!-- Single Column spanning entire width -->
</Grid.ColumnDefinitions>
<!-- Exit Button -->
<Button Grid.Row="0"
x:Name="ExitButton"
Content="X"
FontSize="16"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Style="{StaticResource ExitButtonStyle}"
Click="ExitButton_Click"/>
<!-- Title -->
<TextBlock Grid.Row="0" Text="Anilist List Converter" FontSize="36" Foreground="White"
HorizontalAlignment="Center" VerticalAlignment="Top" Margin="10" />
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="*"/> <!-- Title Row -->
<RowDefinition Height="*"/> <!-- Main Input Row -->
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" /> <!-- Single Column spanning entire width -->
</Grid.ColumnDefinitions>
<Button Grid.Row="0" x:Name="ApiButton" Width="300" Height="35"
Content="Click to get Api Token" FontSize="18"
Click="ApiButton_OnClick"/>
<!-- Main Input -->
<TextBox Grid.Row="1" x:Name="ApiKey" Width="300" Height="35"
HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10"
IsEnabled="False"/>
<ToggleButton Grid.Row="2" x:Name="ToggleList" Width="300" Height="35" IsEnabled="False"
Content="Move Manga to Anime"
Click="ToggleList_OnClick"/>
<Button Grid.Row="3" x:Name="Confirm" Width="300" Height="35" IsEnabled="False"
Content="Please copy your Api Token" FontSize="18"
Click="ConfirmSettings_OnClick"/>
</Grid>
<!-- Progress Bar -->
<ProgressBar Grid.Row="2" x:Name="Progress" Value="0" Height="20" Width="600"
HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="10"
Visibility="Hidden"/>
</Grid>
</Border>
<!-- Content outside the Border -->
<!-- If you need to add more content or additional rows/columns, you can do so here -->
</Grid>
</Window>