Artix Linux Forum

General Category => Forum => Topic started by: OldRunner on 18 September 2020, 18:56:35

Title: [SOLVED] Falkon dark themt
Post by: OldRunner on 18 September 2020, 18:56:35
I want to change the theme in the Falkon browser, but I can't find how to do it - can someone suggest how to do it?
Title: Re: Falkon dark themt
Post by: alium on 18 September 2020, 19:13:41
How hard is it not to be lazy and use a browser first and search the internet? 8)

https://store.falkon.org/p/1307698
https://www.reddit.com/r/kde/comments/f2plcs/dark_mode_in_qt_webengine_browsers_eg_falkon_with/

Title: Re: Falkon dark themt
Post by: SGOrava on 18 September 2020, 21:10:19
Falkon is using your system Qt theme, so configure that correctly and you are done.
In order to get "Dark mode" as in chromium do as alium mentioned:
https://www.reddit.com/r/kde/comments/f2plcs/dark_mode_in_qt_webengine_browsers_eg_falkon_with/

Regarding installing that terrible theme from the Falkon store you would need development version of Falkon (which I assume you do not have)
Title: Re: Falkon dark themt
Post by: OldRunner on 19 September 2020, 15:32:28
How hard is it not to be lazy and use a browser first and search the internet? 8)
Thank you, of course, for such a harsh answer - I am very glad that you are absolutely not lazy and you know "everything, everything". And, unfortunately, I am not like that and I really don't know many things. But your answer, unfortunately, did not clarify for me "How to remove the dark theme from Falkon?"
But now I do not even want to contact you because you are not "lazy" but arrogant and you can very easily offend anyone who asks you for help with your answer.
Title: Re: Falkon dark themt
Post by: SGOrava on 19 September 2020, 16:32:31
Quote
I want to change the theme in the Falkon browser, but I can't find how to do it - can someone suggest how to do it?
Open Falkon and go to Menu > Preferences > Appearance > Themes

The UI is standard Qt5, so configure that correctly. Artix is probably setup with qt5ct so check that out.

Quote
"How to remove the dark theme from Falkon?"
This is new information which you did NOT mention before!
But you are still not clear enough. If I am to assume what you mean I would suggest to search for "QTWEBENGINE_CHROMIUM_FLAGS" in your environment (/etc/environment and whatever-else is setting it up for you) (this is mentioned in reddit link which was provided to you.)
Title: Re: Falkon dark themt
Post by: conky60 on 19 September 2020, 16:34:18
Greetings, there are not many available themes for Falkon, besides the ones provided built-in, and the Tek-Phase and Example Theme (which you can use to make your own theme). Edit > Preferences > Appearance > Themes.

I personally use the "Linux" theme, which as mentioned follows your systems Qt preferences. :)

Best regards.
Title: Re: Falkon dark themt
Post by: OldRunner on 19 September 2020, 17:29:05
I have to apologize, but apparently I did not correctly indicate the problem - my entire screen in this browser is dark and I cannot do anything about it. There are absolutely no problems in other browsers.
Changing themes - Linux / Chrome / Windows / Mac only change the border color but not the field itself.
Title: Re: Falkon dark themt
Post by: SGOrava on 19 September 2020, 17:55:43
what do you mean dark?
send a screenshot please.
Title: Re: Falkon dark themt
Post by: OldRunner on 19 September 2020, 18:05:37
That's what I have
Title: Re: Falkon dark themt
Post by: SGOrava on 19 September 2020, 18:13:56
Good joke, Artix forum is using Dark Theme by default.
Can you post screenshot of some light themed website instead?
Title: Re: Falkon dark themt
Post by: OldRunner on 19 September 2020, 18:28:02
Ok.
Title: Re: Falkon dark themt
Post by: SGOrava on 19 September 2020, 18:35:15
You got the fix in second link in first reply to your question.

Search for "QTWEBENGINE_CHROMIUM_FLAGS" in your environment and remove it.
Did you do that? I mentioned it 2 times already.
If it is in some file you might need to restart your X (or machine).
For testing purpose run in terminal:
Code: [Select]
QTWEBENGINE_CHROMIUM_FLAGS="" falkon -r -p debug
Title: Re: Falkon dark themt
Post by: OldRunner on 19 September 2020, 18:57:07
Thanks SGOrava for the tip. I ran this command through the terminal and a new, already light browser appeared. Now I will install all my settings and try to turn off the old one and restart the new version. Hope it works.
Title: Re: Falkon dark themt
Post by: SGOrava on 19 September 2020, 19:02:41
all you need to do is go and remove that variable from your environment.
Title: Re: Falkon dark themt
Post by: OldRunner on 19 September 2020, 19:12:53
Thanks, but I'm not sure if I know how to do this.
Title: Re: Falkon dark themt
Post by: SGOrava on 19 September 2020, 19:15:16
So start by checking /etc/environment if that variable is there
if so run some editor as root (with sudo) and remove it

if it is not there than continue to your user configs.
Title: Re: Falkon dark themt
Post by: OldRunner on 19 September 2020, 19:23:23
You mean this variable
QTWEBENGINE_CHROMIUM_FLAGS = - blink-settings = darkMode = 4, darkModeImagePolicy = 2
Title: Re: Falkon dark themt
Post by: SGOrava on 19 September 2020, 19:25:12
you found it, great.

AS you see it is configured to enable dark mode.
Just remove the variable and reboot.
Title: Re: Falkon dark themt
Post by: OldRunner on 19 September 2020, 19:28:22
In fact, it looks like this in the original file.

QT_QPA_PLATFORMTHEME = gtk
QTWEBENGINE_CHROMIUM_FLAGS = "- blink-settings = darkModeEnabled = true -enable-features = OverlayScrollbar, OverlayScrollbarFlashAfterAnyScrollUpdate, OverlayScrollbarFlashWhenMouseEnter

Should I remove it all?
Title: Re: Falkon dark themt
Post by: SGOrava on 19 September 2020, 19:29:43
just comment it in case you wish to reuse the rest of the options.
The comment is "#" character, place it at the start of the line and that line will be ignored.
Title: Re: Falkon dark themt
Post by: OldRunner on 19 September 2020, 19:32:24
Like this?

# QTWEBENGINE_CHROMIUM_FLAGS = "- blink-settings = darkModeEnabled = true -enable-features = OverlayScrollbar, OverlayScrollbarFlashAfterAnyScrollUpdate, OverlayScrollbarFlashWhenMouseEnter"
Title: Re: Falkon dark themt
Post by: SGOrava on 19 September 2020, 19:33:01
like that
Title: Re: Falkon dark themt
Post by: OldRunner on 19 September 2020, 19:35:36
Or maybe change "true" to "false"?
Title: Re: Falkon dark themt
Post by: SGOrava on 19 September 2020, 19:37:10
try it
Title: Re: Falkon dark themt
Post by: OldRunner on 19 September 2020, 19:40:47
I restarted the browser but everything remained the same. Maybe you meant to restart the computer?
Title: Re: Falkon dark themt
Post by: SGOrava on 19 September 2020, 19:42:26
yeah,  reboot your system.
Title: Re: Falkon dark themt
Post by: OldRunner on 19 September 2020, 19:49:13
SGOrava,
Thank you so much! Everything worked out.
Bravo!