forked from 1b-agent/opencadstudio-upstream
Route dimension color fields correctly
This commit is contained in:
1 parent
c66ec7fb64
commit
80d7a8741e
12 files changed
+89
-8
No files matched your search
@@ -518,6 +518,7 @@ pub fn view_window<'a>(
|
||||
crate::ui::color_select::ColorExtras {
|
||||
by_layer: true,
|
||||
by_block: true,
|
||||
..Default::default()
|
||||
},
|
||||
move |c| Message::DsEdit(f_sel.clone(), crate::ui::color_select::color_to_aci_string(c)),
|
||||
Message::DsColorMore(fld.clone()),
|
||||
|
||||
@@ -115,7 +115,11 @@ fn color_row<'a>(
|
||||
let selector = crate::ui::color_select::color_selector(
|
||||
current,
|
||||
open,
|
||||
crate::ui::color_select::ColorExtras { by_layer: true, by_block: true },
|
||||
crate::ui::color_select::ColorExtras {
|
||||
by_layer: true,
|
||||
by_block: true,
|
||||
..Default::default()
|
||||
},
|
||||
move |color| Message::MLeaderStyleEdit {
|
||||
field,
|
||||
value: crate::ui::color_select::color_to_aci_string(color),
|
||||
|
||||
@@ -317,7 +317,11 @@ fn cell_editor<'a>(v: &TableStyleView<'a>, row_index: u8) -> Element<'a, Message
|
||||
let selector = crate::ui::color_select::color_selector(
|
||||
current,
|
||||
v.color_open == Some((row_index, field)),
|
||||
crate::ui::color_select::ColorExtras { by_layer: true, by_block: true },
|
||||
crate::ui::color_select::ColorExtras {
|
||||
by_layer: true,
|
||||
by_block: true,
|
||||
..Default::default()
|
||||
},
|
||||
move |color| Message::TableStyleCellEdit {
|
||||
row: row_index,
|
||||
field,
|
||||
|
||||
Reference in new issue
Block a user