Re: [pgAdmin4][Patch]: Allow user to choose background colour for server - Mailing list pgadmin-hackers

From Murtuza Zabuawala
Subject Re: [pgAdmin4][Patch]: Allow user to choose background colour for server
Date
Msg-id CAKKotZTnS11WvT+SRrkRmVLMEY9ToSz0ythdf+W25Vui2LEJSg@mail.gmail.com
Whole thread Raw
In response to Re: [pgAdmin4][Patch]: Allow user to choose background colour for server  (Dave Page <dpage@pgadmin.org>)
Responses Re: [pgAdmin4][Patch]: Allow user to choose background colour for server  (Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com>)
List pgadmin-hackers
Hi,

Please find updated patch.​

On Wed, Nov 15, 2017 at 3:01 PM, Dave Page <dpage@pgadmin.org> wrote:


On Wed, Nov 15, 2017 at 9:26 AM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote:
On Wed, Nov 15, 2017 at 2:28 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
On Wed, Nov 15, 2017 at 1:20 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote:
Hi Murtuza,

On Wed, Nov 15, 2017 at 12:58 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
Hi,

PFA new patch.
If I have reviewed correctly, the current patch allows to select the colour for background color for server, and its children.
I believe - we should allow to select text color too for better readability.

​Yes Ashesh, After our discussion I tried that but with all the different colours in browser tree it looks cartoonish.
I am not sure - what looked like cartoonish to you (totally depend on the color choices made by the users). :-)

If I choose any dark color as background color, text in nodes won't be clear to the user, and that will make the tree nodes completely unusable.
If we allow to choose the foreground/text color, those dark colors will become usable by choosing suitable light color as text colors.

I don't want to make any decision here, just asking for opinions from others.

So - Again ball is back in Dave's courtyard :-).

pgAdmin 3 didn't allow selection of the foreground colour, and I don't recall anyone ever asking for it. It's clearly up to the user to not select colours that won't work. 

I'm fine with just setting the background colour to satisfy this requirement, though if it's trivial to do, I have no objection to allowing changes to the foreground colour.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment

pgadmin-hackers by date:

Previous
From: Harshal Dhumal
Date:
Subject: Fix for minor issue RM2868
Next
From: Murtuza Zabuawala
Date:
Subject: Re: [pgAdmin4][Patch]: Allow user to choose background colour for server