Allow selecting both default flavour and theme

Fixes #672
This commit is contained in:
Thibaut Girka
2018-10-08 15:00:27 +02:00
committed by ThibG
parent fac529975b
commit 3d5d899094
4 changed files with 19 additions and 2 deletions

View File

@@ -80,4 +80,10 @@ class Themes
def skins_for(name)
@conf[name]['skin'].keys
end
def flavours_and_skins
flavours.map do |flavour|
[flavour, skins_for(flavour).map{ |skin| [flavour, skin] }]
end
end
end