Commit graph

194 commits

Author SHA1 Message Date
Jack251970
c0134d5692 Refactor theme resource dictionary retrieval logic
Replaced separate calls to GetResourceDictionary and UpdateResourceDictionary with a single GetThemeResourceDictionary call in Theme.cs. Updated blur enablement check to use the new dictionary variable, simplifying theme resource management.
2026-03-09 18:35:35 +08:00
Jack Ye
dad8f3e695
Merge branch 'dev' into Theme_Enhancement 2026-03-09 12:05:48 +08:00
Jack251970
7766d7053d Rename GetFreezeSolidColorBrush to GetFrozenSolidColorBrush
Renamed the method GetFreezeSolidColorBrush to GetFrozenSolidColorBrush in ThemeHelper.cs for improved naming consistency. Updated all references in Theme.cs accordingly. No changes to functionality.
2026-03-08 23:49:09 +08:00
Jack251970
36e15d3809 Refactor: move CopyStyle to ThemeHelper class
Moved the CopyStyle method from Theme to a new static ThemeHelper class for better code organization and reusability. Updated all references in Theme to use ThemeHelper.CopyStyle. Added ThemeHelper.cs and necessary using directives.
2026-03-08 23:48:10 +08:00
Jack251970
ed14c45fd2 Refactor brush creation with ThemeHelper utility
Introduce ThemeHelper.GetFreezeSolidColorBrush to centralize and reuse SolidColorBrush creation and freezing logic. Refactor Theme.cs to use this helper, improving code clarity and maintainability. Also, use Brushes.Transparent directly where appropriate.
2026-03-08 23:46:08 +08:00
Jack251970
9abf136ea2 Improve SolidColorBrush usage and property checks in Theme
Refactor background brush creation to assign, freeze, and reuse
SolidColorBrush instances for better WPF performance. Replace
string-based property checks with type-safe Control.BackgroundProperty
comparisons for improved robustness.
2026-03-04 12:48:48 +08:00
Jack251970
6566871b15 Refactor theme blur and dark mode handling logic
Refactored Theme.cs to improve theme blur and dark mode handling:
- Replaced static IsBlurTheme() with IsThemeBlurEnabled(dict) for per-theme blur detection.
- Updated all blur checks to use the new method.
- Improved code style, readability, and comments.
- Moved system dark mode registry check to only run when needed.
- Ensured blur and dark mode are applied based on theme and user/system preferences.
2026-03-02 18:03:24 +08:00
Jack Ye
a2d12eb225
Merge branch 'dev' into plugin_initialization 2025-10-05 19:25:01 +08:00
Jack Ye
5ae159de5b
Move to iNKORE.UI.WPF.Modern UI Framework (#3593) 2025-10-05 13:44:40 +03:00
Jack251970
5ed94c8abc Resolve conflicts 2025-10-02 20:25:45 +08:00
Jack Ye
6213193cda
Merge branch 'dev' into plugin_initialization 2025-10-02 20:22:20 +08:00
Jack251970
0e366a6269 Use PublicApi.Instance instead of private one 2025-09-23 17:40:54 +08:00
Jack251970
7350c1d4d5 Use Flow.Launcher.Localization to improve code quality 2025-09-23 17:14:30 +08:00
Jack Ye
3116f3d363
Merge branch 'dev' into plugin_initialization 2025-09-21 13:22:31 +08:00
Jack251970
0f6245a072 Handle exceptions inside ChangeLanguageAsync to avoid unobserved task crashes 2025-09-18 18:18:02 +08:00
Jack251970
86581e6a00 Add disposable for internalization 2025-09-18 18:17:27 +08:00
Jack251970
330e6c09e7 Add language change lock 2025-09-18 18:07:18 +08:00
Jack251970
6c695f09e7 Use clear function 2025-09-18 17:55:06 +08:00
Jack251970
b05c2c1e1a Remove old dictionaries references to fix possible memory leak 2025-09-18 16:25:21 +08:00
Jack Ye
cf8096f276
Merge branch 'dev' into plugin_initialization 2025-09-05 20:35:05 +08:00
Jeremy Wu
e1cc50c579 Merge remote-tracking branch 'origin/master' into resolve_conflicts 2025-08-31 17:53:21 +10:00
Jeremy Wu
a9b5b3aa38
Merge pull request #3860 from Flow-Launcher/taooceros-patch-1
Add Srpski (Cyrillic)
2025-08-20 18:31:51 +10:00
Jack251970
d8f8de2abe Use Српски instead of Српска 2025-08-16 11:41:25 +08:00
Kevin Zhang
7664944ff2
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-28 16:27:47 -05:00
Kevin Zhang
16603697a5
Add Srpski (Cyrillic) 2025-07-22 22:48:19 -05:00
Jack251970
d4e672d630 Add support to update translation for one plugin 2025-07-21 13:55:47 +08:00
Jack Ye
71eaf2d789
Merge branch 'dev' into code_quality 2025-07-21 10:23:08 +08:00
Jack Ye
ed0524d207
Merge branch 'dev' into code_quality 2025-07-20 20:02:51 +08:00
Jack251970
fea899d09a No need to get lower for language code 2025-07-20 17:37:12 +08:00
Jack251970
f77f14b0ee Improve code quality 2025-07-20 17:35:07 +08:00
Jack251970
ac7da2d2d6 Do not check if the language directory contains default language file 2025-07-20 17:26:14 +08:00
Jack251970
5e8acf7d74 Use OrdinalIgnoreCase 2025-07-20 15:29:27 +08:00
Jack251970
634bdc5bd6 Do not check Flow Launcher default language file since it is binary embedded 2025-07-20 15:26:07 +08:00
Jack251970
2ee53dfbf7 Initialize language before portable clean up since it needs translations 2025-07-20 15:20:18 +08:00
Jack251970
0682e9bed1 Improve code quality for public api 2025-07-20 11:38:44 +08:00
Jack Ye
fc6ff5a7a0
Merge branch 'dev' into code_quality 2025-07-14 09:09:09 +08:00
Jeremy Wu
2e0dd1cfa1
Release 1.20.2 | Plugin 4.7.0 (#3820) 2025-07-13 17:18:34 +03:00
Jack251970
d3f5274b24 Make GetPluginsForInterface private & Code quality 2025-07-03 20:45:20 +08:00
Jack251970
9be2ef0924 Remove unused class 2025-06-23 13:03:45 +08:00
Jack Ye
43c74f04ac
Merge branch 'dev' into winform_language_issue 2025-06-16 21:10:19 +08:00
Jeremy Wu
7ae91b1af3
Release 1.20.1 | Plugin 4.6.0 (#3706) 2025-06-14 13:45:30 +03:00
Jack Ye
a02a236ca4
Merge branch 'dev' into explorer_plugin_code_quality 2025-06-06 21:30:54 +08:00
DB P
c6ed0bdc2a Adjust window border style for blur themes and update border brush resource 2025-06-02 18:01:09 +09:00
Jack251970
4a50eec281 Remove TranslationConverter & project reference in Explorer plugin 2025-05-30 10:59:22 +08:00
Jack251970
b0997449c1 Handle CultureNotFoundException 2025-05-21 14:38:15 +08:00
Jack251970
f7f52e269a Set culture info before creating application 2025-05-21 14:31:09 +08:00
Jack Ye
8bb96d7f58
Fix copy to clipboard STA thread issue & Support retry for copy & Async build-in shortcut model & Fix build shortcuts text replace issue & Fix startup window hide issue (#3314) 2025-05-02 14:26:14 +10:00
DB P
b2a3782f63
Merge branch 'dev' into 250412-ImportThemePreset 2025-04-14 09:09:04 +09:00
Jack251970
4a7915b9ff Use api fuctions forr main project 2025-04-13 17:50:44 +08:00
Jack251970
dde933a96b Use api functions instead 2025-04-13 17:26:21 +08:00