Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize ProfileSelectWindow #17

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
84d993d
[Editor]
shoushou1106 Aug 28, 2023
a511cdc
little fix
shoushou1106 Aug 28, 2023
28bfa90
Update ProfileSelectWindow.axaml
shoushou1106 Aug 28, 2023
9cffa74
Update ProfileSelectWindow.axaml
shoushou1106 Aug 28, 2023
2895291
Update ProfileSelectWindowViewModel.cs
shoushou1106 Aug 28, 2023
af67c71
Update en-US.axaml
shoushou1106 Aug 28, 2023
ff37ebb
Update FrostyEditor/ViewModels/Windows/ProfileSelectWindowViewModel.cs
shoushou1106 Aug 28, 2023
1dd7706
hope vs dont add space
shoushou1106 Aug 28, 2023
572377e
Merge branch '2.0.0_ProfileSelectFix' of https://github.com/shoushou1…
shoushou1106 Aug 28, 2023
12cdc27
Update ProfileSelectWindow.axaml
shoushou1106 Aug 28, 2023
1842d53
omg 2 more using
shoushou1106 Aug 28, 2023
4ad61f9
Merge branch '2.0.0_ProfileSelectFix' of https://github.com/shoushou1…
shoushou1106 Aug 28, 2023
4be63c9
fix delete and add margin too
shoushou1106 Aug 28, 2023
1b7f301
ok
shoushou1106 Aug 28, 2023
000b82b
Update ProfileSelectWindow.axaml
shoushou1106 Aug 28, 2023
3832a15
Update ProfileSelectWindow.axaml
shoushou1106 Aug 28, 2023
90dbde4
Update ProfileSelectWindow.axaml
shoushou1106 Aug 28, 2023
f66d3fa
Update Config.cs
shoushou1106 Aug 29, 2023
3f33099
how can it dragable
shoushou1106 Aug 29, 2023
2705a39
Merge branch '2.0.0_ProfileSelectFix' of https://github.com/shoushou1…
shoushou1106 Aug 29, 2023
2498ff4
OMG IT CAN DRAG NOW
shoushou1106 Aug 29, 2023
e715e31
looks better
shoushou1106 Aug 29, 2023
f87d21c
asset folder maybe better
shoushou1106 Aug 29, 2023
43403e9
add image
shoushou1106 Aug 29, 2023
f9c824e
add something
shoushou1106 Aug 29, 2023
38a73e5
Update en-US.axaml
shoushou1106 Aug 29, 2023
c11423b
Update ProfileSelectWindow.axaml
shoushou1106 Aug 29, 2023
3c26ba8
add full icon in csproj and im still stuck in discord
shoushou1106 Aug 29, 2023
62b42f0
Merge branch '2.0.0_ProfileSelectFix' of https://github.com/shoushou1…
shoushou1106 Aug 29, 2023
971ca3b
add banner
shoushou1106 Sep 1, 2023
8828ef7
todo for banner
shoushou1106 Sep 1, 2023
b1c00e9
bigger banner
shoushou1106 Sep 2, 2023
c11fb43
update to new csproj
shoushou1106 Sep 2, 2023
cb6a0b0
Update FrostyEditor.csproj
shoushou1106 Sep 2, 2023
ec451e1
again
shoushou1106 Sep 2, 2023
1fc877b
a lot
shoushou1106 Sep 2, 2023
6fa17bc
em
shoushou1106 Sep 10, 2023
2a63580
change name and change to tabcontrol and add titlebar to theme
shoushou1106 Sep 12, 2023
3dcd50a
that looks good but no loca- (how to spell that
shoushou1106 Sep 14, 2023
fb78b1e
its locaziled。
shoushou1106 Sep 15, 2023
99ae1c9
linux
shoushou1106 Sep 23, 2023
c96afe9
update banner
shoushou1106 Oct 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FrostyEditor/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:FrostyEditor"
x:Class="FrostyEditor.App"
Name="Notepad">
Name="FrostyEditor">
<Application.DataTemplates>
<local:ViewLocator />
</Application.DataTemplates>
Expand Down
6 changes: 3 additions & 3 deletions FrostyEditor/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public override void OnFrameworkInitializationCompleted()
{
case IClassicDesktopStyleApplicationLifetime desktopLifetime:
{
ProfileSelectWindow selectWindow = new()
WelcomeWindow welcomeWindow = new()
{
DataContext = new ProfileSelectWindowViewModel()
DataContext = new WelcomeWindowViewModel()
};

desktopLifetime.MainWindow = selectWindow;
desktopLifetime.MainWindow = welcomeWindow;

break;
}
Expand Down
Binary file added FrostyEditor/Assets/AppIcon.ico
Binary file not shown.
13 changes: 13 additions & 0 deletions FrostyEditor/Assets/FrostyLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/Template.psd
Binary file not shown.
Binary file added FrostyEditor/Assets/Profiles/Banners/anthem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/bf1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/bf2042.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/bf4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/bfh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/bfv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/fifa17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/fifa18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/fifa19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/fifa20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/fifa21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/fifa22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/fifa23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/madden20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/madden21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/nfs14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FrostyEditor/Assets/Profiles/Banners/nfs16.png
Binary file added FrostyEditor/Assets/Profiles/Banners/nfs17.png
Binary file added FrostyEditor/Assets/Profiles/Banners/nfsedge.png
Binary file added FrostyEditor/Assets/Profiles/Banners/nfsheat.png
Binary file added FrostyEditor/Assets/Profiles/Banners/pvz1.png
Binary file added FrostyEditor/Assets/Profiles/Banners/pvz2.png
Binary file added FrostyEditor/Assets/Profiles/Banners/pvz3.png
Binary file added FrostyEditor/Assets/Profiles/Icons/anthem.png
Binary file added FrostyEditor/Assets/Profiles/Icons/bf1.png
Binary file added FrostyEditor/Assets/Profiles/Icons/bf2042.png
Binary file added FrostyEditor/Assets/Profiles/Icons/bf4.png
Binary file added FrostyEditor/Assets/Profiles/Icons/bfh.png
Binary file added FrostyEditor/Assets/Profiles/Icons/bfv.png
Binary file added FrostyEditor/Assets/Profiles/Icons/deadspace.png
Binary file added FrostyEditor/Assets/Profiles/Icons/dragonage.png
Binary file added FrostyEditor/Assets/Profiles/Icons/fifa17.png
Binary file added FrostyEditor/Assets/Profiles/Icons/fifa18.png
Binary file added FrostyEditor/Assets/Profiles/Icons/fifa19.png
Binary file added FrostyEditor/Assets/Profiles/Icons/fifa20.png
Binary file added FrostyEditor/Assets/Profiles/Icons/fifa21.png
Binary file added FrostyEditor/Assets/Profiles/Icons/fifa22.png
Binary file added FrostyEditor/Assets/Profiles/Icons/fifa23.png
Binary file added FrostyEditor/Assets/Profiles/Icons/madden19.png
Binary file added FrostyEditor/Assets/Profiles/Icons/madden20.png
Binary file added FrostyEditor/Assets/Profiles/Icons/madden21.png
Binary file added FrostyEditor/Assets/Profiles/Icons/madden22.png
Binary file added FrostyEditor/Assets/Profiles/Icons/madden23.png
Binary file added FrostyEditor/Assets/Profiles/Icons/masseffect.png
Binary file added FrostyEditor/Assets/Profiles/Icons/nfs14.png
Binary file added FrostyEditor/Assets/Profiles/Icons/nfs16.png
Binary file added FrostyEditor/Assets/Profiles/Icons/nfs17.png
Binary file added FrostyEditor/Assets/Profiles/Icons/nfsedge.png
Binary file added FrostyEditor/Assets/Profiles/Icons/nfsheat.png
Binary file added FrostyEditor/Assets/Profiles/Icons/nfsunbound.png
Binary file added FrostyEditor/Assets/Profiles/Icons/pvz1.png
Binary file added FrostyEditor/Assets/Profiles/Icons/pvz2.png
Binary file added FrostyEditor/Assets/Profiles/Icons/pvz3.png
Binary file added FrostyEditor/Assets/Profiles/Icons/starwars.png
132 changes: 26 additions & 106 deletions FrostyEditor/FrostyEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,34 @@
<TargetFramework>net7.0</TargetFramework>
<OutputType>WinExe</OutputType>
<IsPackable>False</IsPackable>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<ApplicationIcon>Assets\AppIcon.ico</ApplicationIcon>
</PropertyGroup>

<ItemGroup>
<None Remove="Assets\FolderCollapsed.png" />
<None Remove="Assets\FolderExpanded.png" />
<None Remove="Assets\*" />
<None Remove="Assets\Profiles\Icons\*" />
<None Remove="Assets\Profiles\Banners\*" />
<None Update="Profiles\*.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<ItemGroup>
<AvaloniaResource Include="Assets\FolderCollapsed.png" />
<AvaloniaResource Include="Assets\FolderExpanded.png" />
<AvaloniaResource Include="Assets\*" />
<AvaloniaResource Include="Assets\Profiles\Icons\*" />
<AvaloniaResource Include="Assets\Profiles\Banners\*" />
</ItemGroup>

<ItemGroup>
<Content Include="Assets\AppIcon.ico" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Avalonia" Version="11.0.0" />
<PackageReference Include="Avalonia.Controls.TreeDataGrid" Version="11.0.0" />
<PackageReference Include="Avalonia.Desktop" Version="11.0.0" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.0" />
<PackageReference Include="Avalonia.Svg" Version="11.0.0.1" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.0" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.1" />
<PackageReference Include="Dock.Avalonia" Version="11.0.0" />
Expand All @@ -38,108 +48,18 @@
</ItemGroup>

<ItemGroup>
<None Update="Profiles\Anthem.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Battlefield1.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Battlefield4.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\BattlefieldHardline.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\BattlefieldV.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\BF2042.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\DeadSpace.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\DragonAgeInquisition.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Fifa17.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Fifa18.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Fifa19.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Fifa20.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Fifa21.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Fifa22.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Fifa23.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Madden19.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Madden20.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Madden21.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Madden22.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Madden23.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Mea.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Mec.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\Nfs.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\NFSHeat.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\NFSOnline.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\NFSPayback.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\NfsRivals.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\NFSUnbound.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\PvZ.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\PvZ2.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\PvZ3.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\SWBF1.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\SWBF2.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Profiles\SWS.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<Compile Update="Pages\WelcomeWindow\ProfilesPage.axaml.cs">
<DependentUpon>ProfilesPage.axaml</DependentUpon>
</Compile>
<Compile Update="Pages\WelcomeWindow\ProjectsPage.axaml.cs">
<DependentUpon>ProjectsPage.axaml</DependentUpon>
</Compile>
<Compile Update="Themes\UserControls\TitleBar.axaml.cs">
<DependentUpon>TitleBar.axaml</DependentUpon>
</Compile>
<Compile Update="Views\Windows\WelcomeWindow.axaml.cs">
<DependentUpon>WelcomeWindow.axaml</DependentUpon>
</Compile>
</ItemGroup>

</Project>
15 changes: 11 additions & 4 deletions FrostyEditor/Languages/en-US.axaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=System.Runtime">

<!-- General -->
<system:String x:Key="ID_GENERAL_APP_NAME">Frosty Editor</system:String>

<!-- MenuItems -->
<system:String x:Key="ID_MENU_FILE">File</system:String>
<system:String x:Key="ID_MENU_TOOLS">Tools</system:String>
<system:String x:Key="ID_MENU_HELP">Help</system:String>

<!-- ProfileSelectWindow -->
<system:String x:Key="ID_PROFILE_SELECT">Select</system:String>
<system:String x:Key="ID_PROFILE_ADD">Add</system:String>
<system:String x:Key="ID_PROFILE_CANCEL">Cancel</system:String>
<!-- WelcomeWindow -->
<system:String x:Key="ID_WELCOME_TITLE">Welcome to Frosty Editor</system:String>
<system:String x:Key="ID_WELCOME_PROJECTS">Projects</system:String>
<system:String x:Key="ID_WELCOME_PROFILES">Profiles</system:String>
<system:String x:Key="ID_WELCOME_SEARCH">Search</system:String>
<system:String x:Key="ID_WELCOME_ADD">Add</system:String>
<system:String x:Key="ID_WELCOME_DELETE">Delete</system:String>

</ResourceDictionary>
43 changes: 43 additions & 0 deletions FrostyEditor/Pages/WelcomeWindow/ProfilesPage.axaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="FrostyEditor.Pages.WelcomeWindow.ProfilesPage"
>
<Grid RowDefinitions="Auto, *">

<Grid Grid.Row="0" Margin="5">
<AutoCompleteBox Watermark="{StaticResource ID_WELCOME_SEARCH}" Width="250" HorizontalAlignment="Left"/>
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
<Button Margin="2" Content="{StaticResource ID_WELCOME_ADD}" Command="{Binding AddProfileCommand}"/>
<Button Margin="2" Content="{StaticResource ID_WELCOME_DELETE}" Command="{Binding DeleteProfileCommand}"/>
</StackPanel>
</Grid>

<Grid Grid.Row="1" Margin="4, 0, 4, 0">
<ListBox Background="Transparent" ItemsSource="{Binding Profiles}" SelectedItem="{Binding SelectedProfile}">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Margin="2">
<Grid.RowDefinitions>
<RowDefinition Height="25"/>
<RowDefinition Height="25"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>

<Image Grid.Column="0" Grid.RowSpan="2" Margin="0, 0, 10, 0" Source="{Binding Icon}" Width="45" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<TextBlock Grid.Column="1" Grid.Row="0" Text="{Binding Name}" FontWeight="Bold"/>
<TextBlock Grid.Column="1" Grid.Row="1" Text="{Binding Path}"/>
<Image Grid.ColumnSpan="2" Grid.RowSpan="2" Height="1000" Margin="-15" Source="{Binding Banner}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>

</Grid>
</UserControl>
18 changes: 18 additions & 0 deletions FrostyEditor/Pages/WelcomeWindow/ProfilesPage.axaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

namespace FrostyEditor.Pages.WelcomeWindow;

public partial class ProfilesPage : UserControl
{
public ProfilesPage()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
43 changes: 43 additions & 0 deletions FrostyEditor/Pages/WelcomeWindow/ProjectsPage.axaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="FrostyEditor.Pages.WelcomeWindow.ProjectsPage"
>
<Grid RowDefinitions="Auto, *">

<Grid Grid.Row="0" Margin="5">
<AutoCompleteBox Watermark="{StaticResource ID_WELCOME_SEARCH}" Width="250" HorizontalAlignment="Left"/>
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
<Button Margin="2" Content="{StaticResource ID_WELCOME_ADD}" Command="{Binding AddProfileCommand}"/>
<Button Margin="2" Content="{StaticResource ID_WELCOME_DELETE}" Command="{Binding DeleteProfileCommand}"/>
</StackPanel>
</Grid>

<Grid Grid.Row="1" Margin="4, 0, 4, 0">
<ListBox Background="Transparent" ItemsSource="{Binding Profiles}" SelectedItem="{Binding SelectedProfile}">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Margin="2">
<Grid.RowDefinitions>
<RowDefinition Height="25"/>
<RowDefinition Height="25"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="55"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>

<Image Grid.Column="0" Grid.RowSpan="2" Margin="0, 0, 10, 0" Source="{Binding Icon}" Width="45" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<TextBlock Grid.Column="1" Grid.Row="0" Text="{Binding Name}" FontWeight="Bold"/>
<TextBlock Grid.Column="1" Grid.Row="1" Text="{Binding Path}"/>
<Image Grid.ColumnSpan="2" Grid.RowSpan="2" Height="1000" Margin="-15" Source="{Binding Banner}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>

</Grid>
</UserControl>
18 changes: 18 additions & 0 deletions FrostyEditor/Pages/WelcomeWindow/ProjectsPage.axaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

namespace FrostyEditor.Pages.WelcomeWindow;

public partial class ProjectsPage : UserControl
{
public ProjectsPage()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
15 changes: 15 additions & 0 deletions FrostyEditor/Themes/UserControls/TitleBar.axaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="FrostyEditor.Themes.UserControls.TitleBar">
<Grid Height="30">
<Border IsHitTestVisible="False" Background="#111111"/>
<StackPanel Margin="5" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
<!--<Image Source="{SvgImage ../../Assets/FrostyLogo.svg}" Margin="5, 2, 5, 0" Width="15" Height="15" VerticalAlignment="Center" HorizontalAlignment="Center"/>-->
<!--<TextBlock Text="{StaticResource ID_GENERAL_APP_NAME}" Margin="5, 0, 5, 0" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold"/>-->
<TextBlock Text="{Binding $parent[UserControl].Description}" Margin="5, 0, 5, 0" VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="0.8"/>
</StackPanel>
</Grid>
</UserControl>
Loading