-
-
Notifications
You must be signed in to change notification settings - Fork 448
Preview Panel #1360
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
Preview Panel #1360
Conversation
- Fix Seperate line for toggle - Block preview when nothing result
@onesounds @Garulf Is this ready or still waiting on the todos? |
yep still in progress. it need video thumb / customcontrol panel for plugins |
- Change Preview High Resolution
- change small icon in result to folder thumbnail
This PR is dirty because I tried many things. (webview, videothumb, opengraph...) |
- Fix Binding Error
e7baaaf
to
5a7eb62
Compare
1. Separate image loading logic 2. Make IconDelegate async while calling to avoid blocking UI thread
f35b07f
to
0231c32
Compare
public static bool IsMedia(string extension) | ||
{ | ||
if (string.IsNullOrEmpty(extension)) | ||
{ | ||
return false; | ||
} | ||
else | ||
{ | ||
return MediaExtensions.Contains(extension.ToLowerInvariant()); | ||
} | ||
} | ||
|
||
public static readonly string[] MediaExtensions = { ".jpg", ".png", ".avi", ".mkv", ".bmp", ".gif", ".wmv", ".mp3", ".flac", ".mp4" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@taooceros @VictoriousRaptor I think this is probably better moved to the plugin project, the idea is that plugin does not need to determine and provide whether the result path is a media or not and let Flow determine it, i.e. flow controls whether to display large preview image.
Let me know what you think, we can update it next round.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree. but plugin should still have control to whether to use large preview. programs should use small preview. just move this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I think if plugin does not specify anything, flow will work out if it's media and size accordingly by default.
Features
Sub Features
Testcase
Future Plans