Skip to content

恢复旧版布局#165

Open
LanYun2022 wants to merge 2 commits into
Jack251970:masterfrom
LanYun2022:master
Open

恢复旧版布局#165
LanYun2022 wants to merge 2 commits into
Jack251970:masterfrom
LanYun2022:master

Conversation

@LanYun2022

Copy link
Copy Markdown
image

@Jack251970 Jack251970 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在Windows11的暗色主题下测试似乎有部分元素不会跟随系统主题。

image

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 以“恢复旧版布局”为目标,将主窗口导航从 NavigationView 调整回“顶部工具栏 + 左侧侧边栏 + 右侧内容区”的布局,并补充对应的图标资源与控件实现,以匹配旧版交互结构。

Changes:

  • 主窗口 UI 结构重做:新增顶部 MyToolBar,左侧使用 ui:ListView 作为侧边栏,替代原 NavigationView 导航。
  • 主窗口导航逻辑重写:按工具栏 Tab 切换侧边栏项,并根据侧边栏索引切换不同 View/List。
  • 新增若干资源图标入口(Home/Type/Star/Refresh/About)并在 AppImage 暴露对应静态图像引用。

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
ContextMenuManager/Properties/Resources.cs 新增多个图片资源访问器(Home/Type/Star/Refresh/About)。
ContextMenuManager/Methods/AppImage.cs 新增对应的静态图标引用,供 UI/逻辑层使用。
ContextMenuManager/MainWindow.xaml.cs 导航/切换逻辑从 NavigationView 重构为自定义 ToolBar + SideBar 模式。
ContextMenuManager/MainWindow.xaml 主窗口布局重排:顶部工具栏、左侧侧边栏、右侧内容、底部状态栏。
ContextMenuManager/Controls/MyToolBar.xaml.cs 新增自定义工具栏与按钮控件逻辑(选择态/hover 动画、搜索框承载)。
ContextMenuManager/Controls/MyToolBar.xaml 新增工具栏控件的布局(按钮容器 + 搜索框占位)。

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ContextMenuManager/Properties/Resources.cs
Comment thread ContextMenuManager/MainWindow.xaml.cs
Comment thread ContextMenuManager/MainWindow.xaml.cs
Comment thread ContextMenuManager/MainWindow.xaml.cs
Comment thread ContextMenuManager/MainWindow.xaml.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat]: 这个弹出式菜单用起来不是很方便,能不能象原版那样采用固定方式进行,这样切换就方便很多。

3 participants