diff options
author | pacien | 2020-01-05 10:43:30 +0100 |
---|---|---|
committer | pacien | 2020-01-05 10:43:30 +0100 |
commit | 1a0f4b17fc77c4b330c43185a15230e67116a3aa (patch) | |
tree | 4eed3493dfc9a195eacdd634bf58f9b7fc262e1d /compiler/src/Config.hs | |
parent | 7da7ae1848a23b13ec4b258fd9e714c0f4943850 (diff) | |
download | ldgallery-1a0f4b17fc77c4b330c43185a15230e67116a3aa.tar.gz |
compiler: rename max thumbnail size option
Diffstat (limited to 'compiler/src/Config.hs')
-rw-r--r-- | compiler/src/Config.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/Config.hs b/compiler/src/Config.hs index ca3259f..9bb2860 100644 --- a/compiler/src/Config.hs +++ b/compiler/src/Config.hs | |||
@@ -44,7 +44,7 @@ data CompilerConfig = CompilerConfig | |||
44 | { galleryName :: String | 44 | { galleryName :: String |
45 | , ignoreFiles :: String | 45 | , ignoreFiles :: String |
46 | , implicitDirectoryTag :: Bool | 46 | , implicitDirectoryTag :: Bool |
47 | , thumbnailResolution :: Resolution | 47 | , thumbnailMaxResolution :: Resolution |
48 | , pictureMaxResolution :: Maybe Resolution | 48 | , pictureMaxResolution :: Maybe Resolution |
49 | } deriving (Generic, Show) | 49 | } deriving (Generic, Show) |
50 | 50 | ||
@@ -53,7 +53,7 @@ instance FromJSON CompilerConfig where | |||
53 | <$> v .:? "galleryName" .!= "Gallery" | 53 | <$> v .:? "galleryName" .!= "Gallery" |
54 | <*> v .:? "ignoreFiles" .!= ".^" | 54 | <*> v .:? "ignoreFiles" .!= ".^" |
55 | <*> v .:? "implicitDirectoryTag" .!= False | 55 | <*> v .:? "implicitDirectoryTag" .!= False |
56 | <*> v .:? "thumbnailResolution" .!= (Resolution 400 400) | 56 | <*> v .:? "thumbnailMaxResolution" .!= (Resolution 400 400) |
57 | <*> v .:? "pictureMaxResolution" | 57 | <*> v .:? "pictureMaxResolution" |
58 | 58 | ||
59 | 59 | ||