feat: 浮动栏截图修改为选区截图,添加“添加到白板”按钮 (#377)

* 调整截图按钮默认行为为选区/白板全屏

* 截图选择器新增添加到白板按钮并支持新建白板页插入

* 修复添加到白板不生效:改为剪贴板复制粘贴插入

* 修复添加到白板截图时序:先截到内存再进白板

* Fix screenshot insert flow honoring add-to-whiteboard option

* Refine screenshot selector freehand confirm and blank double-click full select

* Fix freehand whiteboard insert alpha transparency

* Fix screenshot insert notification text for whiteboard flow

* Adjust screenshot selection: right-click/double-click full-select and keep selector on single click

* Show unmasked freehand selection area like rectangle mode

* Remove freehand cutout mask rendering from screenshot selector

* Restore freehand selected-area unmask behavior in selector
This commit is contained in:
tayasui rainnya!
2026-02-22 14:04:11 +08:00
committed by GitHub
parent 2d51eb73b5
commit c06be8f502
5 changed files with 393 additions and 43 deletions
@@ -11,6 +11,7 @@
Cursor="Cross"
KeyDown="Window_KeyDown"
MouseLeftButtonDown="Window_MouseLeftButtonDown"
MouseRightButtonDown="Window_MouseRightButtonDown"
MouseMove="Window_MouseMove"
MouseLeftButtonUp="Window_MouseLeftButtonUp">
@@ -149,6 +150,15 @@
BorderThickness="0"
FontWeight="Medium"
Click="ConfirmButton_Click" />
<Button Name="AddToWhiteboardButton"
Content="添加到白板"
Margin="4,0"
Padding="12,6"
Background="#2563eb"
Foreground="White"
BorderThickness="0"
FontWeight="Medium"
Click="AddToWhiteboardButton_Click" />
<Button Name="CancelButton"
Content="取消"
Margin="4,0"
@@ -270,7 +280,7 @@
Margin="0,0,0,140"
Panel.ZIndex="1000">
<TextBlock Name="HintText"
Text="拖拽鼠标选择矩形区域,或使用自由绘制模式"
Text="拖拽选择区域,右键或双击可全选屏幕;自由绘制松开后需点击确认"
Foreground="White"
FontSize="14"
FontWeight="Medium" />