panels-w3: repair 1

This commit is contained in:
aiongg
2026-11-14 17:56:00 +00:00
parent 665d007582
commit cde8e308d3
3 changed files with 10 additions and 17 deletions
+1 -1
View File
@@ -78,11 +78,11 @@ pub use crop::{
};
pub use crop::{PerspectiveCropQuad, PerspectiveQuad};
// PLAN: dl.K55 lists GradientRamp among the items that move to craft-color, but writer note 6 keeps it in this line.
pub use gradient::{GradientFill, GradientFillEditor, GradientFillEditorOutput, GradientFillWords, GradientStyle};
pub use gradient::{
GradientGroup, GradientItem, GradientLine, GradientMap, GradientMapEditor, GradientMapOutput, GradientOverlay, GradientPalette, GradientRamp,
GradientRef, GradientSwatch, LineGradient, LinePart,
};
pub use gradient::{GradientFill, GradientFillEditor, GradientFillEditorOutput, GradientFillWords, GradientStyle};
pub use measure::{MIN_LINE, RulerBar, RulerBarOutput, RulerLine, RulerOverlay, RulerPass, RulerTool, RulerWords, box_distances, ruler_line_form};
pub use paint_bar::{
EraserMode, MIXER_COMBINATIONS, MIXER_GROUP_STARTS, MixerValues, PaintBar, PaintBarOutput, PaintBarWords, PaintTool, PaintValues, Smoothing,
+7 -8
View File
@@ -6,9 +6,7 @@ use craft_behavior::{EditEvent, EditEvents, IconId, Mixed, Value};
use craft_theme::Srgba;
use craft_ui::buttons::IconButton;
use craft_ui::choice::{Checkbox, Swatch};
use craft_ui::contract::{
Bind, BodyCx, Entry, Gap, LabelKind, Props as _, Remember as _, Show as _, ShowContainer as _, SideLabel, Sizing, Trigger,
};
use craft_ui::contract::{Bind, BodyCx, Entry, Gap, LabelKind, Props as _, Remember as _, Show as _, ShowContainer as _, SideLabel, Sizing, Trigger};
use craft_ui::display::Divider;
use craft_ui::form::Field;
use craft_ui::layout_components::Row;
@@ -467,12 +465,13 @@ impl<M: Value> Pass<'_, M> {
}
let shown = self.values.mixer.combination.min(MIXER_COMBINATIONS.len() - 1);
let mut pick = None;
Field::new(words.combination.clone()).side(SideLabel::new().kind(LabelKind::Hidden)).id_salt("mixer-combination").sizing(Sizing::Content).show(
ui,
|ui, _| {
Field::new(words.combination.clone())
.side(SideLabel::new().kind(LabelKind::Hidden))
.id_salt("mixer-combination")
.sizing(Sizing::Content)
.show(ui, |ui, _| {
pick = Select::new(words.combination.clone(), Bind::given(shown), &entries).show(ui).value().copied();
},
);
});
if let Some(index) = pick {
self.set_with(&words.combination, |v| {
v.mixer.combination = index;
+2 -8
View File
@@ -1,12 +1,11 @@
//! The screen tests of craft-draw, folded into the lib's test target.
// PLAN: the sheet (writer note 7) registers `corner`, `shape_cells`, `gradient_fill`, `paths_panel`, `crop_size`, `artboard`, `slice` and `presets`, but their files belong to other sets (tools-w8, w10, w11, w14, w18, w19, framework-01-w11) and do not exist in this tree, so the lines would not compile. Each owning set adds its own `mod` line under the group comment below with its file.
// draw-shape
mod add_beside;
mod corner;
mod shape_cells;
// draw-gradient-b
mod gradient_fill;
mod gradient_overlay;
// draw-connector
@@ -18,17 +17,13 @@ mod bezier;
// draw-pen-b
mod pen;
mod paths_panel;
// draw-crop-b
mod crop_size;
mod crop_tool;
mod perspective_crop;
// draw-bars
mod artboard;
mod measure;
mod slice;
mod slice_divide;
// draw-stroke
@@ -39,7 +34,6 @@ mod stroke_editor;
mod brush_presets;
mod brush_size;
mod paint_bar;
mod presets;
// draw-transform-a
mod transform_box;