fixes button

This commit is contained in:
2026-06-26 14:45:42 +03:00
parent 84a007f9d0
commit cdb731d837
33 changed files with 594 additions and 99 deletions
+11 -4
View File
@@ -17,6 +17,7 @@ Dialog {
urlF.text = ""
successF.text = ""
errorF.text = "Ошибка"
pendingF.text = "..."
colorF.text = "#7b007b"
iconCombo.model = btnController.listIcons()
iconCombo.currentIndex = 0
@@ -32,6 +33,7 @@ Dialog {
urlF.text = o.actionUrl
successF.text = o.successText
errorF.text = o.errorText
pendingF.text = o.pendingText || "..."
colorF.text = o.btnColor || "#7b007b"
iconCombo.model = btnController.listIcons()
var ip = o.iconPath || ""
@@ -90,6 +92,11 @@ Dialog {
Layout.fillWidth: true
placeholderText: "Текст ошибки"
}
TextField {
id: pendingF
Layout.fillWidth: true
placeholderText: "Текст ожидания"
}
RowLayout {
Layout.fillWidth: true
Text { text: "Цвет:"; color: settingsContainer.darkMode ? "white" : "black" }
@@ -142,13 +149,13 @@ Dialog {
if (editId === "") {
btnController.addButton(labelF.text, iconCombo.currentText,
typeCombo.currentText, urlF.text,
successF.text, errorF.text, colorF.text,
mode, hold)
successF.text, errorF.text, pendingF.text,
colorF.text, mode, hold)
} else {
btnController.updateButton(editId, labelF.text, iconCombo.currentText,
typeCombo.currentText, urlF.text,
successF.text, errorF.text, colorF.text,
mode, hold)
successF.text, errorF.text, pendingF.text,
colorF.text, mode, hold)
}
}
}