1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:14:58 +00:00

LibWeb/HTMLInputElement: Improve appearance of color picker

Instead of a plain ButtonBox, it now appears as a color well styled
after the buttons.
This commit is contained in:
circl 2023-10-14 12:00:40 +02:00 committed by Sam Atkins
parent 63cd6b0d3c
commit a1cce69db0
3 changed files with 52 additions and 3 deletions

View file

@ -167,6 +167,7 @@ private:
static TypeAttributeState parse_type_attribute(StringView);
void create_shadow_tree_if_needed();
void create_text_input_shadow_tree();
void create_color_input_shadow_tree();
WebIDL::ExceptionOr<void> run_input_activation_behavior();
void set_checked_within_group();
@ -180,6 +181,7 @@ private:
JS::GCPtr<DOM::Text> m_placeholder_text_node;
JS::GCPtr<DOM::Element> m_inner_text_element;
JS::GCPtr<DOM::Element> m_color_well_element;
JS::GCPtr<DOM::Text> m_text_node;
bool m_checked { false };