Switched to qmlformat.

This commit is contained in:
ItsLemmy
2025-11-16 17:07:03 -05:00
parent 32905224b9
commit 3ff5b7639f
223 changed files with 9970 additions and 9658 deletions
@@ -2,8 +2,8 @@ import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import qs.Commons
import qs.Widgets
import qs.Services.System
import qs.Widgets
ColumnLayout {
id: root
@@ -18,31 +18,37 @@ ColumnLayout {
property string valueColorName: widgetData.colorName !== undefined ? widgetData.colorName : widgetMetadata.colorName
function saveSettings() {
var settings = Object.assign({}, widgetData || {})
settings.colorName = valueColorName
return settings
var settings = Object.assign({}, widgetData || {});
settings.colorName = valueColorName;
return settings;
}
NComboBox {
Layout.fillWidth: true
label: I18n.tr("bar.widget-settings.audio-visualizer.color-name.label")
description: I18n.tr("bar.widget-settings.audio-visualizer.color-name.description")
model: [{
model: [
{
"key": "primary",
"name": I18n.tr("options.colors.primary")
}, {
},
{
"key": "secondary",
"name": I18n.tr("options.colors.secondary")
}, {
},
{
"key": "tertiary",
"name": I18n.tr("options.colors.tertiary")
}, {
},
{
"key": "onSurface",
"name": I18n.tr("options.colors.onSurface")
}, {
},
{
"key": "error",
"name": I18n.tr("options.colors.error")
}]
}
]
currentKey: root.valueColorName
onSelected: key => root.valueColorName = key
}