thumbnail: Support jxl and plumbing for future formats. (#1058)
* add plumbing for additional thumbnailers * remove bad logging and fmt * fix bad logging message * add decoding ram limits * add configuration for thumbs * cleanups * fix rebase fails
This commit is contained in:
parent
edca40058b
commit
293350092c
6 changed files with 338 additions and 40 deletions
|
|
@ -36,7 +36,7 @@ use std::{
|
|||
|
||||
use crate::{
|
||||
app::{Action, ContextPage, Message as AppMessage, PreviewItem, PreviewKind},
|
||||
config::{Config, DialogConfig, Favorite, TimeConfig, TIME_CONFIG_ID},
|
||||
config::{Config, DialogConfig, Favorite, TabConfig, ThumbCfg, TimeConfig, TIME_CONFIG_ID},
|
||||
fl, home_dir,
|
||||
key_bind::key_binds,
|
||||
localize::LANGUAGE_SORTER,
|
||||
|
|
@ -945,7 +945,13 @@ impl Application for App {
|
|||
},
|
||||
});
|
||||
|
||||
let mut tab = Tab::new(location, flags.config.dialog_tab(), None, None);
|
||||
let mut tab = Tab::new(
|
||||
location,
|
||||
flags.config.dialog_tab(),
|
||||
ThumbCfg::default(),
|
||||
None,
|
||||
None,
|
||||
);
|
||||
tab.mode = tab::Mode::Dialog(flags.kind.clone());
|
||||
tab.sort_name = tab::HeadingOptions::Modified;
|
||||
tab.sort_direction = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue