mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
menu_view: support labels with no background
By applying the text output to the alpha buffer in addition to the pixel buffer, labels can now appear without the need for an underlying frame or button.
This commit is contained in:
parent
4ca493b762
commit
f073c51b49
@ -63,6 +63,9 @@ struct Menu_view::Label_widget : Widget
|
||||
|
||||
Text_painter::paint(pixel_surface, at + centered, *font,
|
||||
Color(0, 0, 0), text.string());
|
||||
|
||||
Text_painter::paint(alpha_surface, at + centered, *font,
|
||||
Color(255, 255, 255), text.string());
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user