Custom colours are gone

kalvaro's profile image kalvaro posted 5 years ago in Feature discussion Permalink

I've just discovered that the background colour selector was moved to Connection Manager some months ago. I can live with that but my saved colours are gone!

It doesn't seem to be just a migration issue because the feature no longer works. Whatever colours I add there just get lost.

The original use case still applies—I always use the same small subset of colours because I've assigned a specific meaning to them:

  • Red: production
  • Yellow: staging / testing
  • Green: development
  • Blue: administration
kalvaro's profile image kalvaro posted 5 years ago Permalink

I've just realised that my description can be ambiguous. I don't mean I've lost the colours of the connections (they are still there and they can be changed just fine). I'm referring to the favourite colours that you can save in the advanced colour picker to be used later.

ansgar's profile image ansgar posted 5 years ago Permalink

Yes, I was confused by your first post, but the second one is reproducible. I recall I was just lazy when I moved the color selector, but I will bring them back.

1 attachment(s):
  • colorpicker-missing-custom-colors
Code modification/commit 7f214ed from Ansgar Becker <anse@heidisql.com>, 5 years ago, revision 5623
Add custom colors from sessions to background color selector. See https://www.heidisql.com/forum.php?t=34168
ansgar's profile image ansgar posted 5 years ago Permalink

How about that? I could not access the color picker which pops up for "Individual color", but I managed to add colors directly to the dropdown, like so: https://stackoverflow.com/questions/8889263/how-i-can-add-a-custom-color-to-an-tcolorbox-using-the-ongetcolors-event It's in the latest build.

1 attachment(s):
  • colorbox-custom-colors
kalvaro's profile image kalvaro posted 5 years ago Permalink

Thank you. The idea is pretty neat but this is what I see (2 out of 4 custom colours, but several times each):

Screenshot

ansgar's profile image ansgar posted 5 years ago Permalink

Ok, different servers with the same colors. Looks superflous somehow. I should only add unique colors, and label them with the first session name I find. Or do you have some better idea for the labels?

kalvaro's profile image kalvaro posted 5 years ago Permalink

Hmmm... Naming is hard.

Perhaps something like?

  • Session "Foo"
  • Session "Bar" (and 3 more)
Code modification/commit 36ae8f2 from Ansgar Becker <anse@heidisql.com>, 5 years ago, revision 5624
Issue #360: add unique session colors only to the background color selector, and label them "Custom color". See https://www.heidisql.com/forum.php?t=34168#p34194
ansgar's profile image ansgar posted 5 years ago Permalink

I decided to name them "Custom color", with unique colors only. Instead of their session names, the hex code for these colors are now displayed, which is probably useful for us:

1 attachment(s):
  • colorbox-custom-colors-hexcode
kalvaro's profile image kalvaro posted 5 years ago Permalink

It's indeed a good idea. However, I think either something doesn't work correctly or I've misunderstood how it works because I only see two custom colours. I've verified so in two computers.

(My screen capture software has decided to stop working.)

kalvaro's profile image kalvaro posted 5 years ago Permalink

Screenshot: new connection

ansgar's profile image ansgar posted 5 years ago Permalink

I suppose that red one is the same on all of your 5 "red" sessions, so it is only added once now, to have unique colors only.

By the way, images can now be directly pasted into the message field here in the forum.

kalvaro's profile image kalvaro posted 5 years ago Permalink

But I use 4 different custom colours (red, yellow, green and blue) and the dropdown only displays two (red and yellow).

Screenshot

kalvaro's profile image kalvaro posted 5 years ago Permalink

If you're unable to reproduce it feel free to ask for whatever you need can help. For instance, I could send you privately a redacted export of my saved connections. Or I can open a GitHub ticket if you can't address this right now.

ansgar's profile image ansgar posted 5 years ago Permalink

I was busy with the broken DPI stuff, which is now history, now that I removed support for it.

Regarding these missing custom colors, I thought these were not added if they are equal to one of the system colors, e.g. "Menu Highlight". But this proves that such colors are added a second time:

Description

Probably you can post one screen of one of the selected colors which are missing?

ansgar's profile image ansgar posted 5 years ago Permalink

I cannot even reproduce that with sessions in a folder.

Please send the export of your sessions, but don't forget to remove credentials. Email address is on the imprint page.

ansgar's profile image ansgar posted 5 years ago Permalink

Just imported your settings file, and got 4 custom colors, using the latest build:

Description

kalvaro's profile image kalvaro posted 5 years ago Permalink

I'm currently using latest build and now it works fine for me too :-!

Never mind, thank you very much for the feature and I hope I didn't make you waste too much time.

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