diff --git a/fixfuckup.md b/fixfuckup.md new file mode 100644 index 0000000..a49fa3c --- /dev/null +++ b/fixfuckup.md @@ -0,0 +1,151 @@ +# Fix Fuckup Recovery Plan + +## What Happened +Code was stored in /tmp directory which got cleared on restart. Recovered code from decompiled VM binaries. + +## What Was Lost +The decompiled code has all the **logic** but: +1. **XAML files are gone** - they were compiled to C# code +2. **AppThemeBinding additions** - dark/light mode XAML bindings +3. **Original formatting/comments** - decompiler output is messy + +## Recovery Order + +### Step 1: Fix maui-linux Library First +The library code is recovered and functional. Build and verify: + +```bash +cd ~/Documents/GitHub/maui-linux-main +dotnet build +``` + +### Step 2: Recreate Sample XAML with AppThemeBinding + +#### ShellDemo XAML to Recreate +All pages had AppThemeBinding added for dark/light mode: + +- [ ] **AppShell.xaml** - FlyoutHeader with: + - VerticalStackLayout (logo above text) + - Image with AspectFit + - BackgroundColor: `{AppThemeBinding Light=#F0F0F0, Dark=#2A2A2A}` + - TextColor bindings for labels + +- [ ] **HomePage.xaml** - AppThemeBinding for: + - BackgroundColor + - TextColor + - Button colors + +- [ ] **ButtonsPage.xaml** - AppThemeBinding colors +- [ ] **TextInputPage.xaml** - Entry/Editor theme colors +- [ ] **PickersPage.xaml** - Picker theme colors +- [ ] **ProgressPage.xaml** - ProgressBar theme colors +- [ ] **SelectionPage.xaml** - CheckBox/Switch theme colors +- [ ] **ListsPage.xaml** - CollectionView theme colors +- [ ] **GridsPage.xaml** - Grid theme colors +- [ ] **AboutPage.xaml** - Links with tap gestures, theme colors +- [ ] **DetailPage.xaml** - Theme colors + +#### TodoApp XAML to Recreate +- [ ] **TodoListPage.xaml** - AppThemeBinding for: + - Page background + - List item colors + - Button colors + +- [ ] **TodoDetailPage.xaml** - Theme colors +- [ ] **NewTodoPage.xaml** - Theme colors + +#### XamlBrowser XAML to Recreate +- [ ] **MainPage.xaml** - WebView container with theme + +## AppThemeBinding Pattern +All XAML used this pattern: +```xml +