Extract background color to continue image
This commit is contained in:
parent
35d07c1aa4
commit
26c282138e
23 changed files with 218 additions and 115 deletions
|
@ -397,6 +397,8 @@ func SyncExercice(i Importer, theme *fic.Theme, epath string, dmap *map[int64]*f
|
|||
|
||||
e.Image = strings.TrimPrefix(filePath, fic.FilesDir)
|
||||
|
||||
e.BackgroundColor, _ = getBackgroundColor(filePath)
|
||||
|
||||
// If the theme has no image yet, use the first exercice's image found
|
||||
theme.Image = e.Image
|
||||
_, err := theme.Update()
|
||||
|
|
Reference in a new issue