[feature] Quick Panel
This commit is contained in:
parent
63052cb290
commit
189b6ba876
@ -988,6 +988,10 @@
|
||||
<TextBlock Text="在白板中显示当前时间和日期" VerticalAlignment="Center" FontSize="14" Margin="0,0,16,0"/>
|
||||
<ui:ToggleSwitch Name="ToggleSwitchEnableTimeDisplayInWhiteboardMode" IsOn="True" FontFamily="Microsoft YaHei UI" FontWeight="Bold" OnContent="开" OffContent="关" Toggled="ToggleSwitchEnableTimeDisplayInWhiteboardMode_Toggled"/>
|
||||
</ui:SimpleStackPanel>
|
||||
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left">
|
||||
<TextBlock Text="在收纳模式下启用快速面板" VerticalAlignment="Center" FontSize="14" Margin="0,0,16,0"/>
|
||||
<ui:ToggleSwitch Name="ToggleSwitchEnableQuickPanel" IsOn="True" FontFamily="Microsoft YaHei UI" FontWeight="Bold" OnContent="开" OffContent="关" Toggled="ToggleSwitchEnableQuickPanel_Toggled" />
|
||||
</ui:SimpleStackPanel>
|
||||
<!--
|
||||
<TextBlock Text="颜色主题" FontFamily="Microsoft YaHei UI" FontSize="14"/>
|
||||
<ComboBox Name="ComboBoxTheme" FontFamily="Microsoft YaHei UI" SelectedIndex="0" SelectionChanged="ComboBoxTheme_SelectionChanged">
|
||||
|
@ -49,14 +49,25 @@ namespace Ink_Canvas {
|
||||
|
||||
private void LeftUnFoldButtonDisplayQuickPanel_MouseUp(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
LeftUnFoldButtonQuickPanel.Visibility = Visibility.Visible;
|
||||
RightUnFoldButtonQuickPanel.Visibility = Visibility.Collapsed;
|
||||
|
||||
if (Settings.Appearance.IsShowQuickPanel==true)
|
||||
{
|
||||
LeftUnFoldButtonQuickPanel.Visibility = Visibility.Visible;
|
||||
RightUnFoldButtonQuickPanel.Visibility = Visibility.Collapsed;
|
||||
} else
|
||||
{
|
||||
UnFoldFloatingBar_MouseUp(sender, e);
|
||||
}
|
||||
}
|
||||
private void RightUnFoldButtonDisplayQuickPanel_MouseUp(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
RightUnFoldButtonQuickPanel.Visibility = Visibility.Visible;
|
||||
LeftUnFoldButtonQuickPanel.Visibility = Visibility.Collapsed;
|
||||
if (Settings.Appearance.IsShowQuickPanel == true)
|
||||
{
|
||||
RightUnFoldButtonQuickPanel.Visibility = Visibility.Visible;
|
||||
LeftUnFoldButtonQuickPanel.Visibility = Visibility.Collapsed;
|
||||
} else
|
||||
{
|
||||
UnFoldFloatingBar_MouseUp(sender, e);
|
||||
}
|
||||
}
|
||||
|
||||
private void HideQuickPanel_MouseUp(object sender, MouseButtonEventArgs e)
|
||||
@ -111,7 +122,7 @@ namespace Ink_Canvas {
|
||||
if (MarginFromEdge == -10) LeftSidePanel.Visibility = Visibility.Visible;
|
||||
|
||||
ThicknessAnimation LeftSidePanelmarginAnimation = new ThicknessAnimation {
|
||||
Duration = TimeSpan.FromSeconds(isNoAnimation?0:0.175),
|
||||
Duration = TimeSpan.FromSeconds(isNoAnimation? 0 : 0.175),
|
||||
From = LeftSidePanel.Margin,
|
||||
To = new Thickness(MarginFromEdge, 0, 0, -150)
|
||||
};
|
||||
|
@ -115,6 +115,14 @@ namespace Ink_Canvas {
|
||||
LoadSettings();
|
||||
}
|
||||
|
||||
private void ToggleSwitchEnableQuickPanel_Toggled(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (!isLoaded) return;
|
||||
Settings.Appearance.IsShowQuickPanel = ToggleSwitchEnableQuickPanel.IsOn;
|
||||
SaveSettingsToFile();
|
||||
LoadSettings();
|
||||
}
|
||||
|
||||
private void ToggleSwitchEnableViewboxFloatingBarScaleTransform_Toggled(object sender, RoutedEventArgs e) {
|
||||
if (!isLoaded) return;
|
||||
Settings.Appearance.EnableViewboxFloatingBarScaleTransform = ToggleSwitchEnableViewboxFloatingBarScaleTransform.IsOn;
|
||||
@ -695,6 +703,7 @@ namespace Ink_Canvas {
|
||||
Settings.Appearance.IsShowHideControlButton = false;
|
||||
Settings.Appearance.IsShowLRSwitchButton = false;
|
||||
Settings.Appearance.IsShowModeFingerToggleSwitch = true;
|
||||
Settings.Appearance.IsShowQuickPanel = true;
|
||||
Settings.Appearance.Theme = 0;
|
||||
|
||||
Settings.Automation.IsAutoFoldInEasiNote = true;
|
||||
|
@ -115,6 +115,13 @@ namespace Ink_Canvas {
|
||||
|
||||
ToggleSwitchEnableViewboxFloatingBarScaleTransform.IsOn = false;
|
||||
}
|
||||
if (Settings.Appearance.IsShowQuickPanel)
|
||||
{
|
||||
ToggleSwitchEnableQuickPanel.IsOn = true;
|
||||
} else
|
||||
{
|
||||
ToggleSwitchEnableQuickPanel.IsOn = false;
|
||||
}
|
||||
if (Settings.Appearance.EnableViewboxBlackBoardScaleTransform) // 画板 UI 缩放 80%
|
||||
{
|
||||
ViewboxBlackboardLeftSideScaleTransform.ScaleX = 0.8;
|
||||
|
@ -127,6 +127,8 @@ namespace Ink_Canvas
|
||||
public bool IsShowHideControlButton { get; set; } = false;
|
||||
[JsonProperty("isShowLRSwitchButton")]
|
||||
public bool IsShowLRSwitchButton { get; set; } = false;
|
||||
[JsonProperty("isShowQuickPanel")]
|
||||
public bool IsShowQuickPanel { get; set; } = true;
|
||||
[JsonProperty("isShowModeFingerToggleSwitch")]
|
||||
public bool IsShowModeFingerToggleSwitch { get; set; } = true;
|
||||
[JsonProperty("theme")]
|
||||
|
Loading…
Reference in New Issue
Block a user