Feat: Ppt button preview#565
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
🤖 Augment PR SummarySummary: Adds a dedicated settings subpage for PowerPoint page-turn (flip) buttons with an in-page visual preview. Changes:
Technical Notes: The preview renders 🤖 Was this summary useful? React with 👍 or 👎 |
| { | ||
| var str = ppt.PPTSButtonsOption.ToString(); | ||
| char[] c = str.ToCharArray(); | ||
| c[0] = CheckboxShowPageNumber.IsChecked == true ? '2' : '1'; |
There was a problem hiding this comment.
CheckboxShowPageNumber_Changed (and similarly CheckboxBlackBackground_Changed) indexes directly into PPTSButtonsOption/PPTBButtonsOption char arrays (e.g., c[0], c[2]) without validating length; if an older/manual-edited settings value stringifies to fewer digits, this can throw IndexOutOfRangeException and break the settings UI.
Severity: medium
Other Locations
Ink Canvas/Windows/SettingsViews/Pages/PPTFlipButtonSettingsPage.xaml.cs:423
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
新增 FixedAspectRatioPanel 在父容器内计算最大 16:9 矩形,替换原 Viewbox 缩放方案;预览画布按实际尺寸排列子元素,翻页按钮 Border 的 Margin 按视图缩放比例计算,避免缩放变换导致的模糊与尺寸失真。
PPTFlipButtonSettingsPage 移除返回按钮与位置复选框,新增 InfoBar 操作提示,进入页面时切换 NavigationView 为 LeftMinimal 以扩展预览空间并在离开时恢复;BoardToolbarPage/ToolbarPage 配置操作按钮由 StackPanel+Margin 改为 SimpleStackPanel+Spacing,移除各页恢复默认按钮的显式 Padding 统一为样式默认值。
移除翻页按钮设置卡片内的独立配置按钮,改为 SettingsCard IsClickEnabled 整体可点击跳转。
|
啊这 |
No description provided.