Commit graph

109 commits

Author SHA1 Message Date
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
5ae159de5b
Move to iNKORE.UI.WPF.Modern UI Framework (#3593) 2025-10-05 13:44:40 +03:00
Jack251970
7350c1d4d5 Use Flow.Launcher.Localization to improve code quality 2025-09-23 17:14:30 +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
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
dde933a96b Use api functions instead 2025-04-13 17:26:21 +08:00
DB P
3d96a368ff Fix Preview CornerRadius (Get BasedOn Style) 2025-04-13 14:20:57 +09:00
DB P
2cf7f97a8b Add Import Function 2025-04-13 07:37:55 +09:00
Jack251970
dd210ad419 Remove RefreshFrameAsync since ChangeTheme calls this function 2025-04-08 16:41:06 +08:00
Jack Ye
a2d9957385
Log warning if cannot find matched theme
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-08 16:20:11 +08:00
Jack251970
ecd019dd6b Move ThemeData class to SharedModels 2025-04-08 15:56:54 +08:00
Jack251970
358b1fd7c8 Move theme data and functions into api 2025-04-04 20:10:39 +08:00
Jack251970
cd01260ee9 Fix typos 2025-03-29 16:41:11 +08:00
Jack Ye
356f229fd4
Update Flow.Launcher.Core/Resource/Theme.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-03-29 16:38:54 +08:00
Jack251970
91c5e84ca0 Integrate resize window to fixed window height 2025-03-29 15:27:25 +08:00
Jack251970
1a97a429b7 Support change resize boarder thinkness 2025-03-29 14:15:24 +08:00
Jack251970
d212e0eb6d Add code comments 2025-03-24 23:02:51 +08:00
Jack251970
2af033b316 Cleanup codes 2025-03-24 22:07:19 +08:00
DB p
2b67f5bc8d Avoid referencing _oldResource when it’s null 2025-03-24 19:08:54 +09:00
DB p
a078777608 - Fixed an issue where font settings were not applied when using the Blur theme
- Removed bold style from highlight and delegated it to individual themes
2025-03-24 18:10:12 +09:00
DB p
ec22f596d4 Fix Non Resource situation when change theme 2025-03-24 16:26:07 +09:00
Jack251970
95f151b196 Organize usings 2025-03-17 19:58:32 +08:00
Jack251970
da30e2e595 Improve code quality 2025-03-17 09:37:34 +08:00
Jack251970
0bcc187b5d Keep user settings when changing theme 2025-03-16 23:55:15 +08:00
Jack251970
9a6175e848 Remove useless position initialization & Remove useless dispatcher invoke 2025-03-16 16:44:36 +08:00
Jack251970
200c32b830 Code cleanup 2025-03-16 14:52:55 +08:00
Jack251970
7a854392fa Improve code quality 2025-03-16 14:43:53 +08:00
Jack251970
db37ab7373 Use PInvoke.DwmSetWindowAttribute instead of DllImport 2025-03-16 14:39:56 +08:00
Jack251970
e4ade45d83 Use PInvoke.DwmSetWindowAttribute instead of DllImport 2025-03-16 14:23:29 +08:00
Jack251970
07b0e7263f Code cleanup 2025-03-16 14:09:37 +08:00
DB p
0086a9e478 Add a condition to disable blur on unsupported Windows versions. 2025-03-16 12:55:47 +09:00
DB p
ce55303e9e - Fix Logic for dwmBG
- Remove Cornertypes in themes
2025-03-16 12:04:11 +09:00
DB p
d90b82a3ef Code Cleanup 2025-03-15 13:33:20 +09:00
DB p
4e15cb0f49 Comment cleanup 2025-03-15 13:26:38 +09:00
DB p
fd344a35b0 Fix Preview border 2025-03-14 19:07:33 +09:00
DB p
57d206ff7e Fix SystemBG color select 2025-03-14 17:43:51 +09:00
DB p
2cd769b1e9 Fix UI thread issue and preview 2025-03-14 10:00:31 +09:00
DB p
6c1730e79a Merge Dev 2025-03-13 14:45:34 +09:00
DB p
ec5d52e46d Fix Preview background 2025-03-13 13:50:09 +09:00
DB p
f4b074c617 Fix shadow effec tissue 2025-03-12 20:45:14 +09:00
Jack Ye
59fbef1d78 Use public current theme 2025-03-12 18:45:57 +08:00
DB p
ba02a3ca05 Add Strings 2025-03-11 12:50:37 +09:00
DB p
1c79d51e27 Fix Change Theme render timing 2025-03-11 12:32:27 +09:00
DB p
4fd5e1558d - Adjust Setting order
- Fix Plugin Activation Icon display
2025-03-11 11:55:41 +09:00