Add some theme TODOs on the button widgets
This commit is contained in:
@@ -95,8 +95,11 @@ impl BigRedButton {
|
|||||||
///
|
///
|
||||||
/// I haven't figure out what will receive the on-press events, so I'm moving
|
/// 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.
|
/// 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 {
|
fn bundle(text: impl Into<String>) -> impl Bundle {
|
||||||
(
|
(
|
||||||
|
// TODO: Remove `Button`? Add `Button` to the `CloseButton` bundle?
|
||||||
Button,
|
Button,
|
||||||
BigRedButton,
|
BigRedButton,
|
||||||
Node {
|
Node {
|
||||||
@@ -182,8 +185,11 @@ pub struct CloseButton(Entity);
|
|||||||
|
|
||||||
impl CloseButton {
|
impl CloseButton {
|
||||||
/// Spawn a button that will despawn the top-most node when pressed.
|
/// Spawn a button that will despawn the top-most node when pressed.
|
||||||
|
///
|
||||||
|
/// TODO: Pass in the UiTheme struct
|
||||||
fn bundle(target: Entity) -> impl Bundle {
|
fn bundle(target: Entity) -> impl Bundle {
|
||||||
(
|
(
|
||||||
|
// TODO: Add `Button`? Remove `Button` from the BigRedButton bundle?
|
||||||
CloseButton(target),
|
CloseButton(target),
|
||||||
Node {
|
Node {
|
||||||
width: Px(20.0),
|
width: Px(20.0),
|
||||||
|
|||||||
Reference in New Issue
Block a user