sindresorhus / caprine

Elegant Facebook Messenger desktop app
MIT License
6.99k stars 551 forks source link

[Flatpak] the toolbar doesn't respect dark theme setting. #1690

Closed K0-RR closed 3 years ago

K0-RR commented 3 years ago

Flatpak on the left, deb on the right. Screenshot from 2021-08-23 12-10-16 Yes, I restarted flatpak Caprine after enabling the dark mode.

dusansimic commented 3 years ago

Install org.gtk.Gtk3theme.Adwaita-dark flatpak from flathub.

K0-RR commented 3 years ago

Skipping: org.gtk.Gtk3theme.Adwaita-dark/x86_64/3.22 is already installed

dusansimic commented 3 years ago

Did you completely quit Caprine and start it again? You can do so by going to File -> Quit or pressing Ctrl + Q.

dusansimic commented 3 years ago

I've just checked on a Live ISO and it doesn't seem to work. You should install the Gtk3theme flatpak which matches the system theme you use (it can be found in system settings under themes). After I installed the required flatpak (org.gtk.Gtk3theme.Mint-Y-Dark in my case) I still couldn't get it to work so I'll reopen this. I'm not sure why it's not working since it's working for me on Gnome 40 with Adwaita Dark theme. I'll try to find out what's wrong but I can't make any promises.

dusansimic commented 3 years ago

@RDKRACZ after installing Mint and trying it out again, I've managed to fix it. As I said in my previous comment, you'll just need to install the correct flatpak for the theme you use. Let me know if it works.

K0-RR commented 3 years ago

Screenshot from 2021-08-23 15-23-28 Ok, but which one of these themes I should install as a flatpak? Also, seems like some of them are not available as a flatpak.

dusansimic commented 3 years ago

Ok, but which one of these themes I should install as a flatpak?

I'm going to guess that it's the window borders theme you need to install. I don't use Cinnamon so I don't really know which one should be installed exactly.

Also, seems like some of them are not available as a flatpak.

That does tend to be the case with flatpak. AFAIK you can only theme the apps with themes available on flathub. There might be another way but it's a hacky way. I've installed the org.gtk.Gtk3themes.Mint-Y-Dark package and used the Mint-Y-Dark theme for everything in that settings menu except for mouse pointer theme.

Since this is a theming issue specific to Cinnamon and your distro, I think you'll get much more help on your distro forums and Cinnamon forums or other communication and help channels.

dusansimic commented 3 years ago

Sorry for pinging this issue again. I had a little bit of free time and made a flatpak manifest for the theme that's missing from flathub (CBlack). You can find it here. All you need to do is build it. You can find out how in the flatpak docs if you're adventurous 😁. I how it helps and let me know if it works 😊.