-
-
Notifications
You must be signed in to change notification settings - Fork 381
Support Svg File Icon Loading & Local favicon for bookmark plugin #3361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
5481a6a
Add local favicon load
onesounds 1f6d771
Remove useless NuGet package & Downgrade System.Drawing.Common package
Jack251970 f6740bc
Revert style
Jack251970 cab0cb8
Add SVG favicon support
onesounds d05389c
Added SVG for firefox
onesounds e662741
Revert "Add SVG favicon support"
Yusyuriv 02d0916
Adjust code format
Jack251970 d2c185e
Remove unnecessary dependencies
Yusyuriv 977a8f8
Log exception when deleting failed
Jack251970 fab9833
Merge branch '250320BookmarkFavicon' of https://github.com/onesounds/…
Jack251970 a87211b
Fix sqlite file lock issue & Add static
Jack251970 2b08ad6
Only clear pool for one connection
Jack251970 0c162b1
Fix call position
Jack251970 92ef2c7
Reduce nesting
Yusyuriv a837e8e
Close bookmarks db connection before trying to delete the file
Yusyuriv 443f17d
Code quality
Jack251970 dfc9d5b
- Add SVG convert for firefox
onesounds cb8b5f2
Merge remote-tracking branch 'origin/250320BookmarkFavicon' into 2503…
onesounds 4e8272f
- Removed "Remove Cache" button
onesounds 19c3971
Remove Skia nuget
onesounds 3387c2a
Remove svg related nuget and codes
onesounds 2c6fdc0
Merge branch 'dev' into 250320BookmarkFavicon
Jack251970 0430eea
Use api functions instead of project reference for code quality
Jack251970 168f898
Cleanup namespaces
Jack251970 b564a39
Use api functions instead of project reference for code quality
Jack251970 a845e68
Use plugin cache directory
Jack251970 53f3e73
Merge branch 'dev' into 250320BookmarkFavicon
Jack251970 49dc657
Fix build issue
Jack251970 9c07989
Improve code quality
Jack251970 4e1d4ab
Remove unused project reference
Jack251970 1aeaaf2
Add keyevent in Plugin project & Improve Shell plugin code quality
Jack251970 c035b65
Fix code documents issue
Jack251970 e07beb2
Add dispose
Jack251970 46712f2
Improve api documents
Jack251970 f71e746
Remove unused project reference
Jack251970 826bc42
Improve code quality
Jack251970 d4c9626
Improve code quality & Remove unused project reference
Jack251970 17cf74e
Add obsolete warning
Jack251970 c41d021
Add obsolete warning
Jack251970 da8a690
Improve code quality
Jack251970 f5de5d7
Fix log message issue
Jack251970 71b9e4a
Fix log info class name issue
Jack251970 d3d0ccf
Merge branch '250320BookmarkFavicon' of https://github.com/onesounds/…
Jack251970 048a40d
Code quality
Jack251970 7061ac5
Fix register bookmark file comment
Jack251970 f854cd3
Code quality
Jack251970 82f6788
Support svg image file loading
Jack251970 f01ccbf
Change function name
Jack251970 5e7573b
Add log messages
Jack251970 cce4e89
Add safeguards to SVG loading implementation
Jack251970 ab34e83
Merge branch 'dev' into 250320BookmarkFavicon
Jack251970 4f24646
Fix build issue
Jack251970 ba0205f
Force save favicon icons & Fix svg save issue
Jack251970 4c712f6
Fix svg render issue
Jack251970 62a5dd7
Delete temporary files
Jack251970 150ea84
Make sure temporary files deleted
Jack251970 3380079
Remove useless try catch
Jack251970 2d29a42
Improve code quality
Jack251970 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
Flow.Launcher.Core/Resource/LocalizedDescriptionAttribute.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
using System; | ||
using System.Globalization; | ||
using System.Windows.Data; | ||
using CommunityToolkit.Mvvm.DependencyInjection; | ||
using Flow.Launcher.Plugin; | ||
|
||
namespace Flow.Launcher.Core.Resource | ||
{ | ||
public class TranslationConverter : IValueConverter | ||
{ | ||
// We should not initialize API in static constructor because it will create another API instance | ||
private static IPublicAPI api = null; | ||
private static IPublicAPI API => api ??= Ioc.Default.GetRequiredService<IPublicAPI>(); | ||
|
||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
var key = value.ToString(); | ||
if (String.IsNullOrEmpty(key)) | ||
return key; | ||
return InternationalizationManager.Instance.GetTranslation(key); | ||
if (string.IsNullOrEmpty(key)) return key; | ||
return API.GetTranslation(key); | ||
} | ||
|
||
public object ConvertBack(object value, System.Type targetType, object parameter, CultureInfo culture) => throw new System.InvalidOperationException(); | ||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => | ||
throw new InvalidOperationException(); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
...auncher.Infrastructure/Hotkey/KeyEvent.cs → Flow.Launcher.Plugin/KeyEvent.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
EnumThreadWindows | ||
GetWindowText | ||
GetWindowTextLength | ||
GetWindowTextLength | ||
|
||
WM_KEYDOWN | ||
WM_KEYUP | ||
WM_SYSKEYDOWN | ||
WM_SYSKEYUP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.