Migrate to tiny macros of button

This commit is contained in:
micialware committed 2026-09-09 14:26:55 +03:00
1 parent 444352c007
commit 1ad991667b
12 files changed
+52 -45

No files matched your search

+3 -3
View File
@@ -18,6 +18,7 @@ use iced_core::Background;
use iced_core::Color;
use parking_lot::Mutex;
use std::sync::Arc;
use crate::jl_button;
pub struct SelectorState {
pub set: KanaSet,
@@ -81,9 +82,8 @@ impl NavigatedPage<SelectorMessage> for SelectorState {
container(
iced::widget::column![
row![
button("あ ↔ ア")
.on_press(SelectorMessage::Change)
.style(jl_button),
jl_button!("あ ↔ ア")
.on_press(SelectorMessage::Change),
button("Словарь")
.on_press(SelectorMessage::ToDictionary)
.style(Self::nav_style),