sesion background color

BubikolRamios's profile image BubikolRamios posted 12 years ago in General Permalink
see this:
http://shrani.si/f/2w/pE/4L5jSsZZ/tmp.jpg


upper image focus on 'local', background red, but as you see 'ISG' also red ! Which can cause bad mistakes.
lower image after clicking into 'ISG' area, to prowe that does not have red background

Ok, you notice the diff if you have such eye destroying agressive colors,but only after click, but if not ....

Anyway you do scroll into 'ISG' area without noticig it, an that can be time consuming (-: & possibly causing bad mistakes if having nice grayish background colors.
BubikolRamios's profile image BubikolRamios posted 12 years ago Permalink
see also this:

http://shrani.si/f/1R/tM/1EE4ocxP/tmp.jpg

Very bad, I would drop disabled idea completely, and leave only background thing.

BubikolRamios's profile image BubikolRamios posted 12 years ago Permalink
That is, if last image would crrectly separate two different server areas.
ansgar's profile image ansgar posted 12 years ago Permalink
Well the idea for the background is that the focused server changes the tree color.
kalvaro's profile image kalvaro posted 12 years ago Permalink
The whole idea is that you have a straightforward visual clue of what the selected database is. This way, when you work with the application tabs (Table, Data, Query...) you can avoid doing stuff with the wrong piece of data. The concept of current database is inherent to SQL.

I admit that HeidiSQL could also change foreground colour to match background colour (if background luminosity is less than 50% it'd make sense to use a light foreground) and it doesn't, but the feature itself is quite well thought IMHO.
kalvaro's profile image kalvaro posted 12 years ago Permalink
Tip: you can save screenshots as PNG. Over-compressed JPEG files are not good for plain colours.
Code modification/commit from ansgar.becker, 12 years ago, revision 7.0.0.4131
Introduce TConnectionParameters.SessionColor property to hold the tree background color, and use that to paint the background of relevant nodes only, instead of the whole tree. See http://www.heidisql.com/forum.php?t=10133
ansgar's profile image ansgar posted 12 years ago Permalink
r4131 applies the background color to relevant nodes only, instead of the whole tree. Looks nice if you have 3 or more sessions open.
muzza4's profile image muzza4 posted 12 years ago Permalink
Hi Anse

Can you explain how to set the background color and have it retained please? With this new version I can set the color as before, but the setting has gone when I next open it.

I'm not sure if it's relevant but I open HSQL from the command line (a script actually) i.e.
X:\HeidiSQL\heidisql.exe --host=www.blahblahblah.com --user=blah --password=blah --database=blahblah

Cheers
Muzza
ansgar's profile image ansgar posted 12 years ago Permalink
If you open HeidiSQL via command line host/user/password, you are not using a stored session, therefore nothing else is stored for the next time you do that. Just use a session (-d=xyz) or do not use the command line options at all if you expect session settings to be stored.
muzza4's profile image muzza4 posted 12 years ago Permalink
Hi Anse

Well, it's been retaining the session colour for several years - I was the one who asked for this functionality - and now it doesn't.

Actually I run two versions of HeidiSQL - the current one, and an old one called x.y version build 2688 (because it does one thing better).

That old version retains the session colour very happily.

Cheers

ansgar's profile image ansgar posted 12 years ago Permalink
Than this was a bug - seriously, where should that color setting be stored if not in a stored session?
[expired user #4864]'s profile image [expired user #4864] posted 12 years ago Permalink
I was looking for the background setting in the session manager. I thus think that it should be there.
[expired user #6407]'s profile image [expired user #6407] posted 12 years ago Permalink
Hi Anse.

Regarding the color to DB Session behaviour. I've found that the old behaviour, in which the whole panel would switch to the current session color, to be better than the current multi-colored one.

When I had the old behaviour, I would never mix my DBs up, but since moving to the new behaviour, it is quite common to mix up my connections (DEV/TST/PRD) because of missing out on the "grayed" out fonts.

As some people may prefer to have the current behaviour, would it be possible to have both the old and new behaviour through a preferences switch/option?

Cheers,

Please login to leave a reply, or register at first.