-VIEW sEttings Background dialog and view backgrounds

Color, Gradient and Image at the background prompt open a Background
dialog (None / Solid / Gradient / Image, preview, solid colour, two- or
three-colour gradient with rotation, image file with position and
scale). Apply links the view to a new background object in
ACAD_BACKGROUND; restoring a view gives the model viewport a copy of
it (or none), and saving a view copies the viewport's background.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ramox81andClaude Opus 5.5 committed 2026-10-12 10:50:00 +03:00
1 parent cd07141cde
commit c8167c54ee
34 files changed
+1400 -4

No files matched your search

+9 -2
View File
@@ -226,9 +226,16 @@ impl DashViewCommand {
let t = text.trim();
match setting {
Setting::Background => match keyword(t, &["Color", "Gradient", "Image", "None"]) {
// The other background types are chosen in their own dialogs.
Some("None") => Self::apply(setting, &view, "NONE"),
Some(_) => CmdResult::Dispatch("-VIEW >SETTINGS".into()),
// The other types are set in the Background dialog.
Some(kind) => CmdResult::Dispatch(format!(
"-VIEW >BACKGROUND {view}\u{1f}{}",
match kind {
"Color" => "SOLID",
"Gradient" => "GRADIENT",
_ => "IMAGE",
}
)),
None => {
self.step = Step::SettingValue(setting, view);
CmdResult::ReportError("Invalid option keyword.".into())