Add some theme TODOs on the button widgets

This commit is contained in:
2025-08-26 13:34:07 -05:00
parent 5f617a67f6
commit a489cdc5e8

View File

@@ -95,8 +95,11 @@ impl BigRedButton {
///
/// I haven't figure out what will receive the on-press events, so I'm moving
/// the problem. It will not be the button's job to hook up the event notice.
///
/// TODO: Pass in the UiTheme struct
fn bundle(text: impl Into<String>) -> impl Bundle {
(
// TODO: Remove `Button`? Add `Button` to the `CloseButton` bundle?
Button,
BigRedButton,
Node {
@@ -182,8 +185,11 @@ pub struct CloseButton(Entity);
impl CloseButton {
/// Spawn a button that will despawn the top-most node when pressed.
///
/// TODO: Pass in the UiTheme struct
fn bundle(target: Entity) -> impl Bundle {
(
// TODO: Add `Button`? Remove `Button` from the BigRedButton bundle?
CloseButton(target),
Node {
width: Px(20.0),