add:多屏支持

This commit is contained in:
2026-04-30 18:35:37 +08:00
parent 483991b85c
commit 6fd4a4f036
@@ -20,6 +20,9 @@
<FrameworkElement.Resources>
<sys:Double x:Key="SettingsCardSpacing">4</sys:Double>
<c:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
<Style TargetType="ui:FontIcon">
<Setter Property="FontSize" Value="24" />
</Style>
<Style x:Key="SettingsSectionHeaderTextBlockStyle"
BasedOn="{StaticResource BodyStrongTextBlockStyle}"
TargetType="TextBlock">
@@ -60,17 +63,23 @@
<controls:LabeledSettingsCard x:Name="CardMultiScreenSupport"
Header="多屏支持"
Description="启用后将根据当前显示器环境启用多屏逻辑"
Icon="{x:Static ui:SegoeFluentIcons.BackToWindow}"
SwitchName="ToggleSwitchMultiScreenSupport"
Toggled="ToggleSwitchMultiScreenSupport_Toggled" />
Toggled="ToggleSwitchMultiScreenSupport_Toggled">
<controls:LabeledSettingsCard.HeaderIcon>
<ui:FontIcon Icon="{x:Static ui:FluentSystemIcons.Desktop_24_Regular}" />
</controls:LabeledSettingsCard.HeaderIcon>
</controls:LabeledSettingsCard>
<controls:LabeledSettingsCard x:Name="CardFollowMouseScreen"
Header="自动跟随鼠标选择显示屏"
Description="默认开启:自动以鼠标所在显示屏作为当前目标显示屏"
Icon="{x:Static ui:SegoeFluentIcons.TouchPointer}"
Visibility="{Binding IsOn, ElementName=CardMultiScreenSupport, Converter={StaticResource BooleanToVisibilityConverter}}"
SwitchName="ToggleSwitchFollowMouseScreen"
Toggled="ToggleSwitchFollowMouseScreen_Toggled" />
Toggled="ToggleSwitchFollowMouseScreen_Toggled">
<controls:LabeledSettingsCard.HeaderIcon>
<ui:FontIcon Icon="{x:Static ui:FluentSystemIcons.Desktop_24_Regular}" />
</controls:LabeledSettingsCard.HeaderIcon>
</controls:LabeledSettingsCard>
<ui:SettingsExpander x:Name="ExpanderAlwaysOnTop"
Header="{i18n:I18n Key=Startup_TopMost}"