Button restyle
This commit is contained in:
+3
-2
@@ -6,6 +6,7 @@ pub mod randomizer {
|
||||
use iced::Task;
|
||||
use rand::prelude::SliceRandom;
|
||||
use crate::navigation::{NavigatedPage, Page};
|
||||
use crate::styling::jl_button;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct RandomizerState {
|
||||
@@ -58,10 +59,10 @@ pub mod randomizer {
|
||||
pub fn view(&self) -> iced::Element<'_, RandomizerMessage> {
|
||||
container(
|
||||
iced::widget::column![
|
||||
button("Назад").on_press(Back),
|
||||
button("Назад").style(jl_button).on_press(Back),
|
||||
text_editor(&self.text).on_action(Edit
|
||||
).width(400).height(400).placeholder("Каждый элемент с новой строки"),
|
||||
button("Перемешать").on_press(Start),
|
||||
button("Перемешать").style(jl_button).on_press(Start),
|
||||
]
|
||||
.spacing(5),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user