diff --git a/source/app/ui/qml/app/graphia/Controls/GradientSelector.qml b/source/app/ui/qml/app/graphia/Controls/GradientSelector.qml index 8c4dd7475..3b57b43a1 100644 --- a/source/app/ui/qml/app/graphia/Controls/GradientSelector.qml +++ b/source/app/ui/qml/app/graphia/Controls/GradientSelector.qml @@ -110,7 +110,7 @@ Window gradientListModel.remove(index); } - function add(configuration) + function addPreset(configuration) { let savedGradients = savedGradientsFromPreferences(); savedGradients.unshift(JSON.parse(configuration)); @@ -211,7 +211,7 @@ Window onClicked: function(mouse) { - gradientPresets.add(gradientEditor.configuration); + gradientPresets.addPreset(gradientEditor.configuration); } } @@ -269,7 +269,7 @@ Window { // Add a preset too, if it doesn't exist already if(gradientPresets.selectedIndex < 0) - gradientPresets.add(gradientEditor.configuration); + gradientPresets.addPreset(gradientEditor.configuration); visuals.defaultGradient = gradientEditor.configuration; } diff --git a/source/app/ui/qml/app/graphia/Controls/PaletteSelector.qml b/source/app/ui/qml/app/graphia/Controls/PaletteSelector.qml index 001ebdc9c..377b1947a 100644 --- a/source/app/ui/qml/app/graphia/Controls/PaletteSelector.qml +++ b/source/app/ui/qml/app/graphia/Controls/PaletteSelector.qml @@ -114,7 +114,7 @@ Window paletteListModel.remove(index); } - function add(configuration) + function addPreset(configuration) { let savedPalettes = savedPalettesFromPreferences(); savedPalettes.unshift(JSON.parse(configuration)); @@ -215,7 +215,7 @@ Window onClicked: function(mouse) { - palettePresets.add(paletteEditor.configuration); + palettePresets.addPreset(paletteEditor.configuration); } } @@ -273,7 +273,7 @@ Window { // Add a preset too, if it doesn't exist already if(palettePresets.selectedIndex < 0) - palettePresets.add(paletteEditor.configuration); + palettePresets.addPreset(paletteEditor.configuration); visuals.defaultPalette = paletteEditor.configuration; }