From 3aa95dd4d5be91898d912a39c97a432b05c6f401 Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Tue, 22 Feb 2022 07:20:05 -0500 Subject: LibGUI+Apps: Convert Statusbar Labels to Segments Segments inherit from Button and let us add clickable widgets to status bars. This patch also adds proportional, fixed and autosized modes for segments and lets the status bar consume all non-clickable segments for override text. --- Userland/Applications/HexEditor/GoToOffsetDialog.gml | 2 +- Userland/Applications/HexEditor/HexEditorWindow.gml | 2 +- Userland/Applications/TextEditor/TextEditorWindow.gml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Userland/Applications') diff --git a/Userland/Applications/HexEditor/GoToOffsetDialog.gml b/Userland/Applications/HexEditor/GoToOffsetDialog.gml index cfd7d9495f..9504757f94 100644 --- a/Userland/Applications/HexEditor/GoToOffsetDialog.gml +++ b/Userland/Applications/HexEditor/GoToOffsetDialog.gml @@ -57,6 +57,6 @@ @GUI::Statusbar { name: "statusbar" - label_count: 2 + segment_count: 2 } } diff --git a/Userland/Applications/HexEditor/HexEditorWindow.gml b/Userland/Applications/HexEditor/HexEditorWindow.gml index 4a7d4e0935..10a271af1b 100644 --- a/Userland/Applications/HexEditor/HexEditorWindow.gml +++ b/Userland/Applications/HexEditor/HexEditorWindow.gml @@ -31,6 +31,6 @@ @GUI::Statusbar { name: "statusbar" - label_count: 5 + segment_count: 5 } } diff --git a/Userland/Applications/TextEditor/TextEditorWindow.gml b/Userland/Applications/TextEditor/TextEditorWindow.gml index 3f567a9a47..b8556df9a8 100644 --- a/Userland/Applications/TextEditor/TextEditorWindow.gml +++ b/Userland/Applications/TextEditor/TextEditorWindow.gml @@ -106,6 +106,6 @@ @GUI::Statusbar { name: "statusbar" - label_count: 2 + segment_count: 3 } } -- cgit v1.2.3