Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
'yea i think thats what we want' - blems
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed Jan 16, 2023
1 parent 18b838d commit 477408f
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 56 deletions.
64 changes: 64 additions & 0 deletions src/XIVLauncher2/Views/LauncherView.axaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<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"
xmlns:i="clr-namespace:Projektanker.Icons.Avalonia;assembly=Projektanker.Icons.Avalonia"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="XIVLauncher2.Views.LauncherView">
<Grid VerticalAlignment="Center" HorizontalAlignment="Center" ColumnDefinitions="Auto, Auto">

<!--- News and Links -->
<StackPanel Grid.Column="0">
<!-- News Images -->
<Image Source="/Assets/placeholder-news.png" Stretch="UniformToFill" Width="640" Height="250" />

<!-- News Links -->
<Border Background="#282828" CornerRadius="5" Margin="0,20,0,0">
<ListBox MaxHeight="150" VirtualizationMode="None">
<TextBlock VerticalAlignment="Center" Margin="10,0,0,0">News</TextBlock>
<TextBlock VerticalAlignment="Center" Margin="10,0,0,0">News</TextBlock>
<TextBlock VerticalAlignment="Center" Margin="10,0,0,0">News</TextBlock>
<TextBlock VerticalAlignment="Center" Margin="10,0,0,0">News</TextBlock>
<TextBlock VerticalAlignment="Center" Margin="10,0,0,0">News</TextBlock>
<TextBlock VerticalAlignment="Center" Margin="10,0,0,0">News</TextBlock>
</ListBox>
</Border>
</StackPanel>

<!-- Login -->
<Border
Background="#282828"
CornerRadius="5"
Margin="20,0,0,0"
Padding="10"
Grid.Column="1">
<StackPanel Width="250" Spacing="10" VerticalAlignment="Center">
<!-- Placeholder logo text -->
<TextBlock Text="{Binding XIVLauncherText}" FontSize="24" FontWeight="Bold"
HorizontalAlignment="Center" />

<!-- Text boxes -->
<TextBox Watermark="ID"></TextBox>
<TextBox Watermark="Password" PasswordChar="*"></TextBox>

<!-- Checkboxes -->
<StackPanel HorizontalAlignment="Center">
<CheckBox>Log in automatically</CheckBox>
<CheckBox>Use one time password</CheckBox>
<CheckBox>Use Steam service account</CheckBox>
</StackPanel>

<!-- Buttons -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"
Spacing="5">
<Button i:Attached.Icon="fa-play" ToolTip.Tip="Play" Height="40" Width="40" FontSize="20"
Background="#1e88e5" Command="{Binding RunTheThingCommand}" />
<Button i:Attached.Icon="fa-user-group" ToolTip.Tip="Accounts" Height="40" Width="40"
FontSize="20" />
<Button i:Attached.Icon="fa-cog" ToolTip.Tip="Settings" Height="40" Width="40"
FontSize="20" />
</StackPanel>
</StackPanel>
</Border>
</Grid>
</UserControl>
18 changes: 18 additions & 0 deletions src/XIVLauncher2/Views/LauncherView.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 XIVLauncher2.Views;

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

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
59 changes: 3 additions & 56 deletions src/XIVLauncher2/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
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"
xmlns:i="clr-namespace:Projektanker.Icons.Avalonia;assembly=Projektanker.Icons.Avalonia"
xmlns:vm="using:XIVLauncher2.ViewModels"
xmlns:views="clr-namespace:XIVLauncher2.Views"
mc:Ignorable="d" d:DesignWidth="1000" d:DesignHeight="500"
x:Class="XIVLauncher2.MainWindow"
Title="XIVLauncher2"
Expand All @@ -22,62 +22,9 @@
<ExperimentalAcrylicMaterial BackgroundSource="Digger" TintOpacity="1" TintColor="Black"
MaterialOpacity="0.75" FallbackColor="DarkBlue" />
</ExperimentalAcrylicBorder.Material>

<Viewbox>
<Grid VerticalAlignment="Center" HorizontalAlignment="Center" ColumnDefinitions="Auto, Auto">

<!--- News and Links -->
<StackPanel Grid.Column="0">
<!-- News Images -->
<Image Source="/Assets/placeholder-news.png" Stretch="UniformToFill" Width="640" Height="250" />

<!-- News Links -->
<Border Background="#282828" CornerRadius="5" Margin="0,20,0,0">
<ListBox MaxHeight="150" VirtualizationMode="None">
<TextBlock VerticalAlignment="Center" Margin="10,0,0,0">News</TextBlock>
<TextBlock VerticalAlignment="Center" Margin="10,0,0,0">News</TextBlock>
<TextBlock VerticalAlignment="Center" Margin="10,0,0,0">News</TextBlock>
<TextBlock VerticalAlignment="Center" Margin="10,0,0,0">News</TextBlock>
<TextBlock VerticalAlignment="Center" Margin="10,0,0,0">News</TextBlock>
<TextBlock VerticalAlignment="Center" Margin="10,0,0,0">News</TextBlock>
</ListBox>
</Border>
</StackPanel>

<!-- Login -->
<Border
Background="#282828"
CornerRadius="5"
Margin="20,0,0,0"
Padding="10"
Grid.Column="1">
<StackPanel Width="250" Spacing="10" VerticalAlignment="Center">
<!-- Placeholder logo text -->
<TextBlock Text="{Binding XIVLauncherText}" FontSize="24" FontWeight="Bold" HorizontalAlignment="Center" />

<!-- Text boxes -->
<TextBox Watermark="ID"></TextBox>
<TextBox Watermark="Password" PasswordChar="*"></TextBox>

<!-- Checkboxes -->
<StackPanel HorizontalAlignment="Center">
<CheckBox>Log in automatically</CheckBox>
<CheckBox>Use one time password</CheckBox>
<CheckBox>Use Steam service account</CheckBox>
</StackPanel>

<!-- Buttons -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"
Spacing="5">
<Button i:Attached.Icon="fa-play" ToolTip.Tip="Play" Height="40" Width="40" FontSize="20"
Background="#1e88e5" Command="{Binding RunTheThingCommand}" />
<Button i:Attached.Icon="fa-user-group" ToolTip.Tip="Accounts" Height="40" Width="40"
FontSize="20" />
<Button i:Attached.Icon="fa-cog" ToolTip.Tip="Settings" Height="40" Width="40"
FontSize="20" />
</StackPanel>
</StackPanel>
</Border>
</Grid>
<views:LauncherView />
</Viewbox>
</ExperimentalAcrylicBorder>
</Window>

0 comments on commit 477408f

Please sign in to comment.