improve:PPT翻页打断

新增设置项
This commit is contained in:
2025-12-20 18:37:57 +08:00
parent 39e8b2359e
commit f3ddd5a11a
4 changed files with 25 additions and 1 deletions
+13
View File
@@ -1944,6 +1944,19 @@
<TextBlock
Text="# 开启该选项后,长按PPT翻页按钮可以连续翻页,提高翻页效率。"
TextWrapping="Wrap" Foreground="#a1a1aa" />
<ui:SimpleStackPanel Orientation="Horizontal"
HorizontalAlignment="Left" Margin="0,6,0,0">
<TextBlock Foreground="#fafafa" Text="点击翻页时跳过当前页动画,直接切到下一张"
VerticalAlignment="Center" FontSize="14" Margin="0,0,16,0" />
<ui:ToggleSwitch OnContent="" OffContent=""
Name="ToggleSwitchSkipAnimationsWhenGoNext"
IsOn="False"
FontFamily="Microsoft YaHei UI" FontWeight="Bold"
Toggled="ToggleSwitchSkipAnimationsWhenGoNext_OnToggled" />
</ui:SimpleStackPanel>
<TextBlock
Text="# 开启该选项后,点击“下一页”按钮时如果仍停留在同一页,会强制直接切到下一张幻灯片,从而跳过该页的动画。"
TextWrapping="Wrap" Foreground="#a1a1aa" />
</ui:SimpleStackPanel>
<Line HorizontalAlignment="Center" X1="0" Y1="0" X2="400" Y2="0" Stroke="#3f3f46"
StrokeThickness="1" Margin="0,4,0,4" />
+3 -1
View File
@@ -1537,7 +1537,9 @@ namespace Ink_Canvas
strokesToSave = inkCanvas.Strokes.Clone();
}
if (_pptManager?.TryNavigateNext(skipAnimations: true) == true)
var skipAnimations = Settings.PowerPointSettings.SkipAnimationsWhenGoNext;
if (_pptManager?.TryNavigateNext(skipAnimations: skipAnimations) == true)
{
var currentSlideAfterNavigate = _pptManager?.GetCurrentSlideNumber() ?? 0;
+7
View File
@@ -578,6 +578,13 @@ namespace Ink_Canvas
SaveSettingsToFile();
}
private void ToggleSwitchSkipAnimationsWhenGoNext_OnToggled(object sender, RoutedEventArgs e)
{
if (!isLoaded) return;
Settings.PowerPointSettings.SkipAnimationsWhenGoNext = ToggleSwitchSkipAnimationsWhenGoNext.IsOn;
SaveSettingsToFile();
}
private void CheckboxEnableLBPPTButton_IsCheckChanged(object sender, RoutedEventArgs e)
{
if (!isLoaded) return;
+2
View File
@@ -319,6 +319,8 @@ namespace Ink_Canvas
public bool EnablePowerPointEnhancement { get; set; } = false;
[JsonProperty("showGestureButtonInSlideShow")]
public bool ShowGestureButtonInSlideShow { get; set; } = false;
[JsonProperty("skipAnimationsWhenGoNext")]
public bool SkipAnimationsWhenGoNext { get; set; } = false;
}
public class Automation