mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Get a list of available themes instead of the hardcoded list
This commit is contained in:
parent
f9f0fa852f
commit
817de9d39e
2 changed files with 8 additions and 1 deletions
|
|
@ -218,7 +218,11 @@ UM.PreferencesPage
|
||||||
id: themeList
|
id: themeList
|
||||||
|
|
||||||
Component.onCompleted: {
|
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() });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
{
|
{
|
||||||
|
"metadata": {
|
||||||
|
"name": "Ultimaker"
|
||||||
|
},
|
||||||
"fonts": {
|
"fonts": {
|
||||||
"large": {
|
"large": {
|
||||||
"size": 1.25,
|
"size": 1.25,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue