Preference File Changes...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
blueb
Addict
Addict
Posts: 1111
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Preference File Changes...

Post by blueb »

In the Preferences dialog... the 'Editor - Coloring' section contains the current coloring information that the Editor uses.

While a person can customize this color scheme... the changes are always saved in the Preference.prefs file, which makes it impossible to re-load your personal color choice.

In fact.. if you have your own personal colors and you wish to try one of the Default Color Schemes it ERASES your personal colors and replaces it with the default that you chose. Once you press the SET button (to try the new color) there is no way to go back to your personal color scheme!

You're stuck with one of the defaults or you are made to re-build your colors from scratch.

---------------------------------

It might be preferable to save your choice of colors as a separate prefs file. e.g. 'BobsColor.prefs'

If the PureBasic.prefs file got corrupted (it happened to me) the information would be saved independently and a side benefit would be that a user could then share their color preferences with other users.

A slight modification (button?) would be needed to allow a user to load their own 'Color.prefs' file.
This would allow you to re-load 'BobsColor.prefs' or another favorite color combination.
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Preference File Changes...

Post by ts-soft »

Preferences - Import/Export - Include Color-Settings!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
blueb
Addict
Addict
Posts: 1111
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Preference File Changes...

Post by blueb »

Thanks ts-soft but...

I just imported the color information from another user's color information and
while it worked it immediately overwrote my Preference.prefs file with no re-course to change it back.

In other words it ERASED my personal colors and replaced it with the new information and if I don't like it... I'm stuck.

Unless of course I had it saved (which I did ahead of time)... but this is really cludgy. I like my idea better :mrgreen:
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Post Reply