thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

More options for account colors? A HEX or RGB field?

Open danbruegge opened this issue 11 years ago • 12 comments

Hi,

i can chose the color of my account. Its a nice feature and i like it.

With my nexus 4 i was fine with the simple option to only chose the color on the color wheel. Since i had a new phone (Moto X 2014) the colors are to bright and i have no option to change this.

Now my offer is to add a field to set HEX or RGB colors.

Dan.

danbruegge avatar Jun 14 '15 10:06 danbruegge

I think the default color picker should be as simple as possible. I don't mind having more advanced options, but we need a good concept for the user interface so we don't end up with a screen that has tons of different ways to do the same thing. One tab per color picking method might work.

@jancborchardt Any thoughts on this topic?

cketti avatar Jun 18 '15 13:06 cketti

I do agree that the colors (for both multi-accounts, but also for the avatar placeholders) chosen by K-9 mail seem a bit bright / very saturated / aggressive when you compare it to how the normal Mail app does avatar placeholder colors. Or similar for TextSecure or the Contacts app.

Is there any core function we can utilize? I suppose they use the HSL color scheme (Hue, Saturation, Lightness) and keep Saturation and Lightness at one specific value while only changing the Hue. That’s also what we do in ownCloud for the placeholder generation. So ultimately it would only be a matter of changing that range. The limited-colorwheel selection as it is right now is very good, we just need to tweak the color range to be more pleasing.

(And no, I would not say we should add a field to set HEX or RGB colors – rather fix the issue for everyone, also people who do not know wtf hex & rgb is. ;)

jancborchardt avatar Jun 18 '15 14:06 jancborchardt

@jancborchardt I believe this issue is about the account color rather than the color of the placeholder images.

This is what the color picker currently looks like: k9mail_color_picker

cketti avatar Jun 18 '15 15:06 cketti

@cketti I know. I think the color range of both should be the same though. (Sorry I veered off the discussion point a bit.)

jancborchardt avatar Jun 18 '15 15:06 jancborchardt

@cketti You could enable the SaturationBar and ValueBar. See https://github.com/LarsWerkman/HoloColorPicker

dschuermann avatar Jun 18 '15 17:06 dschuermann

The HoloColorPicker looks the way i thought about how to choose a color in k9-mail. :+1:

danbruegge avatar Jun 19 '15 08:06 danbruegge

There are practical color pickers in https://play.google.com/store/apps/details?id=org.dmfs.caldav.lib&hl=en and https://play.google.com/store/apps/details?id=org.dmfs.carddav.Sync and see also https://code.google.com/p/k9mail/issues/detail?id=4102

Personally, I find it important to be able to easily select exactly the same color at a later moment and not approximately with a wheel of sliders. The pallet has preferably colors that are also offered by other color pickers but I do not know what default schemes for these are. If they are available in Android generally or in the active theme or launcher.

PanderMusubi avatar Sep 15 '15 20:09 PanderMusubi

I just wanted to add a grey account color. That's impossible with the current solution. Enabling of the SaturationBar and ValueBar like described by @dschuermann https://github.com/LarsWerkman/HoloColorPicker might be the least effort to improve the situation.

marcopenhacking avatar May 10 '18 12:05 marcopenhacking

Any chance of this being implemented? Would love to see an input field for HEX or RGB colors. I've got the same color palette that I use across different devices and clients so this would really help!

lem503 avatar May 30 '18 18:05 lem503

Currently it isn't even possible to choose the default color that is used when creating a new account.

A quick-and-dirty workaround would be to keep the existing colorpicker, but rescale the color after the user has selected it. Rescaling to a more gray-ish color would be possibly by multiplying R,G,B with 3/4 or similar. Here's the relevant code where the color is returned: https://github.com/k9mail/k-9/blob/bf33cfd73a81e37df2f48f35ee4c2f1ec3fe2427/plugins/HoloColorPicker/src/com/larswerkman/colorpicker/ColorPicker.java#L99-L102

Maybe someone wants to give it a try?

Of course, a better solution would be updating to the newer version of HoloColorPicker -- K9mail currently uses an old and modified version.

mgmax avatar Oct 06 '18 14:10 mgmax

@cketti I think the updated holo-colorpicker just serves this issue right. I have created a PR which updates this picker to the latest version, this keeps the solution for this feature quiet simple.

newhinton avatar Jan 23 '19 17:01 newhinton

Closing in favor of #3904.

cketti avatar Feb 06 '19 04:02 cketti