mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Update WindowBorderStyle to use global app resources
Changed assignment of WindowBorderStyle to use Application.Current.Resources for global effect, replacing previous use of _oldResource. This ensures theme changes are applied consistently across the application.
This commit is contained in:
parent
46cecb2acc
commit
65042d9fe1
1 changed files with 2 additions and 2 deletions
|
|
@ -588,7 +588,7 @@ namespace Flow.Launcher.Core.Resource
|
|||
|
||||
SetResizeBoarderThickness(newMargin);
|
||||
|
||||
_oldResource["WindowBorderStyle"] = newWindowBorderStyle;
|
||||
Application.Current.Resources["WindowBorderStyle"] = newWindowBorderStyle;
|
||||
}
|
||||
|
||||
public void RemoveDropShadowEffectFromCurrentTheme()
|
||||
|
|
@ -629,7 +629,7 @@ namespace Flow.Launcher.Core.Resource
|
|||
|
||||
SetResizeBoarderThickness(null);
|
||||
|
||||
_oldResource["WindowBorderStyle"] = newWindowBorderStyle;
|
||||
Application.Current.Resources["WindowBorderStyle"] = newWindowBorderStyle;
|
||||
}
|
||||
|
||||
public void SetResizeBorderThickness(WindowChrome windowChrome, bool fixedWindowSize)
|
||||
|
|
|
|||
Loading…
Reference in a new issue