mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-17 19:26:36 -07:00
feat: v0.0.5
This commit is contained in:
parent
4c4ebc593d
commit
242a82ad8c
36 changed files with 694 additions and 174 deletions
|
|
@ -30,6 +30,15 @@ const (
|
|||
ImageCacheDir = "image_cache"
|
||||
)
|
||||
|
||||
func ImageSourceSize() (size ImageSize) {
|
||||
if cfg.FullImageCacheEnabled() {
|
||||
size = ImageSizeFull
|
||||
} else {
|
||||
size = ImageSizeLarge
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func ParseImageSize(size string) (ImageSize, error) {
|
||||
switch strings.ToLower(size) {
|
||||
case "small":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue