From ccebf3530f3a69d4f1a0db65c532e2834dbea9b8 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 25 Feb 2026 23:01:05 +0000 Subject: [PATCH] improve the look of the GUI --- Lottery/AppShell.xaml | 1 - Lottery/Lottery.cs | 2 +- Lottery/MainPage.xaml | 122 +++++++++++++++++++++++++++++++++++++++--- 3 files changed, 117 insertions(+), 8 deletions(-) diff --git a/Lottery/AppShell.xaml b/Lottery/AppShell.xaml index 7c44897..a1c7318 100644 --- a/Lottery/AppShell.xaml +++ b/Lottery/AppShell.xaml @@ -8,7 +8,6 @@ Title="Lottery Number Generator"> diff --git a/Lottery/Lottery.cs b/Lottery/Lottery.cs index dd0edc8..15f7c0b 100644 --- a/Lottery/Lottery.cs +++ b/Lottery/Lottery.cs @@ -33,7 +33,7 @@ public override string Play() { - return string.Join("\t", [ + return string.Join("\n", [ $"Numbers: {string.Join(", ", Generator.Generate(Limits))}", $"{SpecialIdentifier}: {string.Join(", ", Generator.Generate(SpecialLimits))}", ]); diff --git a/Lottery/MainPage.xaml b/Lottery/MainPage.xaml index 0e4cfa1..ada5374 100644 --- a/Lottery/MainPage.xaml +++ b/Lottery/MainPage.xaml @@ -1,17 +1,127 @@  + x:Class="Lottery.MainPage" + BackgroundColor="{AppThemeBinding Light=#F5F5F5, Dark=#1E1E1E}"> - + Padding="20" + Spacing="30" + VerticalOptions="Center" + MaximumWidthRequest="500"> -