openscad icon indicating copy to clipboard operation
openscad copied to clipboard

Editor reverts to light theme on every start

Open korpx opened this issue 1 year ago • 6 comments

Editor reverts to light theme on every start

Steps to reproduce the behavior:

  1. Start OpenSCAD
  2. Click on 'Edit'-menu, 'Preferences', 'Editor'
  3. Change 'Color syntax highlighting:' to 'For Dark Background'
  4. Exit OpenSCAD
  5. Start OpenSCAD
  6. 'Color syntax highlighting:' has reverted to 'For Light Background'

Expected behavior; 'Color syntax highlighting:' stays permamently set.

Screenshots; image

OpenSCAD Version: 2024.01.03 (git b1160fa43) System information: Microsoft Windows 10 (10.0.19045) x86_64 4 CPUs 15.88 GB RAM User Agent: OpenSCAD/2024.01.03 (git b1160fa43) (Microsoft Windows 10 (10.0.19045) x86_64)

korpx avatar Jan 04 '24 10:01 korpx

Even if I import this before start the setting is reverted;

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\OpenSCAD\OpenSCAD\editor] "syntaxhighlight"="For Dark Background"

korpx avatar Jan 04 '24 10:01 korpx

You can try editing in vscode, it works fine

SongZihui-sudo avatar Jan 04 '24 14:01 SongZihui-sudo

Thanks. Not interested in any third party editors for this (I prefer Notepad++ myself for alot of what I do). The internal editor work fine but it is a cosmetic bug introduced recently.

korpx avatar Jan 04 '24 14:01 korpx

On linux, the theme setting is also reset. The version is similar.

kberkut avatar Jan 06 '24 06:01 kberkut

Yup, this happens to every dev snapshot I've tried after OpenSCAD-2023.12.28.ai17902-x86_64.AppImage, that was the last one that still kept it's Editor background setting.

Nikorasu avatar Jan 06 '24 18:01 Nikorasu

Same here. Os: Linux Slackware 15.0. It works ok on OpenSCAD-2023.11.14.ai16996-x86_64.AppImage Color settings is lost on startup on OpenSCAD-2024.02.11.ai18430-x86_64.AppImage

majekw avatar Feb 15 '24 13:02 majekw

Still happens with 2024.02.22 (Windows 10 22H2)

korpx avatar Feb 25 '24 20:02 korpx

Fixed via #5026.

t-paul avatar Mar 03 '24 16:03 t-paul