forked from 1b-agent/opencadstudio-upstream
fix(background): step-by-step prompt + Default preset (#217)
Bare BACKGROUND now opens an interactive colour prompt (via ValuePromptCommand, same idiom as PDMODE/LTSCALE) instead of just printing usage, so the command works both step-by-step and as a one-shot `BACKGROUND <colour>`. Options reordered to Default/Black/DarkGray/Gray/LightGray/White; DEFAULT restores the app default, now unified to rgb(33,40,48) across startup, load and reset. Also drop the unreachable OPTIONS arm in dispatch_display. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
970ee5a09f
commit
1d7f5d2618
3 files changed
+22
-9
No files matched your search
+2
-2
@@ -212,7 +212,7 @@ pub fn build_derived_caches(doc: &CadDocument) -> DerivedCaches {
|
||||
// bg is only relevant after the user enters a paper layout, and
|
||||
// `synced_hatch_models` re-runs `render_style` per-frame anyway so
|
||||
// the per-layout adaptation kicks in later regardless).
|
||||
const LOAD_BG: [f32; 4] = [0.11, 0.11, 0.11, 1.0];
|
||||
const LOAD_BG: [f32; 4] = [33.0 / 255.0, 40.0 / 255.0, 48.0 / 255.0, 1.0];
|
||||
|
||||
// hatches
|
||||
let hatches: HashMap<Handle, HatchModel> = hatch_handles
|
||||
@@ -946,7 +946,7 @@ impl Scene {
|
||||
solid_models: HashMap::default(),
|
||||
images: HashMap::default(),
|
||||
active_viewport: None,
|
||||
bg_color: [0.11, 0.11, 0.11, 1.0],
|
||||
bg_color: [33.0 / 255.0, 40.0 / 255.0, 48.0 / 255.0, 1.0],
|
||||
paper_bg_color: [1.0, 1.0, 1.0, 1.0],
|
||||
local_extent_max: 1e9,
|
||||
local_center: [0.0, 0.0],
|
||||
|
||||
Reference in new issue
Block a user