Re-export variants of Length and alignment types

This commit is contained in:
Héctor Ramón Jiménez 2024-07-12 18:12:34 +02:00
parent f9dd5cbb09
commit 76737351ea
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
51 changed files with 255 additions and 395 deletions

View file

@ -4,7 +4,7 @@ use iced::widget::{
button, column, container, horizontal_space, pick_list, row, text,
text_editor, tooltip,
};
use iced::{Element, Font, Length, Subscription, Task, Theme};
use iced::{Center, Element, Fill, Font, Subscription, Task, Theme};
use std::ffi;
use std::io;
@ -158,7 +158,7 @@ impl Editor {
.padding([5, 10])
]
.spacing(10)
.center_y();
.align_y(Center);
let status = row![
text(if let Some(path) = &self.file {
@ -184,7 +184,7 @@ impl Editor {
column![
controls,
text_editor(&self.content)
.height(Length::Fill)
.height(Fill)
.on_action(Message::ActionPerformed)
.highlight::<Highlighter>(
highlighter::Settings {