Rename space_{x,y} to space::{horizontal,vertical}

This commit is contained in:
Héctor Ramón Jiménez 2025-09-17 23:49:01 +02:00
parent 299eb54d6f
commit 611f89fc59
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
25 changed files with 143 additions and 142 deletions

View file

@ -28,7 +28,7 @@ use crate::test::instruction;
use crate::test::{Emulator, Ice, Instruction};
use crate::widget::{
button, center, column, combo_box, container, pick_list, row, rule,
scrollable, space_x, text, text_editor, text_input, themer,
scrollable, space, text, text_editor, text_input, themer,
};
/// Attaches a [`Tester`] to the given [`Program`].
@ -564,7 +564,7 @@ impl<P: Program + 'static> Tester<P> {
let viewport = container(
scrollable(
container(match &self.state {
State::Empty => Element::from(space_x()),
State::Empty => Element::from(space()),
State::Idle { state } => {
let theme = program.theme(state, window);
@ -795,7 +795,7 @@ impl<P: Program + 'static> Tester<P> {
};
let edit = if self.is_busy() {
Element::from(space_x())
Element::from(space::horizontal())
} else if self.edit.is_none() {
button(icon::pencil().size(14))
.padding(0)
@ -849,7 +849,7 @@ where
column![
row![
text(fragment).size(14).font(Font::MONOSPACE),
space_x(),
space::horizontal(),
control.into()
]
.spacing(5)