Login Page

Basic design for the login page
This commit is contained in:
JacobTech
2023-01-01 23:34:33 -05:00
parent 9531402334
commit dc96ec3874
7 changed files with 99 additions and 0 deletions

@ -0,0 +1,23 @@
using System;
using GraphicsManager;
using OpenTK.Windowing.Desktop;
using OpenTK.Windowing.Common;
namespace Luski.GUI.StartPage;
public class StartPage : Window
{
private static readonly NativeWindowSettings Settings = new()
{
Title = "Luski StartPage",
WindowBorder = WindowBorder.Fixed,
APIVersion = new Version(3, 2),
StartFocused = true,
Size = new OpenTK.Mathematics.Vector2i(481, 838),
};
public StartPage() : base(Settings)
{
Controls.Add(new UI.Login());
}
}

@ -0,0 +1,22 @@
using System.Reflection;
using GraphicsManager;
using GraphicsManager.Objects;
using GraphicsManager.Objects.Core;
using OpenTK.Mathematics;
namespace Luski.GUI.StartPage.UI;
public class Login : UserControl
{
public Login()
{
Size = new(481, 838);
Controls.Add(new Rectangle(new Texture(Tools.GetResourceBytes(Assembly.GetExecutingAssembly(), "Luski.Resources.Textures.Luski.png"))) { Location = new(103,8), Size = new(276, 289)});
Controls.Add(new Label() { Location = new(173,305), Text = "Luski", PixelHeight = 18, Color = new(0.9529f, 0.46666f, 0.203921569f, 1f) });
Controls.Add(new Label() { Location = new(34,395), Text = "Email"});
Controls.Add(new Textbox() { Location = new(41,431), Size = new(401,41), InsideColor = new(28,28,28,255), BorderColor = Color4.DarkCyan });
Controls.Add(new Label() { Location = new(34,521), Text = "Password" });
Controls.Add(new Textbox() { Location = new(41,562), Size = new(401, 41), InsideColor = new(28, 28, 28, 255), BorderColor = Color4.DarkCyan });
Controls.Add(new Label() { Location = new(36,664), Text = "Create Account" });
}
}

19
Luski/Luski.csproj Normal file

@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="GraphicsManager" Version="1.0.0-alpha7" />
<PackageReference Include="Luski.net" Version="1.1.0-alpha" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources/**"></EmbeddedResource>
</ItemGroup>
</Project>

5
Luski/Program.cs Normal file

@ -0,0 +1,5 @@
using Luski.GUI.StartPage;
var t = new StartPage();
t.StartRender();
t.Dispose();

Binary file not shown.

After

(image error) Size: 204 KiB