Fixed Variable dialog erroneously saying that a valid type was invalid, removed old states and renamed NewEditor to Editor, updated dialogs with 2 side-by-side buttons to use 0.5 instead of 0.475 dynamic width, removed manual newlines in dialogs since TextBlock now supports word wrap.

This commit is contained in:
2021-06-18 03:35:57 +00:00
parent 64d4f08410
commit 2969e3df9e
14 changed files with 181 additions and 815 deletions

View File

@@ -15,14 +15,14 @@ module TAC
end
flow width: 1.0, margin_top: THEME_DIALOG_BUTTON_PADDING do
button "Cancel", width: 0.475 do
button "Cancel", width: 0.5 do
close
end
accept_label = @options[:renaming] ? "Update" : "Add"
accept_label = @options[:accept_label] if @options[:accept_label]
button accept_label, width: 0.475 do
button accept_label, width: 0.5 do
try_commit
end
end
@@ -44,7 +44,7 @@ module TAC
name = @name.value.strip
if @name.value.strip.empty?
@name_error.value = "Name cannot be blank.\nName cannot only be whitespace."
@name_error.value = "Name cannot be blank. Name cannot only be whitespace."
@name_error.show
return false