Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions _release-content/release-notes/more_widgets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Moar widgets!"
authors: ["@viridia"]
pull_requests: [23645, 23707]
---

Bevy Feathers, the opinionated UI widget collection, has added two new widgets: text input and
dropdown menu buttons. Note that unlike the older widgets, these are _only_ available through
BSN (which will be the primary access to feathers going forward).
4 changes: 4 additions & 0 deletions crates/bevy_feathers/src/assets/icons/_NAMING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Guidelines for Naming Files In This Directory

The names of files in this directory should refer to what the icons look like ("x", "chevron", etc.)
rather than their assigned meanings ("close", "expand") because the latter can change.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added crates/bevy_feathers/src/assets/icons/x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions crates/bevy_feathers/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ pub mod fonts {
pub const MONO: &str = "embedded://bevy_feathers/assets/fonts/FiraMono-Medium.ttf";
}

/// Icon paths
pub mod icons {
/// Downward-pointing chevron
pub const CHEVRON_DOWN: &str = "embedded://bevy_feathers/assets/icons/chevron-down.png";
/// Right-pointing chevron
pub const CHEVRON_RIGHT: &str = "embedded://bevy_feathers/assets/icons/chevron-right.png";
/// Diagonal Cross
pub const X: &str = "embedded://bevy_feathers/assets/icons/x.png";
}

/// Size constants
pub mod size {
use bevy_ui::Val;
Expand All @@ -24,6 +34,9 @@ pub mod size {
/// Width and height of a checkbox
pub const CHECKBOX_SIZE: Val = Val::Px(18.0);

/// Height for pane headers
pub const HEADER_HEIGHT: Val = Val::Px(30.0);

/// Width and height of a radio button
pub const RADIO_SIZE: Val = Val::Px(18.0);

Expand Down
Loading