-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
69 lines (57 loc) · 4.66 KB
/
Copy pathMainWindow.xaml
File metadata and controls
69 lines (57 loc) · 4.66 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
<ui:FluentWindow x:Class="Web2AppLauncher.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
Title="Генератор Web2App"
Height="600" Width="600"
WindowStartupLocation="CenterScreen"
ExtendsContentIntoTitleBar="True"
WindowCornerPreference="Round">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/> <!-- Место для панели заголовка -->
<RowDefinition Height="*"/> <!-- Основной контент -->
</Grid.RowDefinitions>
<!-- Панель заголовка с крестиком, свернуть и развернуть -->
<ui:TitleBar Grid.Row="0" Title="Генератор Web2App" ShowMinimize="True" ShowMaximize="True" ShowClose="True" />
<!-- Основной контент с прокруткой (сдвинут в Row="1") -->
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
<Grid Margin="24">
<StackPanel>
<!-- Заголовок -->
<TextBlock Text="Создание Web2App" FontSize="28" FontWeight="SemiBold" Foreground="{DynamicResource TextFillColorPrimaryBrush}" Margin="0,0,0,4"/>
<TextBlock Text="Превратите любой веб-сайт в нативное приложение Windows 11" FontSize="14" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="0,0,0,24"/>
<!-- Карточка: Основные настройки -->
<ui:Card Padding="16" Margin="0,0,0,16">
<StackPanel>
<TextBlock Text="Основные настройки" FontWeight="SemiBold" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" Margin="0,0,0,12"/>
<TextBlock Text="URL адрес" FontWeight="Medium" FontSize="12" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="0,0,0,4"/>
<ui:TextBox x:Name="TxtUrl" PlaceholderText="https://example.com" TextChanged="TxtUrl_TextChanged" Margin="0,0,0,12"/>
<TextBlock Text="Название приложения" FontWeight="Medium" FontSize="12" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="0,0,0,4"/>
<ui:TextBox x:Name="TxtName" PlaceholderText="Мое приложение"/>
</StackPanel>
</ui:Card>
<!-- Карточка: Дополнительно -->
<ui:Card Padding="16" Margin="0,0,0,16">
<StackPanel>
<TextBlock Text="Дополнительно" FontWeight="SemiBold" FontSize="16" Foreground="{DynamicResource TextFillColorPrimaryBrush}" Margin="0,0,0,12"/>
<TextBlock Text="Иконка (.ico или .png)" FontWeight="Medium" FontSize="12" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="0,0,0,4"/>
<Grid Margin="0,0,0,12">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<ui:TextBox x:Name="TxtIcon" IsReadOnly="True" PlaceholderText="Иконка не выбрана" Margin="0,0,8,0"/>
<ui:Button Grid.Column="1" Content="Обзор..." Click="BtnBrowseIcon_Click"/>
</Grid>
<TextBlock Text="User-Agent" FontWeight="Medium" FontSize="12" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="0,0,0,4"/>
<ui:TextBox x:Name="TxtUserAgent" Text="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" TextWrapping="Wrap"/>
</StackPanel>
</ui:Card>
<!-- Кнопка действия -->
<ui:Button Content="Создать приложение" Appearance="Primary" Height="44" FontSize="15" FontWeight="SemiBold" HorizontalAlignment="Stretch" Click="BtnCreate_Click"/>
</StackPanel>
</Grid>
</ScrollViewer>
</Grid>
</ui:FluentWindow>