mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 06:47:34 +00:00
gui$create_widget() shouldn't try to make button corners opaque.
This commit is contained in:
parent
9053027dc0
commit
0ead888821
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:
|
case GUI_WidgetType::Label:
|
||||||
widget = new Label(window.mainWidget());
|
widget = new Label(window.mainWidget());
|
||||||
static_cast<Label*>(widget)->setText(params.text);
|
static_cast<Label*>(widget)->setText(params.text);
|
||||||
|
widget->setFillWithBackgroundColor(params.opaque);
|
||||||
break;
|
break;
|
||||||
case GUI_WidgetType::Button:
|
case GUI_WidgetType::Button:
|
||||||
widget = new Button(window.mainWidget());
|
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->setWindowRelativeRect(params.rect);
|
||||||
widget->setBackgroundColor(params.background_color);
|
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());
|
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;
|
return window_id;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue