Skip to content

Conversation

onesounds
Copy link
Contributor

@onesounds onesounds commented Sep 2, 2022

Features

  • Preview toggle (F1 Key) for image/full file path display.
  • Option for always on preview. (if turn off, not showing preview when open query bar) Default is off. (for Simple design impression)
  • Adjust Themes for Preview
  • Video/Image/Music file show large preview, others will showing small icon (need plugin update to support)

Sub Features

  • Recover Darker theme
  • Adjust Loading Image

Testcase

  • F1 should not work when empty query state.
  • Always Preview option (general in setting) should work when start flow.
  • Be visible in all width sizes / Themes
  • Works well any last query mode.
  • Glyph Icon should display with glyph mode
  • video/image file should large (max width), others should display small size (96x96)
  • Memory
  • Loading Icon should be gray round box, Files without icons are the same as before.
  • UWP apps icon should be 96x96 / transparency
  • media (jpg, gif, png, avi, mp4, wmv...) preview should be display large image
  • The media file should display normal regardless of the case of the extension. (e.g .gif/GIF)

Future Plans

  • Add High res Icons
  • Add File Type information
  • Customizable Preview hotkey
  • Customizable File Types
  • Click to Copy location or file name
  • LadUpdated/DateAdded/LastUsed info
  • Small Buttons
  • Custom Preview Area for plugins

@onesounds onesounds added the enhancement New feature or request label Sep 2, 2022
@onesounds onesounds self-assigned this Sep 2, 2022
@jjw24
Copy link
Member

jjw24 commented Sep 15, 2022

@onesounds @Garulf Is this ready or still waiting on the todos?

@onesounds
Copy link
Contributor Author

yep still in progress. it need video thumb / customcontrol panel for plugins

@jjw24 jjw24 marked this pull request as draft September 15, 2022 12:31
@jjw24 jjw24 added this to the 1.10.0 milestone Sep 15, 2022
@jjw24 jjw24 added the kind/ui related to UI, icons, themes, etc label Sep 15, 2022
@onesounds
Copy link
Contributor Author

This PR is dirty because I tried many things. (webview, videothumb, opengraph...)
In now. it's not good to merge/reviewing. I'll organize(with rollback) code or I'll make new PR when I get free time.

@jjw24 jjw24 marked this pull request as ready for review December 7, 2022 08:39
Comment on lines +275 to +287
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" };
Copy link
Member

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.

Copy link
Contributor

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.

Copy link
Member

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.

@jjw24 jjw24 merged commit 3dda618 into Flow-Launcher:dev Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request kind/ui related to UI, icons, themes, etc

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants