mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-04 11:15:18 +08:00
fixed #609
This commit is contained in:
@@ -45,13 +45,21 @@
|
||||
<ui:TextBlock Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
|
||||
Text="实时生效,独占全屏模式下此模式不一定生效"
|
||||
Text="重启后生效"
|
||||
TextWrapping="Wrap" />
|
||||
<ui:ToggleSwitch Grid.Row="0"
|
||||
Grid.RowSpan="2"
|
||||
Grid.Column="1"
|
||||
Margin="0,0,24,0"
|
||||
IsChecked="{Binding Config.MaskWindowConfig.MaskEnabled, Mode=TwoWay}" />
|
||||
<b:Interaction.Triggers>
|
||||
<b:EventTrigger EventName="Unchecked">
|
||||
<b:InvokeCommandAction Command="{Binding SwitchMaskEnabledCommand}" />
|
||||
</b:EventTrigger>
|
||||
<b:EventTrigger EventName="Checked">
|
||||
<b:InvokeCommandAction Command="{Binding SwitchMaskEnabledCommand}" />
|
||||
</b:EventTrigger>
|
||||
</b:Interaction.Triggers>
|
||||
</Grid>
|
||||
</ui:CardExpander.Header>
|
||||
<StackPanel>
|
||||
|
||||
@@ -12,6 +12,7 @@ using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using BetterGenshinImpact.Service.Notification;
|
||||
using BetterGenshinImpact.Service.Notifier;
|
||||
using BetterGenshinImpact.View;
|
||||
using Wpf.Ui;
|
||||
using Wpf.Ui.Controls;
|
||||
|
||||
@@ -50,6 +51,19 @@ public partial class CommonSettingsPageViewModel : ObservableObject, INavigation
|
||||
{
|
||||
WeakReferenceMessenger.Default.Send(new PropertyChangedMessage<object>(this, "RefreshSettings", new object(), "重新计算控件位置"));
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private void OnSwitchMaskEnabled()
|
||||
{
|
||||
// if (Config.MaskWindowConfig.MaskEnabled)
|
||||
// {
|
||||
// MaskWindow.Instance().Show();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// MaskWindow.Instance().Hide();
|
||||
// }
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
public void OnGoToHotKeyPage()
|
||||
|
||||
Reference in New Issue
Block a user