mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +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:
parent
63cd6b0d3c
commit
a1cce69db0
Notes:
sideshowbarker
2024-07-18 03:23:00 +09:00
Author: https://github.com/circl-lastname
Commit: a1cce69db0
Pull-request: https://github.com/SerenityOS/serenity/pull/21438
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/trflynn89
3 changed files with 52 additions and 3 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue