forked from 1b-agent/opencadstudio-upstream
feat(ui): migrate dialogs across application to shared dialog_button and form_radio builders
This commit is contained in:
1 parent
1a6279e841
commit
6b37476687
36 files changed
+214
-197
No files matched your search
@@ -1,7 +1,8 @@
|
||||
use crate::app::Message;
|
||||
use crate::t;
|
||||
use crate::ui::style::common::muted_style;
|
||||
use iced::widget::{button, column, container, row, svg, text, Space};
|
||||
use crate::ui::style::form::dialog_button;
|
||||
use iced::widget::{column, container, row, svg, text, Space};
|
||||
use iced::{Background, Border, Element, Fill, Length, Shrink, Theme};
|
||||
|
||||
fn primary_style(theme: &Theme) -> iced::widget::text::Style {
|
||||
@@ -136,10 +137,7 @@ pub fn view_window(
|
||||
.spacing(8)
|
||||
.width(content_width);
|
||||
|
||||
let copy = button(text(t!("Copy Info")).size(11))
|
||||
.on_press(Message::AboutCopyInfo)
|
||||
.style(button::primary)
|
||||
.padding([6, 16]);
|
||||
let copy = dialog_button(t!("Copy Info"), Message::AboutCopyInfo, true);
|
||||
|
||||
container(
|
||||
column![
|
||||
|
||||
Reference in new issue
Block a user