Skip to content

Commit 3a1c846

Browse files
committed
add background to touch test app
1 parent fc23481 commit 3a1c846

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/touch/src/gui.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2727
#include <ruis/widget/group/touch/tabbed_book.hpp>
2828
#include <ruis/widget/label/image.hpp>
2929
#include <ruis/widget/label/padding.hpp>
30+
#include <ruis/widget/label/rectangle.hpp>
3031
#include <ruis/widget/label/text.hpp>
3132

3233
#include "list_page.hpp"
@@ -75,6 +76,16 @@ utki::shared_ref<ruis::widget> make_root_widget(utki::shared_ref<ruis::context>
7576
}
7677
},
7778
{
79+
m::rectangle(c,
80+
{
81+
.layout_params = {
82+
.dims = {ruis::dim::fill, ruis::dim::fill}
83+
},
84+
.color_params = {
85+
.color = c.get().style().get_color_background()
86+
}
87+
}
88+
),
7889
m::tabbed_book(c,
7990
{
8091
.layout_params = {

0 commit comments

Comments
 (0)