178
submitted 1 year ago* (last edited 1 year ago) by Moxvallix@sopuli.xyz to c/firefox@lemmy.ml

I use KDE Plasma, and much prefer the KDE color picker over the GTK one that Firefox uses, with input type=color.

I know that I can set GTK_USE_PORTAL=1 to make Firefox use the native file picker, is there a way to make it use the native color picker as well?

I know there probably isn't a way, but I figured it's worth a shot asking.

top 23 comments
sorted by: hot top controversial new old
[-] nido@feddit.ch 39 points 1 year ago

Entire Comment Section discussing the weird comment of @over_clox instead of OPs Question lmao.

[-] Moxvallix@sopuli.xyz 18 points 1 year ago
[-] spudwart@spudwart.com 6 points 1 year ago* (last edited 1 year ago)

I solved the issue of Firefox not following my theme on KDE by abandoning Firefox and using Waterfox.

Functionally identical in every way except Waterfox follows qt instead of gtk.

It’s a stretch, I’ve never used waterfox’s color picker. But it may also use qt instead of gtk.

[-] Moxvallix@sopuli.xyz 4 points 1 year ago

Just tried it. Same colour picker as Firefox unfortunately.

[-] lemann@lemmy.one 8 points 1 year ago

Ah, that's where the discussion is! Lovely!

*ignores OP question and scrolls down to join in*

[-] AnonTwo@kbin.social 4 points 1 year ago

I did try to find something last night but couldn't find anything unfortunately :(

[-] FreshLight@sh.itjust.works 26 points 1 year ago

Excuse me for not answering the question but are you using the color picker in Firefox really that frequently?

I would just choose a nice color with the picker of my choice and paste the hex-code / type the RGB in the custom panel of the default FF color picker and that's it.

[-] Moxvallix@sopuli.xyz 27 points 1 year ago

Not really. I just like tinkering, and customising things, and I wanted to see if I could.

[-] FreshLight@sh.itjust.works 9 points 1 year ago* (last edited 1 year ago)

Ah, I see! In that case I can completely understand your intention.

Edit:

I feel like the guy on Stack Overflow who says something like "That's bad practice, why would you do that?" and then the thread is closed.

And people who google how to solve a certain problem and get to the SO page never get to know the answer that would be relevant.

[-] Teon@kbin.social 3 points 1 year ago

I'm not a dev, but I'm wondering if the 'Plasma Browser Integration' package has any influence on the picker? Or maybe there are GTK app settings in play.
Just a thought.
It really annoys me that Firefox is not more integrated in KDE than it is.

[-] Moxvallix@sopuli.xyz 2 points 1 year ago

I have the plasma browser integration. It adds an item to “Share” in the context menu (for use with KDEconnect etc) and integrates Firefox with the media player.

[-] Redjard@lemmy.dbzer0.com 2 points 1 year ago

Media integration should be done via mpris which ff does natively now, so that's no longer done by the plasma addon

[-] XTornado@lemmy.ml 19 points 1 year ago

I didn't even know there was a color picker in Firefox !? What it is used for?

[-] Moxvallix@sopuli.xyz 21 points 1 year ago

The color type form input. It’s a HTML standard, all modern browsers have it.

[-] XTornado@lemmy.ml 8 points 1 year ago

Oh ok that makes sense I guess I don't usually use anything like that... Plus I was thinking of the browser itself using it for something...

[-] IHeartBadCode@kbin.social 17 points 1 year ago

In about:config see if setting widget.use-xdg-desktop-portal to true does anything for you.

[-] Moxvallix@sopuli.xyz 13 points 1 year ago

Hmm, it appears it already is set to true. Unfortunately that doesn't seem to work.

[-] Takios@feddit.de 5 points 1 year ago

If I recall correctly that enables the kde file picker at least

[-] pineapplelover@lemm.ee 8 points 1 year ago

Yo kde color picker exists? How do I use this?

[-] Moxvallix@sopuli.xyz 9 points 1 year ago

It pops up whenever a KDE application offers colour selection. Easiest way is probably to open settings to Appearance > Colors and click the Custom button.

Falkon also uses it with input type=color which is why the screenshot says Falkon in it.

[-] lutillian@sh.itjust.works 4 points 1 year ago* (last edited 1 year ago)

It is using a system color picker. That's the gtk color picker. You'd need to configure xdg-portal to utilize a different picker I'm pretty sure.

https://wiki.archlinux.org/title/XDG_Desktop_Portal might point you in the direction you're looking for... Not 100% on this though... maybe switch from portal-gtk to portal-kde?

[-] Moxvallix@sopuli.xyz 1 points 1 year ago

Alright, I’ll look into this. Thank you.

[-] Transcendant@lemmy.world 1 points 1 year ago

It's a bit of a PITA. If you're after a proper dark mode, there's an addon called 'Dark Reader' which works very well.

this post was submitted on 20 Oct 2023
178 points (100.0% liked)

Firefox

17768 readers
14 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS