diff --git a/CLAUDE.md b/CLAUDE.md index b6160ba..a93d930 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -54,12 +54,17 @@ git branch # Should show: * final | NewTodoPage.xaml | [ ] | Add new todo form | | TodoDetailPage.xaml | [ ] | Edit todo details | -### XamlBrowser (app + 1 page) +### XamlBrowser (app + 1 page) - COMPLETE | File | Status | Notes | |------|--------|-------| -| BrowserApp.xaml | [ ] | Basic app setup | -| MainPage.xaml | [ ] | WebView browser | +| App.xaml | [x] | Colors, styles (NavButtonStyle, GoButtonStyle, AddressBarStyle, StatusLabelStyle) | +| App.xaml.cs | [x] | BrowserApp with ToggleTheme() | +| MainPage.xaml | [x] | Toolbar with nav buttons, address bar, WebView, status bar | +| MainPage.xaml.cs | [x] | Navigation logic, progress animation, theme toggle | +| MauiProgram.cs | [x] | UseLinuxPlatform() setup | +| Program.cs | [x] | LinuxProgramHost entry point | +| Resources/Images/*.svg | [x] | 10 toolbar icons (dark/light variants) | --- diff --git a/samples/XamlBrowser/App.xaml b/samples/XamlBrowser/App.xaml new file mode 100644 index 0000000..2a41fdf --- /dev/null +++ b/samples/XamlBrowser/App.xaml @@ -0,0 +1,80 @@ + + + + + + #1A73E8 + #8AB4F8 + + + #FFFFFF + #202124 + + + #FFFFFF + #292A2D + + + #F1F3F4 + #3C4043 + + + #F1F3F4 + #202124 + + + #202124 + #E8EAED + #5F6368 + #9AA0A6 + + + #80868B + #9AA0A6 + + + #F8F9FA + #35363A + + + + + + + + + + + + + + + diff --git a/samples/XamlBrowser/App.xaml.cs b/samples/XamlBrowser/App.xaml.cs new file mode 100644 index 0000000..e5e8da6 --- /dev/null +++ b/samples/XamlBrowser/App.xaml.cs @@ -0,0 +1,20 @@ +using Microsoft.Maui; +using Microsoft.Maui.ApplicationModel; +using Microsoft.Maui.Controls; + +namespace XamlBrowser; + +public partial class BrowserApp : Application +{ + public BrowserApp() + { + InitializeComponent(); + UserAppTheme = AppTheme.Dark; + MainPage = new MainPage(); + } + + public void ToggleTheme() + { + UserAppTheme = UserAppTheme == AppTheme.Light ? AppTheme.Dark : AppTheme.Light; + } +} diff --git a/samples/XamlBrowser/MainPage.xaml b/samples/XamlBrowser/MainPage.xaml new file mode 100644 index 0000000..b8a849f --- /dev/null +++ b/samples/XamlBrowser/MainPage.xaml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +