mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
Add splash screen SVG graphic for Admin Mobile application
This commit is contained in:
@@ -5,28 +5,19 @@ namespace DorkNet.AdminMobile.Design;
|
||||
|
||||
public static class AppDesign
|
||||
{
|
||||
public static readonly Color Canvas = Color.FromArgb("#0b0f14");
|
||||
public static readonly Color Surface = Color.FromArgb("#1d222c");
|
||||
public static readonly Color SurfaceGlass = Color.FromArgb("#bb222833");
|
||||
public static readonly Color SurfaceLifted = Color.FromArgb("#293141");
|
||||
public static readonly Color Text = Color.FromArgb("#f6f8fb");
|
||||
public static readonly Color Muted = Color.FromArgb("#aab4c4");
|
||||
public static readonly Color Subtle = Color.FromArgb("#748094");
|
||||
public static readonly Color Accent = Color.FromArgb("#78c7ff");
|
||||
public static readonly Color AndroidAccent = Color.FromArgb("#9ee37d");
|
||||
public static readonly Color Danger = Color.FromArgb("#f26d7d");
|
||||
public static readonly Color Canvas = Color.FromArgb("#0f1115");
|
||||
public static readonly Color Surface = Color.FromArgb("#171a20");
|
||||
public static readonly Color SurfaceLifted = Color.FromArgb("#20252d");
|
||||
public static readonly Color RowSurface = Color.FromArgb("#14171d");
|
||||
public static readonly Color Stroke = Color.FromArgb("#2a3039");
|
||||
public static readonly Color Text = Color.FromArgb("#f4f6fa");
|
||||
public static readonly Color Muted = Color.FromArgb("#aeb7c6");
|
||||
public static readonly Color Subtle = Color.FromArgb("#778294");
|
||||
public static readonly Color Accent = Color.FromArgb("#64b5ff");
|
||||
public static readonly Color AndroidAccent = Color.FromArgb("#b7dd72");
|
||||
public static readonly Color Danger = Color.FromArgb("#ff6f82");
|
||||
|
||||
public static Brush PageBackground => new LinearGradientBrush
|
||||
{
|
||||
StartPoint = new Point(0, 0),
|
||||
EndPoint = new Point(1, 1),
|
||||
GradientStops =
|
||||
{
|
||||
new GradientStop(Color.FromArgb("#0b0f14"), 0),
|
||||
new GradientStop(Color.FromArgb("#121927"), 0.52f),
|
||||
new GradientStop(Color.FromArgb("#10151c"), 1),
|
||||
},
|
||||
};
|
||||
public static Brush PageBackground => new SolidColorBrush(Canvas);
|
||||
|
||||
public static Color PlatformAccent =>
|
||||
#if ANDROID
|
||||
@@ -39,7 +30,7 @@ public static class AppDesign
|
||||
{
|
||||
Text = text,
|
||||
TextColor = Text,
|
||||
FontSize = 28,
|
||||
FontSize = 22,
|
||||
FontAttributes = FontAttributes.Bold,
|
||||
LineBreakMode = LineBreakMode.TailTruncation,
|
||||
};
|
||||
@@ -56,26 +47,10 @@ public static class AppDesign
|
||||
public static Border GlassCard(View content, Thickness? padding = null) => new()
|
||||
{
|
||||
Padding = padding ?? new Thickness(14),
|
||||
Stroke = Color.FromArgb("#33ffffff"),
|
||||
Stroke = Stroke,
|
||||
StrokeThickness = 1,
|
||||
Background = new LinearGradientBrush
|
||||
{
|
||||
StartPoint = new Point(0, 0),
|
||||
EndPoint = new Point(1, 1),
|
||||
GradientStops =
|
||||
{
|
||||
new GradientStop(Color.FromArgb("#cc27303d"), 0),
|
||||
new GradientStop(Color.FromArgb("#99202733"), 1),
|
||||
},
|
||||
},
|
||||
StrokeShape = new RoundRectangle { CornerRadius = 24 },
|
||||
Shadow = new Shadow
|
||||
{
|
||||
Brush = Brush.Black,
|
||||
Offset = new Point(0, 12),
|
||||
Radius = 22,
|
||||
Opacity = 0.25f,
|
||||
},
|
||||
BackgroundColor = Surface,
|
||||
StrokeShape = new RoundRectangle { CornerRadius = 10 },
|
||||
Content = content,
|
||||
};
|
||||
|
||||
@@ -84,10 +59,10 @@ public static class AppDesign
|
||||
Text = text,
|
||||
BackgroundColor = PlatformAccent,
|
||||
TextColor = Colors.Black,
|
||||
CornerRadius = 22,
|
||||
HeightRequest = 48,
|
||||
CornerRadius = 10,
|
||||
HeightRequest = 44,
|
||||
FontAttributes = FontAttributes.Bold,
|
||||
Padding = new Thickness(18, 0),
|
||||
Padding = new Thickness(14, 0),
|
||||
};
|
||||
|
||||
public static Button SecondaryButton(string text) => new()
|
||||
@@ -95,9 +70,9 @@ public static class AppDesign
|
||||
Text = text,
|
||||
BackgroundColor = SurfaceLifted,
|
||||
TextColor = Text,
|
||||
CornerRadius = 22,
|
||||
HeightRequest = 46,
|
||||
Padding = new Thickness(16, 0),
|
||||
CornerRadius = 10,
|
||||
HeightRequest = 42,
|
||||
Padding = new Thickness(14, 0),
|
||||
};
|
||||
|
||||
public static Button DangerButton(string text) => new()
|
||||
@@ -105,9 +80,9 @@ public static class AppDesign
|
||||
Text = text,
|
||||
BackgroundColor = Color.FromArgb("#4c1d28"),
|
||||
TextColor = Color.FromArgb("#ffd5dc"),
|
||||
CornerRadius = 22,
|
||||
HeightRequest = 44,
|
||||
Padding = new Thickness(14, 0),
|
||||
CornerRadius = 10,
|
||||
HeightRequest = 42,
|
||||
Padding = new Thickness(12, 0),
|
||||
};
|
||||
|
||||
public static Entry Entry(string placeholder, Keyboard? keyboard = null, bool secret = false) => new()
|
||||
@@ -119,7 +94,22 @@ public static class AppDesign
|
||||
BackgroundColor = Color.FromArgb("#19202b"),
|
||||
ClearButtonVisibility = ClearButtonVisibility.WhileEditing,
|
||||
Keyboard = keyboard ?? Keyboard.Text,
|
||||
HeightRequest = 48,
|
||||
HeightRequest = 44,
|
||||
};
|
||||
|
||||
public static Label Caption(string text) => new()
|
||||
{
|
||||
Text = text,
|
||||
TextColor = Muted,
|
||||
FontSize = 13,
|
||||
LineBreakMode = LineBreakMode.WordWrap,
|
||||
};
|
||||
|
||||
public static BoxView Divider() => new()
|
||||
{
|
||||
HeightRequest = 1,
|
||||
Color = Stroke,
|
||||
Opacity = 0.7,
|
||||
};
|
||||
|
||||
public static Label StatusLabel() => new()
|
||||
|
||||
Reference in New Issue
Block a user