New UI layout and UI improvements. Fixes #50

This commit is contained in:
emeric
2020-05-10 13:11:43 +02:00
parent 8277b9c82b
commit 74fc4e058e
79 changed files with 3003 additions and 1987 deletions
+3 -3
View File
@@ -44,9 +44,9 @@ namespace CoverArt
Release,
};
Type type;
Type type;
Database::IdType id;
std::size_t size;
std::size_t size;
bool operator==(const CacheEntryDesc& other) const
{
@@ -114,7 +114,7 @@ namespace CoverArt
void saveToCache(const CacheEntryDesc& entryDesc, const Image& image);
std::optional<Image> loadFromCache(const CacheEntryDesc& entryDesc);
static inline constexpr std::size_t _maxCacheEntries {300};
static inline constexpr std::size_t _maxCacheEntries {1000};
static inline const std::vector<std::filesystem::path> _fileExtensions {".jpg", ".jpeg", ".png", ".bmp"}; // TODO parametrize
static inline constexpr std::size_t _maxFileSize {10000000};
static inline const std::vector<std::filesystem::path> _preferredFileNames {"cover", "front"}; // TODO parametrize