Redesign MainWindow UI with Sidebar Layout#249
Redesign MainWindow UI with Sidebar Layout#249google-labs-jules[bot] wants to merge 3 commits intomasterfrom
Conversation
- Refactored MainWindow.xaml to use a sidebar layout with a custom top bar. - Replaced the top Menu with a horizontal stack of buttons; moved menu items (Settings, Help, etc.) into ContextMenus. - Grouped Icon Mode and Search Mode controls into the left sidebar. - Integrated the "Load Folders" and "Generate Icons" buttons into the sidebar. - Styled the UI using HandyControl DynamicResources for theme compatibility. - Added missing resources (TopBarButton, SidebarRadioButton, StatusBarSeparator) to Window.Resources. - Updated MainWindow.xaml.cs to robustly handle the language selection event. - Restored missing menu items (Explorer Integration, Error Reporting) and icons.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Implemented `DarkPurpleTheme.xaml` resource dictionary and merged it in `App.xaml`. - Fixed "Settings" and "Help" menu commands by introducing a `BindingProxy` class to bridge the `DataContext` gap for `ContextMenu` items. - Replaced Top Bar Buttons with ToggleButtons bound to ContextMenu.IsOpen to enable left-click opening, improving UX. - Updated `SidebarRadioButton` style to fix alignment issues. - Ensured drag-and-drop attached properties are preserved on the Window.
|



Redesigned the MainWindow UI to align with the provided design mockup.
Key changes include:
DynamicResourcekeys (RegionBrush,PrimaryBrush, etc.) from HandyControl to ensure the application correctly respects theme changes (Light/Dark).CmbLanguage_OnSelectionChangedin the code-behind to usesendercasting, preventing potential null reference issues when the control is inside a template.Verified that all original commands, bindings, and menu options (including Explorer Integration and Error Reporting) are preserved in the new layout.
PR created automatically by Jules for task 2368002832168886202 started by @DineshSolanki