Color preference for Sch editor and Waveform viewer

A schematic would have been more helpful. I think what you have is a component marked “Do Not Stuff.” Please correct me if I’m wrong.

So, here’s my analysis: I think the color is (RGB) 0xBFBFAE. Mike stores colors in BGR order so the registry value should be 0xAEBFBF. I don’t see either one anywhere in the registry preferences.

I’ve been dissecting the *.qsch/*qsym format over the last couple of weeks. The way that a component is marked as “Do Not Stuff” or “Stuff With Jumper” is to set a bit flag on the component-level record. I think he simply masks the component elements (lines, text, etc.) to the above color hardcoded in QSpice.

In summary, I assume that we don’t have a way to change this unless someone asks Mike to add it to the registry.

And, of course, I could be wrong what with the above being reverse-engineering.

Arief, just a tip about your batch files: You end them with “exit”. If a user is running your batch file from a command prompt window, it exits the command shell immediately. I think that it would also terminate any batch process that executes your batch files. Might not be what you intend. See exit | Microsoft Learn.

–robert

I posted v1.1 of the QColorPrefs project. Will do a bit more tomorrow (hopefully) to make it more flexible and improve the documentation.

@KSKelvin I included *.qcolorpref files to apply your Matlab light and dark themes to the waveform viewer.

@physicboy I think that I’m capturing all of the schematic/waveform elements that you wanted now. Please confirm.


OK, I can’t post a third reply until someone replies. So, I’m editing the last post…

Updated to v1.2. Changes include:

  • Separate switches to retrieve (save to *.qcolorpref) or restore (to registry) all values or only schematic or waveform color values.
  • Improved documentation (I think).

So, let’s say that you have a nice color scheme for waveforms that you made using the GUI. You can either save that set of waveform colors (-swav) or all schematic and waveform colors (-sall).

If you saved the settings using -sall (all schematic/waveform color settings), you can restore only the schematic colors (-rsch), only the waveform colors (-rwav), or both (-rall).

Since I see this as mostly useful for switching between color themes for dark (for GUI) and light (for printing) waveform themes, I’ve included Kelvin’s Matlab light/dark themes.

This brings me to a final possible change: I’m currently saving/restoring the “Number of Colors” for waveforms. So, if you use restore from “Matlab_Dark” or “Matlab_Light”, the number of colors that QSpice will use to auto-color traces is restored from the *.qcolorpref to 12.

I think that this should be set by the user and not overwritten when writing the trace colors to the registry. What do you think?

1 Like

I think to suggest adding this line, since sch junction size is still related to GUI:
reg add “HKCU\Software\Marcus Aurelius Software LLC\QSPICE[Preferences]” /v JunctionSize /t REG_SZ /d 2.0 /f

its nothing major though, everything else looks great…

and for the “number of colors”, I prefer to just set by the program to choose 24 colors…because of the way Qspice handle waveform color to be used is global instead of local on each plot panel, 24 colors is really not that many.

@RDunn sorry for the delay I just managed to open my personal laptop. I tried opening your program in my working laptop, but that file was directly deleted by antivirus.

Cheers,
Arief,

Well… do you think one of these patterns works for 24 colors? Merging the 12-color curve scheme from MATLAB gem12 and the LTspice default. I really cannot differentiate the 24 color pattern you quote from ChatGPT. :rofl:

Channel 1-12 is matlab gem12 and channel 13-24 is LTspice default

Channel 1-12 is LTspice default and channel 13-24 is matlab gem12

@physicboy , @KSKelvin I’ve updated the repository with v1.3. Lot’s of new features, prettier repo presentation. Please do some testing (I’m playing with Claude.AI so let’s not assume that it’s solid code just yet.) Let me know what you think.

Direct link (for now): QSpice/WIP/QColorPrefs at dev · robdunn4/QSpice · GitHub

–robert

haha… its not useful to combine them in one plot window.

but, it helps you to reduce duplicate color when using multiple plot window (subplot in matlab).

1 Like

Regarding the waveform color editing widget:

can there be an option to display the waveforms as horizontal lines. In its current form it is a bit confusing since they overlap. With the option of viewing them in horizontal line format, then one can more easily scroll downward to edit them.

For manual editing, consider this.

Yes, I understand that you can choose each waveform from the drop-down menu. But it is still a bit confusing because you still have to focus with more effort since its like trying to single out a waveform behind a mesh of camouflage. The better option is to be able to isolate a waveform without any background distractions.

Something like this:

Then, if you have many waveforms, include a scroll bar.

Comparing it with the current method, it is easy to see that the recommended method is a bit easier to work with:

For the sake of efficiency, @RDunn created a program to load color schemes.

Here is the discussion post:
QColorPrefs – A QSpice Color Theme Utility - QSPICE - Qorvo Tech Forum
Here is the direct repository:
QSpice/QColorPrefs at dev · robdunn4/QSpice · GitHub

If you are seeking a change or improvement, the way to do it is to contact the Qspice author. Mike’s email is in Help > About Qspice. Since multiple members find it more efficient to load a color scheme—or create our own color scheme and load it into the registry—that is why we just did it an alternative way.

1 Like

Does it require re-installing for every QSpice update?

I think a Qspice update will not mess up the registry. Qspice preferences are stored in the registry.

After everything is set, go to Edit > Preferences > Save To File, and you can save a registry file to recover your setup anytime if you change something. You can use a text editor to open the registry file and review what items Qspice preferences can save for you. This includes saving your color scheme.

1 Like

Thank you for the information.

Much appreciated!