Skip to content
Snippets Groups Projects
Commit bc3b5925 authored by sam edelsten's avatar sam edelsten
Browse files

add border to restricted_input example

parent b3d53dee
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,10 @@ fn setup(mut commands: Commands, mut font_system: ResMut<CosmicFontSystem>) { ...@@ -14,8 +14,10 @@ fn setup(mut commands: Commands, mut font_system: ResMut<CosmicFontSystem>) {
let editor = commands let editor = commands
.spawn( .spawn(
CosmicEditUiBundle { CosmicEditUiBundle {
border_color: Color::LIME_GREEN.into(),
style: Style { style: Style {
// Size and position of text box // Size and position of text box
border: UiRect::all(Val::Px(4.)),
width: Val::Percent(20.), width: Val::Percent(20.),
height: Val::Px(50.), height: Val::Px(50.),
left: Val::Percent(40.), left: Val::Percent(40.),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment