Graphics :  K-Meleon Web Browser Forum
All about K-Meleon icons, skins and throbbers. 
(SOLVED) Ignore system theme
Posted by: avariado
Date: April 12, 2020 01:49PM

Hi, I'm using an high contrast theme on Windows but I would like K-Meleon to ignore it.
I've tried about:config and create a new integer preference named ui.systemUsesDarkTheme, set it to 0, but that didn't work.
Any ideas? Thanks.



Edited 1 time(s). Last edit at 04/18/2020 11:11AM by avariado.

Options: ReplyQuote
Re: Ignore system theme
Posted by: JohnHell
Date: April 12, 2020 05:00PM

That preference doesn't look it is for what you intend, but to instruct the browser to use the Dark Themes of websites if the system has a Dark Theme.

But, anyway, K-meleon will have the interface colors the system has as it uses the same interface, so if it is black, it will be black.

If the problem is that you don't see the toolbars icons, or whatever, you can add a background to the toolbars by checking the option in Preferences panel (Edit menu) and having a back.bmp file (and maybe .png was also supported) in your skin folder, or the shared skin folder.

Or use another theme, or other icons.



Edited 2 time(s). Last edit at 04/12/2020 05:02PM by JohnHell.

Options: ReplyQuote
Re: Ignore system theme
Posted by: avariado
Date: April 16, 2020 01:03PM

Thank you for your help, JohnHell.
Everything gets too dark, search bar, background, links...
On Firefox, I can go to Options - General tab - Language and appearence - Colors - Override the colors (...) - toggle it to "Never".
I was looking for an easy solution like this on K-Meleon, because changing text and link colors on K-meleon seems to be too complex for me.
Anyway, thanks again for your answer!



Edited 1 time(s). Last edit at 04/16/2020 01:10PM by avariado.

Options: ReplyQuote
Re: Ignore system theme
Posted by: JohnHell
Date: April 16, 2020 02:27PM

If you can (by privacy concerns), post a screenshot to understand what do you mean. Before and after apply settings or Dark themes.

I don't use a system with Dark Theme, nor latests Firefox, so I, myself, can't give further advices without see what is going on.

But you talk about links. Links is a thing about the pages themselves, not K-meleon.

And, please, tell which K-meleon version/build are you using. You can check it in Help > about K-meleon.

Information, at least, to let others help, if I can't smiling smiley



Edited 1 time(s). Last edit at 04/16/2020 02:28PM by JohnHell.

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: siria
Date: April 16, 2020 02:34PM

Oh you mean PAGE colors?
Since you mention High-Contrast-Theme, this pref looks quite suspicious:

"browser.display.document_color_use"
https://support.mozilla.org/en-US/questions/1256726
0 = if system highcontrast, use user-colors, otherwise author colors
1 = always author colors
2 = always user colors
Please tell if that's it?

And that pref is probably a new one since min KM76 (FF38).
In older versions things may be different. They have obsolete pref
"browser.display.use_document_colors" = true / false,
but your mention of highcontrast makes me suspect the newer one.

There are probably a whole bunch of color prefs involved.
Would open "about:config" page and type just "color" into the filter line, then look around and test if there's something useful.

Or probably easier, open page "about:preferences" and look around there.
To get a menu to simpler open this and some other "about" pages, would copy macro file "aboutabout.kmm" into the macros folder. It's a quite tiny macro just opening those links.
It can be customized by opening it in a simple text editor and changing the "setmenu" lines.
To uninstall it again, that kmm file can just be removed again.
http://kmeleonbrowser.org/forum/read.php?9,147082



(sig) New unofficial K-Meleon 76.4 (KMG76.4) available, in own subforum.
Based on Goanna engine, called 'test' builds forever but more stable as 75.1 acc. forum members. It's 1-2 generations ahead of predecessor KM76RC-2016
K-Meleon FAQ (link missing in forum sidebar)
Tips&Tricks - Learning new stuff every day
New to K-Meleon? What do you like? What not?



Edited 2 time(s). Last edit at 04/16/2020 02:44PM by siria.

Options: ReplyQuote
Re: Ignore system theme
Posted by: avariado
Date: April 16, 2020 08:19PM

Hello again, JohnHell!

Sure, no problem, here are the screenshots in attachment.

Thank you also, Siria, I'll look into it.

K-meleon build: Mozilla/5.0 (Windows NT 6.3; rv:52.9) Gecko/20100101 Goanna/3.4 Firefox/52.9 K-Meleon/76.2



Edited 1 time(s). Last edit at 04/16/2020 08:21PM by avariado.

Attachments: ScreenShot001.png (172.4 KB)   ScreenShot002.png (178.8 KB)  
Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: siria
Date: April 16, 2020 10:15PM

Interesting screenshots, thanks.

A little prob, they are rather huge with 0.8MB size and this 20 year old forum is long since running out of space. If you don't mind would be better to save such non-photo screens in png-format instead of jpg. That's lossless and needs only about 1/5 of jpg-filesize.

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: avariado
Date: April 17, 2020 03:17AM

I've tried, Siria...

411 KB => 351 KB
352 KB => 349 KB

lol
I can post them elsewhere, on Imgur or something, if you want :-)

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: siria
Date: April 17, 2020 04:41AM

Strange... did you make new ones?
Or only converted the fuzzy JGPs? That wouldn't work, since they are already fuzzy not original sharp anymore.

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: avariado
Date: April 17, 2020 10:51AM

Oh, you meant new ones, I've learned something today...

Done!

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: JohnHell
Date: April 17, 2020 02:06PM

And if you disable font smoothing (or ClearType), more could be saved. Even a 50% less than current size. PNG is quite good for plain colours, but font smoothing adds lots of shades, which increase the numbers of colours and so the compression suffers.

Anyway, going on-topic again, I don't find why the Windows 10 dark mode is being applied to pages too. Sorry.

But the colours look like if you had switched the Tools > Privacy > Block page colours setting, which force the colour settings for default pages.

You can find those colours definitions in about:config, filtering by color word.

That is a very simplistic workaround (change those colours), but I don't see a way to avoid the Windows 10 settings. Note that I don't use that system, but I don't see, in first place, why K-meleon is obeying.



Edited 2 time(s). Last edit at 04/17/2020 02:09PM by JohnHell.

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: avariado
Date: April 17, 2020 08:03PM

Yeah, it's weird... As far as I can tell, different browsers have different behaviours when it comes to assuming or not the Windows system theme (I'm on Windows 8.1 btw).
For example, Chrome ignores the system theme and Firefox behaves exactly like K-meleon, but it has an option to turn it off, following the steps I mentioned above.
That said, thank you for your kind answers, I'll be back here later to check if eventually anyone got more ideas on how to force K-meleon ignore Windows system theme.
Cheers!

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: siria
Date: April 17, 2020 08:19PM

Quote
JohnHell
Anyway, going on-topic again, I don't find why the Windows 10 dark mode is being applied to pages too.
Note that I don't use that system, but I don't see, in first place, why K-meleon is obeying.

Wasn't it always normal that KM uses system looks?
For webpages too, even in old KM1.6, depending on this pref:
browser.display.use_system_colors = true

And various other color prefs matter too of course, all interfering.
In modern KM76 the new pref I posted previously is probably the solution.

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: JohnHell
Date: April 17, 2020 08:36PM

Quote
siria
Quote
JohnHell
Anyway, going on-topic again, I don't find why the Windows 10 dark mode is being applied to pages too.
Note that I don't use that system, but I don't see, in first place, why K-meleon is obeying.

Wasn't it always normal that KM uses system looks?

For the interface, yes, for webpages, no.

Quote
siria
For webpages too, even in old KM1.6, depending on this pref:
browser.display.use_system_colors = true

Yes, on webpages, if you instruct it, but not on its own.

No by system preference.

Might be a hidden Goanna build preference?

Quote
siria
And various other color prefs matter too of course, all interfering.
In modern KM76 the new pref I posted previously is probably the solution.

Probably, but not by what has been said by avariado :s Really confused.

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: siria
Date: April 17, 2020 10:08PM

Quote
siria
Oh you mean PAGE colors?
Since you mention High-Contrast-Theme, this pref looks quite suspicious:

"browser.display.document_color_use"
https://support.mozilla.org/en-US/questions/1256726
0 = if system highcontrast, use user-colors, otherwise author colors
1 = always author colors
2 = always user colors
Please tell if that's it?

And that pref is probably a new one since min KM76 (FF38).
In older versions things may be different. They have obsolete pref
"browser.display.use_document_colors" = true / false,
but your mention of highcontrast makes me suspect the newer one.

Quote
JohnHell
Quote
siria
And various other color prefs matter too of course, all interfering.
In modern KM76 the new pref I posted previously is probably the solution.

Probably, but not by what has been said by avariado :s Really confused.

Hmm, said what? He did not say he bothered to try that pref yet.
Or any other of the suggestions in my first post above.
Unless he only forgot to mention if he did?
Until then I'll still consider that pref 99% suspect.

Overall it actually makes some sense IMO if it's Mozillas new engine default to prefer dark theme and dark pages if the user has chosen a dark system theme AND high-contrast too. That indicates a real preference for such looks, perhaps even real eye probs.

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: JohnHell
Date: April 17, 2020 11:22PM

Quote
siria
Hmm, said what? He did not say he bothered to try that pref yet.
Or any other of the suggestions in my first post above.
Unless he only forgot to mention if he did?
Until then I'll still consider that pref 99% suspect.

I'd swear I read it, but reviewing it not

Avariado, try siria's prefs.

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: avariado
Date: April 18, 2020 11:11AM

Siria! I'm so sorry, I've said "I'll look into it" but then I tottaly forgot... mea maxima culpa.
Your answer is absolutely RIGHT and I will mark this topic as solved.

about:config
browser.display.document_color_use
1 = always author colors

Just one little thing: the url/address bar is still dark.
When I'm browsing the backgroud gets yellow, but it often gets black and almost illegible.

Thank you for your patience, Siria and JohnHell.

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: siria
Date: April 18, 2020 05:06PM

Thanks for confirming it works!
It's a real jungle those prefs, about 3.000 natively in the engine, and many even interfering with others. And not even descriptions or a GUI for most. So there's always a bit luck involved too, especially in KM.

Very often it helps to just look around on "about:config" page. Filtering for key words like "color" in this case, and just experimenting with them. Matter of trial and error to see which native engine prefs work in KM too or not. Or check the native pages linked on "about:about", as mentioned in my first post too.
To avoid accidents while experimenting blindly with prefs, users can create a backup copy of file prefs.js in current profile folder (or yet better, keep a copy of the whole profile folder)

Quote
avariado
Just one little thing: the url/address bar is still dark.
When I'm browsing the backgroud gets yellow, but it often gets black and almost illegible.

URLBAR-colors:
In OLD KM-versions only the background color for encrypted httpS-pages can be set, the rest is native OS.
On "about:config" page, example light-red + green:
browser.urlbar.highlight.broken (INT) 5275647
browser.urlbar.highlight.secure (INT) 3862195

Those numbers are DECIMAL colors, unlike other color definitions in browsers. There's a variety of ways to figure out such numbers, e.g. by checking own color tools or by a quick web search. On my old system am generally very happy with great old Faststone Capture tool. It also shows decimal numbers in the colorpicker.

MODERN KM (since 76?)
It's well possible that more settings are now possible, but should better be checked by users of those versions, not me. Just a first guess, looking around on native Mozilla GUI in "about:preferences" page would be a good start.
And have a dim memory that Dorian did make the urlbar partly customizable at some point (KM76?), regarding font size and context menus. That possibly allows to set other aspects too, but not sure. At the moment neither sure where those settings are stored, perhaps in prefs (filter for "urlbar"), or in file userChrome.css...? Perhaps even an entry in F2 pages?

(_HOWTO_ how to urlbar colors)

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: avariado
Date: April 19, 2020 11:40AM

OK, I'm using Goanna new versions... couldn't find nothing yet.
But this time I just wanted to thank you once again, you were very helpful!

Options: ReplyQuote
Re: Ignore system theme (dark theme high contrast)
Posted by: betnan
Date: October 06, 2020 02:28AM

ok

Options: ReplyQuote


K-Meleon forum is powered by Phorum.