forked from 1b-agent/opencadstudio-upstream
feat(options): menu bar, ribbon and HPASSOC switches; see-through command line by default
Options > Display gains Window Elements with "Show the menu bar" (MENUBAR) and "Show the ribbon" (RIBBON / RIBBONCLOSE); Options > User Preferences gains a Hatch switch for HPASSOC. The command line now starts at 80 % opacity so the drawing shows through it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
ee18f7ad3c
commit
8a2bc443e0
29 files changed
+163
-3
No files matched your search
@@ -2616,6 +2616,12 @@ pub enum Message {
|
||||
/// Toggle reversing the mouse-wheel zoom direction (ZOOMWHEEL).
|
||||
ZoomWheelReversedChanged(bool),
|
||||
TouchpadPanChanged(bool),
|
||||
/// Options: show the pull-down menus (MENUBAR).
|
||||
MenuBarChanged(bool),
|
||||
/// Options: show the ribbon (RIBBON / RIBBONCLOSE).
|
||||
RibbonVisibleChanged(bool),
|
||||
/// Options: new hatches are associative (HPASSOC).
|
||||
HatchAssociativeChanged(bool),
|
||||
/// Interface scale in percent (Options > Display).
|
||||
UiScaleChanged(u16),
|
||||
/// Change how far one wheel notch zooms, from the Options slider
|
||||
|
||||
+1
-1
@@ -904,7 +904,7 @@ impl Default for UserSettings {
|
||||
language: crate::i18n::Language::default(),
|
||||
cliprompt_lines: 3,
|
||||
commandline_fade_ms: 3000,
|
||||
command_line_opacity: 100,
|
||||
command_line_opacity: 80,
|
||||
snap_spacing_x: 10.0,
|
||||
snap_spacing_y: 10.0,
|
||||
grid_spacing_x: 10.0,
|
||||
|
||||
@@ -9082,6 +9082,24 @@ impl OpenCADStudio {
|
||||
Task::none()
|
||||
}
|
||||
|
||||
Message::MenuBarChanged(shown) => {
|
||||
self.show_menu_bar = shown;
|
||||
self.persist_settings_if_changed();
|
||||
Task::none()
|
||||
}
|
||||
|
||||
Message::RibbonVisibleChanged(shown) => {
|
||||
self.ribbon_closed = !shown;
|
||||
self.persist_settings_if_changed();
|
||||
Task::none()
|
||||
}
|
||||
|
||||
Message::HatchAssociativeChanged(associative) => {
|
||||
self.hatch_associative = associative;
|
||||
self.persist_settings_if_changed();
|
||||
Task::none()
|
||||
}
|
||||
|
||||
Message::TouchpadPanChanged(enabled) => {
|
||||
self.touchpad_pan = enabled;
|
||||
self.persist_settings_if_changed();
|
||||
|
||||
@@ -300,6 +300,9 @@ impl OpenCADStudio {
|
||||
cliprompt_lines: self.cliprompt_lines,
|
||||
commandline_fade_ms: self.commandline_fade_ms,
|
||||
command_line_opacity: self.command_line.opacity_percent(),
|
||||
show_menu_bar: self.show_menu_bar,
|
||||
show_ribbon: !self.ribbon_closed,
|
||||
hatch_associative: self.hatch_associative,
|
||||
zoom_wheel_reversed: self.zoom_wheel_reversed,
|
||||
touchpad_pan: self.touchpad_pan,
|
||||
ui_scale_percent: self.ui_scale_percent,
|
||||
|
||||
Reference in new issue
Block a user