mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
GMLCompiler: Add icon_from_path and frame_style properties
This commit is contained in:
parent
a4e272d2c8
commit
469563b398
Notes:
sideshowbarker
2024-07-16 22:14:49 +09:00
Author: https://github.com/bplaat Commit: https://github.com/SerenityOS/serenity/commit/469563b398 Pull-request: https://github.com/SerenityOS/serenity/pull/21098 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,7 @@ static bool takes_deprecated_string(StringView property)
|
|||
{
|
||||
static HashTable<StringView> deprecated_string_properties;
|
||||
if (deprecated_string_properties.is_empty()) {
|
||||
deprecated_string_properties.set("icon_from_path"sv);
|
||||
deprecated_string_properties.set("name"sv);
|
||||
}
|
||||
return deprecated_string_properties.contains(property);
|
||||
|
@ -173,6 +174,7 @@ static ErrorOr<Optional<String>> generate_enum_initializer_for(StringView proper
|
|||
{ "text_alignment"sv, "Gfx::TextAlignment"sv },
|
||||
{ "focus_policy"sv, "GUI::FocusPolicy"sv },
|
||||
{ "foreground_role"sv, "Gfx::ColorRole"sv },
|
||||
{ "frame_style"sv, "Gfx::FrameStyle"sv },
|
||||
{ "text_wrapping"sv, "Gfx::TextWrapping"sv },
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue