changeset 30:8e32ad89c2a1

work
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 13 Apr 2025 16:51:06 -0600
parents 01b8a25b38aa
children 415b7754ac55
files editor.luan
diffstat 1 files changed, 18 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/editor.luan	Sun Apr 13 12:25:57 2025 -0600
+++ b/editor.luan	Sun Apr 13 16:51:06 2025 -0600
@@ -260,7 +260,7 @@
 	end
 	find_field = new_text_field{
 		constraints = "growx"
-		columns = 20
+		show_whitespace = true
 		action = "next"
 		action_listener = find_match
 	}
@@ -278,21 +278,17 @@
 				text = "Find:"
 			}
 			find_field
-			new_panel{
-				constraints = "wrap"
-				layout = new_mig_layout("insets 0")
-				children = {
-					new_button{
-						text = "Find Next"
-						action = "next"
-						action_listener = find_match
-					}
-					new_button{
-						text = "Find Previous"
-						action = "previous"
-						action_listener = find_match
-					}
-				}
+			new_button{
+				constraints = "grow"
+				text = "Find Next"
+				action = "next"
+				action_listener = find_match
+			}
+			new_button{
+				constraints = "grow,wrap"
+				text = "Find Previous"
+				action = "previous"
+				action_listener = find_match
 			}
 			new_label{
 				constraints = "right"
@@ -300,12 +296,16 @@
 			}
 			new_text_field{
 				constraints = "growx"
-				columns = 20
+				show_whitespace = true
 			}
 			new_button{
-				constraints = "wrap"
+				constraints = "grow"
 				text = "Replace"
 			}
+			new_button{
+				constraints = "grow,wrap"
+				text = "Replace All"
+			}
 			output
 		}
 	}