project-robius / robrix

Robrix: a multi-platform Matrix chat client written in Rust using the Makepad UI toolkit and the Robius app dev framework
MIT License
107 stars 18 forks source link

Why is that? #237

Closed Demolemon11 closed 2 weeks ago

Demolemon11 commented 2 weeks ago

image

    let color = vec3(0.7, 0.3, 0.3);
    item.as_view().apply_over(cx, live!(
                        show_bg: true
                            draw_bg: {
                                color: (color)
                            }
                        ));
    item.redraw(cx);

Just paste this at the end of RoomScreen's draw_walk, then only small message & event background is red.

image

I want all the message's background to be apply_over to red, what should I do? (I only want to modify RoomScreen's draw_walk )