mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 10:49:03 +08:00
Get a list of available themes instead of the hardcoded list
This commit is contained in:
parent
f9f0fa852f
commit
817de9d39e
@ -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…
x
Reference in New Issue
Block a user