mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
chore: 可修改 gui.json 自定义 Background 模糊半径
This commit is contained in:
@@ -55,6 +55,7 @@ namespace MaaWpfGui.Constants
|
||||
public const string LastBuyWineTime = "GUI.LastBuyWineTime";
|
||||
public const string CustomCulture = "GUI.CustomCulture";
|
||||
public const string BackgroundOpacity = "GUI.BackgroundOpacity";
|
||||
public const string BackgroundBlurEffectRadius = "GUI.BackgroundBlurEffectRadius";
|
||||
|
||||
public const string AddressHistory = "Connect.AddressHistory";
|
||||
public const string AutoDetect = "Connect.AutoDetect";
|
||||
|
||||
@@ -334,6 +334,8 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
}
|
||||
}
|
||||
|
||||
public static int BackgroundBlurEffectRadius => int.Parse(ConfigurationHelper.GetGlobalValue(ConfigurationKeys.BackgroundBlurEffectRadius, "50"));
|
||||
|
||||
public void PreviewSlider_MouseUp(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (e.ChangedButton == MouseButton.Left)
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
Stretch="Fill"
|
||||
Visibility="{c:Binding BackgroundExist}">
|
||||
<Image.Effect>
|
||||
<BlurEffect Radius="10" />
|
||||
<BlurEffect Radius="{Binding BackgroundBlurEffectRadius}" />
|
||||
</Image.Effect>
|
||||
</Image>
|
||||
<DockPanel>
|
||||
|
||||
Reference in New Issue
Block a user