General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Address bar color
Posted by: Oleksandr
Date: August 02, 2015 12:11PM

Hi!
I'm anew K-Meleon user (just bored of frequent Firefox hangs-up) and have noticed different address bar background colors (yellow, red, white). What does it mean? I haven't found any explanations in FAQ, so I seem to be the only one who doesn't know?

Options: ReplyQuote
Re: Address bar color / urlbar color secure connection
Posted by: siria
Date: August 02, 2015 03:04PM

Yellow and red?
Would suppose that it still has to do with secure connections, but can't test with KM75, could someone verify please...?

If it's still that, in older versions those colors indicate if https sites are really fully encrypted or not, along with the lock icon in the bottom right corner.

========

For details, there's a long and complicated thread about it:
http://kmeleonbrowser.org/forum/read.php?1,126494

To sum it up, the colors are defined by those 2 prefs:
Quote
Dorian
browser.urlbar.highlight.secure
browser.urlbar.highlight.broken

set them to 16777215 for white.

In K-Meleon those prefs are still hidden and must be added manually in about:config (as INT), but then work fine in my old KM1.6 and allow to choose own colors. That number calculation discussed there is still way over my head, but found a nice page with lots of ready colors smiling smiley

http://cloford.com/resources/colours/500col.htm
And this one explains how it's calculated:
http://rainbowprod.com/english/powerbuilder/colors.html

Quote

The formula to generate the long value is: (65536*Blue) + (256*Green) + (Red)

Yikes...
Anyway, have now picked a light green and light red for mine smiling smiley
pref("browser.urlbar.highlight.secure", 3862195);
pref("browser.urlbar.highlight.broken", 5275647);

=======

But no idea, does that still work in KM75??



Edited 1 time(s). Last edit at 08/02/2015 03:09PM by siria.

Options: ReplyQuote
Re: Address bar color
Posted by: JohnHell
Date: August 02, 2015 04:21PM

Quote
Oleksandr
Hi!
I'm anew K-Meleon user (just bored of frequent Firefox hangs-up) and have noticed different address bar background colors (yellow, red, white). What does it mean? I haven't found any explanations in FAQ, so I seem to be the only one who doesn't know?


White (actually window background system color): normal page.

Yellow: secure site.

Red: broken site. Most probably, has mixed content, secure and insecure. The certificate given is not trusted or is expired



@Siria, the explanation may seem complicated, but I'll try to make it easy.

Go to the windows calculator in scientific mode and type in hexadecimal your desired color in reverse (Blue, Green, Red instead the normal Red, Green, Blue). Click the radio for Decimal and, voilà, there you have the decimal value for the color you are searching for.

Options: ReplyQuote
Re: Adress bar color / urlbar https
Posted by: siria
Date: August 02, 2015 05:12PM

Thanks for the explanations, especially what "broken" means exactly.
And okay, so we have a calculator for conversions, that helps too.
(But I still think the guy who invented THAT numbering system must have had some really weird stuff for breakfast :coolsmiling smiley



Edited 1 time(s). Last edit at 08/02/2015 05:13PM by siria.

Options: ReplyQuote
Re: Adress bar color / urlbar https
Posted by: JohnHell
Date: August 02, 2015 06:32PM

Oleksandr The following is off topic, this is irrelevant for your question.


Quote
siria
(But I still think the guy who invented THAT numbering system must have had some really weird stuff for breakfast :coolsmiling smiley

I don't know. In fact, in the later months, I have read some references to this when talking about standardize programing or use an on-the-fly compiling (as .NET libraries).

What all they discusses is the Endian. Big endian and little endian. And how to deal with it by the on-the-fly compilers.
https://en.wikipedia.org/wiki/Endianness

What happens if someone decides that numbers are represented in big-Endian instead little-endian?

Or, as in this case, what happens when someone has "some weird stuff for breakfast" and decide that this Mozilla feature is going to use little-endian?

Well, the answer is in the other thread when I struggled how the heck the numbering was calculated (back then I hadn't any ideas of what endianness meant).

Making things being harder, anyway.

By the way, the normal is to be big-endian (left to right, as normal writting), but, you know, someone for whatever reason, ends doing the opposite. Maybe had to deal with it because he was using a library that needed little-endian.

Who knows.

I know, I know, you are now like



Edited 2 time(s). Last edit at 08/02/2015 06:34PM by JohnHell.

Options: ReplyQuote
Re: Adress bar color / urlbar https
Posted by: Dorian
Date: August 02, 2015 06:54PM
Options: ReplyQuote
Re: Adress bar color / urlbar https
Posted by: JamesD
Date: August 02, 2015 07:06PM

siria and JohnHell

That is a great job on researching this long number thing. I agree that the person/people who designed it had something for breakfast. AND LUNCH AND DINNER, TOO, with some recreational smoking in between meals.

Edit: Let me be real clear. Dorian used it because it was available. He did not design the thing.



Edited 1 time(s). Last edit at 08/02/2015 07:11PM by JamesD.

Options: ReplyQuote
Re: Adress bar color / urlbar https
Posted by: JohnHell
Date: August 02, 2015 07:53PM


But this is a Mozilla pref, not a K-meleon pref, right?

If I'm not wrong, is a Seamonkey one, and as K-meleon was initially based on its branch, there it comes from, right?

I mean you didn't implement it, or did you?

Firefox lost this pref in its path.



Edited 1 time(s). Last edit at 08/02/2015 07:54PM by JohnHell.

Options: ReplyQuote
Re: Adress bar color / urlbar https
Posted by: Dorian
Date: August 02, 2015 09:33PM

As far as I remember, this is a kmeleon pref (even though the prefix is not kmeleon). And sorry, I don't smoke ^^.

A color is just a number, you're just missing the color picker to find it for you here.

Options: ReplyQuote
Re: Adress bar color / urlbar https
Posted by: JohnHell
Date: August 02, 2015 09:58PM

Quote
Dorian
As far as I remember, this is a kmeleon pref (even though the prefix is not kmeleon). And sorry, I don't smoke ^^.

A color is just a number, you're just missing the color picker to find it for you here.

Ok, sorry, then, for any mistake said above.

Options: ReplyQuote
Re: Address bar color / urlbar https
Posted by: siria
Date: August 02, 2015 10:52PM

Well, there are numbers, and there are NUMBERS... and looks like someone at microsoft or intel was the 'genius' to invent that system, but I better stop grinning smiley

At any rate having those prefs sure is a lot better as if they didn't exist at all!
But couldn't they be added to the visible prefs in about:config, assuming this was just forgotten? Even so they are still though to discover, without "color" in the names.



Edited 1 time(s). Last edit at 08/02/2015 10:54PM by siria.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.