diff --git a/src/config/defaults.ts b/src/config/defaults.ts index 763ccc2d..ac56c13c 100644 --- a/src/config/defaults.ts +++ b/src/config/defaults.ts @@ -68,6 +68,8 @@ export default { notify: true, }, wallpaper: { + maxResults: 20, // Actual max results, -1 for infinite + showAllEmpty: true, // Show all wallpapers when search is empty style: "medium", // One of "compact", "medium", "large" }, disabledActions: ["logout", "shutdown", "reboot", "hibernate"], // Actions to hide, see launcher/actions.tsx for available actions diff --git a/src/config/types.ts b/src/config/types.ts index 0d875cea..a311f88e 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -44,6 +44,8 @@ export default { "launcher.files.shortenThreshold": NUM, "launcher.math.maxResults": NUM, "launcher.todo.notify": BOOL, + "launcher.wallpaper.maxResults": NUM, + "launcher.wallpaper.showAllEmpty": BOOL, "launcher.wallpaper.style": ["compact", "medium", "large"], "launcher.disabledActions": ARR(STR), // Notif popups diff --git a/src/modules/launcher/actions.tsx b/src/modules/launcher/actions.tsx index 64f475a0..04c54581 100644 --- a/src/modules/launcher/actions.tsx +++ b/src/modules/launcher/actions.tsx @@ -287,7 +287,7 @@ const Scheme = ({ scheme, name, colours }: { scheme?: string; name: string; colo ); }; -const Wallpaper = ({ path, thumbnail }: IWallpaper) => ( +const Wallpaper = ({ path, thumbnails }: IWallpaper) => ( ); +const CategoryThumbnail = ({ style, wallpapers }: { style: string; wallpapers: IWallpaper[] }) => ( + + {wallpapers.slice(0, 3).map(w => ( + + ))} + +); + const Category = ({ path, wallpapers }: ICategory) => (