From 75a2fcb25c897d05e410033fc96d1c9834453a9e Mon Sep 17 00:00:00 2001 From: temportalflux Date: Sat, 6 Jun 2026 19:20:47 -0400 Subject: [PATCH] add documentation to input colors --- crates/gpui_elements/src/input/colors.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/gpui_elements/src/input/colors.rs b/crates/gpui_elements/src/input/colors.rs index 210db77453..f60f765280 100644 --- a/crates/gpui_elements/src/input/colors.rs +++ b/crates/gpui_elements/src/input/colors.rs @@ -1,9 +1,13 @@ use gpui::Hsla; +/// Style colors applied to the Input element #[derive(Clone, Copy, Debug)] pub struct InputColors { + /// This is the background color applied to the range of text that is currently selected by the user. pub selection: Hsla, + /// This is the color of the user's text cursor. pub cursor: Hsla, + /// This is the color of the placeholder string, when one is assigned and the text field is empty. pub placeholder: Hsla, pub marked: Hsla, }