From 77cc3b43642f8900788f734c0bc2bb321b9069e7 Mon Sep 17 00:00:00 2001 From: Tony Bark <35226681+tonytins@users.noreply.github.com> Date: Sat, 16 May 2026 07:45:01 -0400 Subject: [PATCH] WIP UI refractor Swapped stack panels for using the grid's rows. Unfortunately, this is causing some height problems. --- CyberBits/Views/MainWindow.axaml | 134 ++++++++++++++-------------- CyberBits/Views/MainWindow.axaml.cs | 10 +-- 2 files changed, 72 insertions(+), 72 deletions(-) diff --git a/CyberBits/Views/MainWindow.axaml b/CyberBits/Views/MainWindow.axaml index ff1eee9..881c106 100644 --- a/CyberBits/Views/MainWindow.axaml +++ b/CyberBits/Views/MainWindow.axaml @@ -1,10 +1,10 @@ - + @@ -22,72 +22,76 @@ WindowDecorationProperties.ElementRole="TitleBar"> + Text="CyberBits"> + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CyberBits/Views/MainWindow.axaml.cs b/CyberBits/Views/MainWindow.axaml.cs index 525f0fc..1f79b8f 100644 --- a/CyberBits/Views/MainWindow.axaml.cs +++ b/CyberBits/Views/MainWindow.axaml.cs @@ -6,7 +6,7 @@ namespace CyberBits.Views; public partial class MainWindow : Window { - private string? AppPath => Path.GetDirectoryName(Assembly.GetAssembly(typeof(MainWindow))?.Location); + private static string? AppPath => Path.GetDirectoryName(Assembly.GetAssembly(typeof(MainWindow))?.Location); public MainWindow() @@ -18,11 +18,10 @@ public partial class MainWindow : Window var commonFile = File.ReadAllText($"{AppPath}//{DataFiles.COMMON_JSON}"); var commonData = JsonSerializer.Deserialize(commonFile); - PubesItems.ItemsSource = commonData?.Pubes; + /*PubesItems.ItemsSource = commonData?.Pubes; CyberwareItems.ItemsSource = commonData?.Cyberware; AestheticsItems.ItemsSource = commonData?.Aesthetic; - ButtOptions.ItemsSource = commonData?.Butt; - + ButtOptions.ItemsSource = commonData?.Butt;*/ } catch (Exception e) { @@ -35,12 +34,10 @@ public partial class MainWindow : Window #else VersionBox.Text = AppConsts.VERSION; #endif - } private void GenitalSwap(string image, string data) { - try { var genitalFile = File.ReadAllText($"{AppPath}//{data}"); @@ -56,7 +53,6 @@ public partial class MainWindow : Window Console.WriteLine(e); throw; } - } private void SelectedBitsControl_OnSelectionChanged(object? sender, SelectionChangedEventArgs e)