add:PPT侧边栏
This commit is contained in:
@@ -2438,6 +2438,16 @@
|
|||||||
<ComboBoxItem Content="顶部居中" />
|
<ComboBoxItem Content="顶部居中" />
|
||||||
</ComboBox>
|
</ComboBox>
|
||||||
</ui:SimpleStackPanel>
|
</ui:SimpleStackPanel>
|
||||||
|
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left">
|
||||||
|
<TextBlock Foreground="#fafafa" Text="PPT 放映时显示快速面板" VerticalAlignment="Center"
|
||||||
|
FontSize="14" Margin="0,0,16,0" />
|
||||||
|
<ui:ToggleSwitch OnContent="" OffContent=""
|
||||||
|
Name="ToggleSwitchShowPPTSidebarByDefault" IsOn="False"
|
||||||
|
FontFamily="Microsoft YaHei UI" FontWeight="Bold"
|
||||||
|
Toggled="ToggleSwitchShowPPTSidebarByDefault_Toggled" />
|
||||||
|
</ui:SimpleStackPanel>
|
||||||
|
<TextBlock Text="# 关闭后在 PPT 放映时不显示快速面板" TextWrapping="Wrap"
|
||||||
|
Foreground="#a1a1aa" />
|
||||||
<Line HorizontalAlignment="Center" X1="0" Y1="0" X2="400" Y2="0" Stroke="#3f3f46"
|
<Line HorizontalAlignment="Center" X1="0" Y1="0" X2="400" Y2="0" Stroke="#3f3f46"
|
||||||
StrokeThickness="1" Margin="0,4,0,4" />
|
StrokeThickness="1" Margin="0,4,0,4" />
|
||||||
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left">
|
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left">
|
||||||
|
|||||||
@@ -3811,8 +3811,10 @@ namespace Ink_Canvas
|
|||||||
{
|
{
|
||||||
if (PPTQuickPanelContainer == null || PPTQuickPanel == null) return;
|
if (PPTQuickPanelContainer == null || PPTQuickPanel == null) return;
|
||||||
|
|
||||||
// 仅在PPT模式下显示
|
// 仅在 PPT 模式下且用户开启“PPT 放映时显示快速面板”时显示
|
||||||
if (BtnPPTSlideShowEnd.Visibility == Visibility.Visible)
|
bool inSlideShow = BtnPPTSlideShowEnd.Visibility == Visibility.Visible;
|
||||||
|
bool showQuickPanel = Settings.PowerPointSettings.ShowPPTSidebarByDefault;
|
||||||
|
if (inSlideShow && showQuickPanel)
|
||||||
{
|
{
|
||||||
PPTQuickPanelContainer.Visibility = Visibility.Visible;
|
PPTQuickPanelContainer.Visibility = Visibility.Visible;
|
||||||
PPTQuickPanel?.UpdateVisibility(true);
|
PPTQuickPanel?.UpdateVisibility(true);
|
||||||
|
|||||||
@@ -1748,6 +1748,15 @@ namespace Ink_Canvas
|
|||||||
UpdatePPTBtnPreview();
|
UpdatePPTBtnPreview();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ToggleSwitchShowPPTSidebarByDefault_Toggled(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (!isLoaded) return;
|
||||||
|
Settings.PowerPointSettings.ShowPPTSidebarByDefault = ToggleSwitchShowPPTSidebarByDefault.IsOn;
|
||||||
|
SaveSettingsToFile();
|
||||||
|
if (BtnPPTSlideShowEnd?.Visibility == Visibility.Visible)
|
||||||
|
UpdatePPTQuickPanelVisibility();
|
||||||
|
}
|
||||||
|
|
||||||
private void ToggleSwitchEnablePPTButtonPageClickable_OnToggled(object sender, RoutedEventArgs e)
|
private void ToggleSwitchEnablePPTButtonPageClickable_OnToggled(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
if (!isLoaded) return;
|
if (!isLoaded) return;
|
||||||
|
|||||||
@@ -562,6 +562,10 @@ namespace Ink_Canvas
|
|||||||
}
|
}
|
||||||
ComboBoxPPTTimeCapsulePosition.SelectedIndex = position;
|
ComboBoxPPTTimeCapsulePosition.SelectedIndex = position;
|
||||||
}
|
}
|
||||||
|
if (ToggleSwitchShowPPTSidebarByDefault != null)
|
||||||
|
{
|
||||||
|
ToggleSwitchShowPPTSidebarByDefault.IsOn = Settings.PowerPointSettings.ShowPPTSidebarByDefault;
|
||||||
|
}
|
||||||
|
|
||||||
// -- new --
|
// -- new --
|
||||||
ToggleSwitchShowPPTButton.IsOn = Settings.PowerPointSettings.ShowPPTButton;
|
ToggleSwitchShowPPTButton.IsOn = Settings.PowerPointSettings.ShowPPTButton;
|
||||||
|
|||||||
@@ -405,6 +405,8 @@ namespace Ink_Canvas
|
|||||||
public int PPTTimeCapsulePosition { get; set; } = 1;
|
public int PPTTimeCapsulePosition { get; set; } = 1;
|
||||||
[JsonProperty("useRotPptLink")]
|
[JsonProperty("useRotPptLink")]
|
||||||
public bool UseRotPptLink { get; set; } = false;
|
public bool UseRotPptLink { get; set; } = false;
|
||||||
|
[JsonProperty("showPPTSidebarByDefault")]
|
||||||
|
public bool ShowPPTSidebarByDefault { get; set; } = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Automation
|
public class Automation
|
||||||
|
|||||||
Reference in New Issue
Block a user