Modify the toolbar#162
Open
SEVA77 wants to merge 7 commits into
Open
Conversation
esaruoho
added a commit
to esaruoho/circuitjs1
that referenced
this pull request
Mar 1, 2026
…s, centre circuit, and show mode toggle Cherry-picks SEVA77's PR pfalstad#162 changes onto current master with conflict resolution: - Add file operation buttons (New, Open, Save As) to toolbar - Add visual separators between toolbar sections - Add Centre Circuit button to toolbar - Add "Show Mode" checkbox (Options menu) to toggle mode display location - When Show Mode is ON: mode info shown as canvas overlay (PR pfalstad#162 approach) - When Show Mode is OFF: mode info shown in toolbar label (master approach) - Both approaches coexist; master's enhanced setModeLabel with "Drag Mouse" state preserved Co-Authored-By: SEVA77 <CEBA1996@outlook.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6 tasks
esaruoho
added a commit
to esaruoho/circuitjs1
that referenced
this pull request
Mar 2, 2026
…ad#212) Port SEVA77 toolbar enhancements to v3-dev architecture: Toolbar.java: - Add toolbar separators between button groups for visual clarity - Add file operation buttons (New, Open, Save As) to toolbar - Add + symbol to Save As icon for visual distinction from Save - Add Centre Circuit button to toolbar - Handle Electron vs browser Save As command differences Menus.java: - Add Show Mode checkbox to Options menu (persisted to storage) UIManager.java: - Draw mouse mode info on canvas when Show Mode is enabled - Shift developer mode text down to avoid overlap with mode display Original PR by SEVA77, remapped to v3-dev split architecture. Co-Authored-By: SEVA77 <CEBA1996@outlook.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4 tasks
esaruoho
added a commit
to esaruoho/circuitjs1
that referenced
this pull request
Apr 15, 2026
…ad#212) Port SEVA77 toolbar enhancements to v3-dev architecture: Toolbar.java: - Add toolbar separators between button groups for visual clarity - Add file operation buttons (New, Open, Save As) to toolbar - Add + symbol to Save As icon for visual distinction from Save - Add Centre Circuit button to toolbar - Handle Electron vs browser Save As command differences Menus.java: - Add Show Mode checkbox to Options menu (persisted to storage) UIManager.java: - Draw mouse mode info on canvas when Show Mode is enabled - Shift developer mode text down to avoid overlap with mode display Original PR by SEVA77, remapped to v3-dev split architecture. Co-Authored-By: SEVA77 <CEBA1996@outlook.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
esaruoho
added a commit
to esaruoho/circuitjs1
that referenced
this pull request
Apr 15, 2026
…ad#212) Port SEVA77 toolbar enhancements to v3-dev architecture: Toolbar.java: - Add toolbar separators between button groups for visual clarity - Add file operation buttons (New, Open, Save As) to toolbar - Add + symbol to Save As icon for visual distinction from Save - Add Centre Circuit button to toolbar - Handle Electron vs browser Save As command differences Menus.java: - Add Show Mode checkbox to Options menu (persisted to storage) UIManager.java: - Draw mouse mode info on canvas when Show Mode is enabled - Shift developer mode text down to avoid overlap with mode display Original PR by SEVA77, remapped to v3-dev split architecture. Co-Authored-By: SEVA77 <CEBA1996@outlook.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I tried to make this as comfortable as possible but perhaps you may not like some of this changes. At first, I just wanted to add separators but I did not stop at this. In general:
Upd: I hid the "Save" option on toolbar for Electron because need additional conditions for it. It should not be available always.
Screenshot:
