Get a list of available themes instead of the hardcoded list

This commit is contained in:
fieldOfView 2017-05-24 17:42:11 +02:00
parent f9f0fa852f
commit 817de9d39e
2 changed files with 8 additions and 1 deletions

View File

@ -218,7 +218,11 @@ UM.PreferencesPage
id: themeList
Component.onCompleted: {
append({ text: catalog.i18nc("@item:inlistbox", "Ultimaker"), code: "cura" })
var themes = UM.Theme.getThemes()
for (var i = 0; i < themes.length; i++)
{
append({ text: themes[i].name.toString(), code: themes[i].id.toString() });
}
}
}

View File

@ -1,4 +1,7 @@
{
"metadata": {
"name": "Ultimaker"
},
"fonts": {
"large": {
"size": 1.25,