From ac404666bbbb3cbecc0f2548cbb127ce3fb4469e Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Mon, 9 Mar 2026 18:17:47 +0800 Subject: [PATCH] Refactor: use ThemeHelper.CopyStyle for style copying Replaced direct calls to CopyStyle with ThemeHelper.CopyStyle in Theme.cs. This centralizes style copying logic and improves code organization and maintainability. --- Flow.Launcher.Core/Resource/Theme.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher.Core/Resource/Theme.cs b/Flow.Launcher.Core/Resource/Theme.cs index 96ff5f7ed..669628fd9 100644 --- a/Flow.Launcher.Core/Resource/Theme.cs +++ b/Flow.Launcher.Core/Resource/Theme.cs @@ -485,7 +485,7 @@ namespace Flow.Launcher.Core.Resource // Get a new unsealed style based on the old one, and copy Resources and Triggers var newWindowBorderStyle = new Style(typeof(Border)); - CopyStyle(windowBorderStyle, newWindowBorderStyle); + ThemeHelper.CopyStyle(windowBorderStyle, newWindowBorderStyle); // Identify existing Margin to calculate new Margin, and copy other setters Setter existingMarginSetter = null; @@ -555,7 +555,7 @@ namespace Flow.Launcher.Core.Resource // Get a new unsealed style based on the old one, and copy Resources and Triggers var newWindowBorderStyle = new Style(typeof(Border)); - CopyStyle(windowBorderStyle, newWindowBorderStyle); + ThemeHelper.CopyStyle(windowBorderStyle, newWindowBorderStyle); // Copy Setters, excluding the Effect setter and updating the Margin setter foreach (var setterBase in windowBorderStyle.Setters)