From f073c51b49a3cf4c9be5bb94eccd9fa1a037ef3e Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 15 Aug 2017 13:41:38 +0200 Subject: [PATCH] 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. --- repos/gems/src/app/menu_view/label_widget.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repos/gems/src/app/menu_view/label_widget.h b/repos/gems/src/app/menu_view/label_widget.h index 532f0ebf0d..51c8be7f84 100644 --- a/repos/gems/src/app/menu_view/label_widget.h +++ b/repos/gems/src/app/menu_view/label_widget.h @@ -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()); } };