mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
gui$create_widget() shouldn't try to make button corners opaque.
This commit is contained in:
parent
9053027dc0
commit
0ead888821
Notes:
sideshowbarker
2024-07-19 16:03:03 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0ead8888212
1 changed files with 1 additions and 1 deletions
|
@ -100,6 +100,7 @@ int Process::gui$create_widget(int window_id, const GUI_CreateWidgetParameters*
|
|||
case GUI_WidgetType::Label:
|
||||
widget = new Label(window.mainWidget());
|
||||
static_cast<Label*>(widget)->setText(params.text);
|
||||
widget->setFillWithBackgroundColor(params.opaque);
|
||||
break;
|
||||
case GUI_WidgetType::Button:
|
||||
widget = new Button(window.mainWidget());
|
||||
|
@ -112,7 +113,6 @@ int Process::gui$create_widget(int window_id, const GUI_CreateWidgetParameters*
|
|||
|
||||
widget->setWindowRelativeRect(params.rect);
|
||||
widget->setBackgroundColor(params.background_color);
|
||||
widget->setFillWithBackgroundColor(params.opaque);
|
||||
dbgprintf("%s<%u> gui$create_widget: %d with rect {%d,%d %dx%d}\n", name().characters(), pid(), widget_id, params.rect.x(), params.rect.y(), params.rect.width(), params.rect.height());
|
||||
|
||||
return window_id;
|
||||
|
|
Loading…
Add table
Reference in a new issue