Fix GTK/QT Theming Nightmares on Linux

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

ความคิดเห็น • 119

  • @d-air1
    @d-air1 4 ปีที่แล้ว +52

    I really appreciate how kde handles this though. It may not be perfect, but at least they are trying to theme gtk2, 3, and whatever other apps may be on your system.

    • @ashwin372
      @ashwin372 4 ปีที่แล้ว +2

      In kde you need to install gtk theme matching your kde theme

    • @d-air1
      @d-air1 4 ปีที่แล้ว

      @@ashwin372 i believe it was like that in past versions of kde, but I'm on 5.19.5. Whatever I changed the kde theme to. Kde will apply that theme to gtk apps as well.

    • @ashwin372
      @ashwin372 4 ปีที่แล้ว

      @@d-air1 wow thats cool but will it automatically download matching theme or you need to manually do it?

    • @d-air1
      @d-air1 4 ปีที่แล้ว

      @@ashwin372 I don't believe it downloads the matching theme, but more like dynamically creates a matching gtk theme based off of what you are currently using. If it isn't creating then it must be forcing your color scheme on gtk apps. There are still problems with gtk2 apps though.

    • @WolfRites
      @WolfRites 4 ปีที่แล้ว +1

      @@d-air1 Definitely doesn't happen for me. Setting the GTK themes works perfectly, though.

  • @vitiok78
    @vitiok78 4 ปีที่แล้ว +16

    In KDE GDK theming is integrated in desktop environment itself. It takes few clicks to theme GDK apps. And with Kvantum on top you'll get fantastic look

  • @nico1337
    @nico1337 4 ปีที่แล้ว +25

    I don't have any problems with theming under KDE. Even per default GTK Apps are fitting perfectly. So I can't agree with 1:27
    If you install another KDE Style just look for the corresponding GTK theme and you'll be fine.

    • @joogotv
      @joogotv 4 ปีที่แล้ว +1

      100% true

  • @Otome_chan311
    @Otome_chan311 4 ปีที่แล้ว +9

    Getting consistent QT/GTK themes in Gnome-based DEs: A bunch of complicated stuff and at the end it still doesn't work right.
    Getting consistent QT/GTK themes in KDE: Just install the QT theme and the corresponding GTK theme and you're good to go.

  • @EddieTheLightbringer
    @EddieTheLightbringer 4 ปีที่แล้ว +2

    I've been looking for this for the last three months!

  • @marinoceccotti9155
    @marinoceccotti9155 6 หลายเดือนก่อน +1

    I concur. On my Mint Mate, that is, gnome based desktop, customizing a theme is a nightmare, mostly with windows borders.

  • @Dunestorm333
    @Dunestorm333 4 ปีที่แล้ว +10

    I just wish the GNOME and Plasma desktop handled both toolkits as if they were native. There's no reason for them not to with tools such as Kvantum existing, it just makes the Linux desktop feel a lot more cohesive overall, even with the differences and preferences both desktop environments have.

    • @fuseteam
      @fuseteam 4 ปีที่แล้ว

      the question is if that's even possible, what would be needed for such a feat

    • @Dunestorm333
      @Dunestorm333 4 ปีที่แล้ว

      @@fuseteam Honestly it just needs both teams to acknowledge the competing desktop environment as a first class citizen. Both desktops treating third party DEs independently helps no one, least of all the community.

    • @ThatLinuxDude
      @ThatLinuxDude 4 ปีที่แล้ว +1

      If you stick to Breeze (or also Feren OS's theme in Feren OS), you'll get styling for Qt5, GTK2 and GTK3 that matches one-another (minus gradients)* that all matches one-another.
      * Doesn't apply to Feren OS's post-update new theme's styling as that has gradients where desired no matter the toolkit.

    • @fuseteam
      @fuseteam 4 ปีที่แล้ว

      @@Dunestorm333 like i said i wonder how feasible that is. it is a legit question for several reasons among others:
      1. distros make changes to the theming of a DE to differentiate their branding e.g. zorin's gnome looks nothing like ubuntu's gnome
      2. a DE consists of more than just the toolkits

    • @fuseteam
      @fuseteam 4 ปีที่แล้ว

      @@ThatLinuxDude that's quite a feat imo. kudos man

  • @ashwin372
    @ashwin372 4 ปีที่แล้ว +4

    Hopefully kde and gnome can come to some understanding of this so a single theme and be used by both gtk and qt

  • @jorditribo94
    @jorditribo94 4 ปีที่แล้ว +9

    An easy solution is to use a GTK based desktop with GTK apps and to try to stay away from QT apps and universal packages systems.

    • @jorditribo94
      @jorditribo94 4 ปีที่แล้ว +3

      @Alexandre Speltri flatpaks work well with GTK themes that can be installed in the runtime. Snaps only works with a couple o predefined themes such as Yaru, Arc, etc.

    • @Chr0n0s38
      @Chr0n0s38 4 ปีที่แล้ว

      Or use KDE and have the option to choose GTK and Qt apps. KDE has built-in theme support for GTK, and has good defaults. The only issue would be Flatpak/Snaps.

    • @ashwin372
      @ashwin372 4 ปีที่แล้ว +1

      Not possible

    • @Ahmedjuve78
      @Ahmedjuve78 4 ปีที่แล้ว +1

      So u suggest me not to use VLC media player? that's so dumb.

    • @vseivane3023
      @vseivane3023 4 ปีที่แล้ว +1

      there isn't a GTK version of Krita

  • @HellcatM
    @HellcatM 4 ปีที่แล้ว +2

    I never even thought about this. Didn't really care. Windows not all the programs look the same, so I guess I'm used to it. If I come across someone who has this issue, I know so thank you. :)

  • @ThatLinuxDude
    @ThatLinuxDude 4 ปีที่แล้ว

    I'm surprised so many distributions don't bother to make applications have consistent styling across Qt5 and GTK2/3 for their default styling. For instance, Fedora has the aforementioned (in the video) Adwaita-Qt in GNOME, and Feren OS* has a custom Adwaita-based GTK2/3 theme that also matches design-wise with the custom style made for Qt5 applications in it.
    * Feren OS currently requires an update first before you can start using the new Feren OS style - you'll need to also manually re-apply a standard Feren OS Global Theme to make it use the new default theme after applying these updates.
    That being said, in my case Feren OS's styling doesn't yet have a Flatpak nor Snap equivalent, but I am actively working on getting them into those respective platforms whenever I have some free time to look into doing so.

  • @letsplayonlinux4383
    @letsplayonlinux4383 4 ปีที่แล้ว

    Thank you for your time searching, it save hours.

  • @deancode
    @deancode 4 ปีที่แล้ว +5

    Is there a way to make wine applications look native on linux?

    • @DienerNoUta
      @DienerNoUta 11 หลายเดือนก่อน

      with a WM

  • @fredrik2008
    @fredrik2008 4 ปีที่แล้ว +7

    For qt its easiest to just add "export QT_QPA_PLATFORMTHEME=gtk2" to .profile and it will follow your gtk theme. And avoid flatpaks and snaps, easy if you are running an arch based distro, however apt based ones are harder to get non snap and flatpak version of programs.

  • @ronsingh
    @ronsingh 4 ปีที่แล้ว

    Oh my, thanks for the video, intensely helpful to me.

  • @ventusprime
    @ventusprime 4 ปีที่แล้ว +2

    2020 and if you want a thing done in Linux you have to use the terminal

  • @daemonspudguy
    @daemonspudguy 4 ปีที่แล้ว +1

    Thank you for this video!

  • @elys7563
    @elys7563 4 ปีที่แล้ว

    Man, you're very descriptive. Great video.

  • @larseich5796
    @larseich5796 4 ปีที่แล้ว +3

    I think Kvantum is pronounced more like Quantum. That would be somewhat consistent with the names of other apps from the extended KDE environment. (Though they really should have spelled it Kwantum to make it clear)

    • @Chr0n0s38
      @Chr0n0s38 4 ปีที่แล้ว

      Huh, actually that would make sense if it's going for a Latin-esque look. I guess it would be "Cvantum", but KDE.

  • @Silvius.2
    @Silvius.2 4 ปีที่แล้ว

    Thanks for a video about this problem..
    I was and bee not happy about different window managers looking!
    In kde u can inzegrate gtk apps but not easy to anderstand what do do -configurate!

  • @oCMSo
    @oCMSo 4 ปีที่แล้ว

    for flatpak just so the theme directory override, it will solve the gtk issue for good

  • @jalo4242
    @jalo4242 4 ปีที่แล้ว +1

    How do I handle theming of Qt or gtk programs on other DEs like Deepin?

  • @TalosDx
    @TalosDx 2 ปีที่แล้ว +1

    This all works well only in the case of a "popular" theme. But, when you have a good theme, but not so popular, then this guide is useless and can only break the appearance of the operating system even more. In such a case, install TimeShift before all manipulations with the OS. Also, system updates can damage your themes. What happened to me. This guide didn't help me.

  • @Algum.Leitor
    @Algum.Leitor 4 ปีที่แล้ว

    In some applications like Opera Browser, WPS and Onlyoffice, their window buttons do not follow the theme of icons in Linux ...

    • @techzone2009
      @techzone2009 4 ปีที่แล้ว +2

      Ya... specially WPS office ...may be they don't want to theme their apps

    • @CesarPeron
      @CesarPeron 3 ปีที่แล้ว

      At least in Linux WPS respects the effects, in Windows it looks and acts differently

  • @khaleequrrahman
    @khaleequrrahman 3 ปีที่แล้ว

    how they look same in theming they don't follow gnome. as you know there is everything in top bar in gnome not only name it saves more space and looks great

  • @alpacamale2909
    @alpacamale2909 4 ปีที่แล้ว

    Why don't they just make a Qt version? by just altering the look of it? is it because most linux devs ignore form and are okay with just function?

  • @oscarmurillo102
    @oscarmurillo102 4 ปีที่แล้ว +1

    What Linux do you use

  • @ximplex1
    @ximplex1 4 ปีที่แล้ว +2

    Honestly, I just avoid Qt based apps when possible. You may be able to make the themes/icons look consistent (which is important), but Qt apps will always be plagued with horrible UI/UX design since they don't conform to the HIG.

    • @Chr0n0s38
      @Chr0n0s38 4 ปีที่แล้ว

      I'd say that depends heavily on the desktop you're using. The only thing imo that makes HIG useful at all is that it saves space. On KDE you can just make it so maximized applications disable the title bar, and use a widget to put the window controls on a panel. Since KDE has support for a global menu bar (with only a few applications not supporting it), you can make KDE mimic Ubuntu. This actually saves more space than Gnome does with HIG.

  • @fouadzouraibi5407
    @fouadzouraibi5407 4 ปีที่แล้ว

    I see that you have one note and To Do... . How we can do the same may I ask ?

    • @MattNevior
      @MattNevior 4 ปีที่แล้ว +1

      good question, I was curious as well! Is it just running on wine? @InfinitelyGalactic

    • @Chr0n0s38
      @Chr0n0s38 4 ปีที่แล้ว

      There is a onenote electron app in the Snap store it looks like. Presumably the same person has the rest of the office applications set up the same way.

    • @fouadzouraibi5407
      @fouadzouraibi5407 4 ปีที่แล้ว

      @@Chr0n0s38 nope not all the apps, there is no excel on snap, i know there is a way using office 365, but i dont know how exactly.

    • @Chr0n0s38
      @Chr0n0s38 4 ปีที่แล้ว +1

      @@fouadzouraibi5407 The electron wrapper does support excel. If it's not available as a snap you can go to the GitHub and download the .deb file for it.
      Alternatively, you can use wine and try to install office that way.

  • @techzone2009
    @techzone2009 4 ปีที่แล้ว +2

    Simple use KDE ....🙏🙏

  • @fuseteam
    @fuseteam 4 ปีที่แล้ว +1

    feels like this conflates DE, toolkit and apps build using the toolkits
    not all qt apps are kde apps
    not all gtk apps are gnome apps

    • @Chr0n0s38
      @Chr0n0s38 4 ปีที่แล้ว +1

      I think he's just simplifying. The vast majority of popular Qt apps are designed with KDE in mind (though less so with GTK and Gnome). Most newer users associate GTK with Gnome and Qt with KDE for that reason. Since the specifics don't really impact the focus of the video, I don't think it matters much.

    • @fuseteam
      @fuseteam 4 ปีที่แล้ว

      @@Chr0n0s38 i dunno about that tbh there are plenty of Qt apps that are not designed with KDE in mind, like sailfish apps and ubuntu touch apps. this kind of simplification hides the complexity involved in "fixing" gtk and qt theme consistency.
      For example if you install something like fluffychat on your desktop that won't work with KDE breeze, even tho it's a Qt app.
      the association makes it seem like "if only KDE and GNOME came together and just fixed it" which is not how it works.

    • @Chr0n0s38
      @Chr0n0s38 4 ปีที่แล้ว

      @@fuseteam The fixes he discussed work because of the toolkit being used. Kvantum doesn't care if a Qt app was made for KDE or not, all that matters is if the app was written in Qt.
      Sailfish apps won't just work on x86 Linux, so it doesn't really matter that they weren't written for KDE. Of the Qt apps that are written for x86 Linux, a very large portion of them (likely the majority of them) were written for KDE. That's because KDE was the only Qt desktop for a long time, with Unity8 dying and LxQt never really taking off.
      And again, these fixes don't really care about any of this. As for the DEs fixing this, they actually can. KDE already solved this on it's end. It includes a theming engine for GTK2/3. Gnome, Xfce, Cinnamon, and Mate need to do the same, but for Qt.

    • @fuseteam
      @fuseteam 4 ปีที่แล้ว

      @@Chr0n0s38 i really doubt that it would work for all qt apps really and well unity8 isn't exactly dying as much as it simply lacking enough contributors on the desktop side, it is as if right now being upstreamed to debian, and has been ported to fedora, arch, manjaro and alpine among others (tho it is now under the name of lomiri). In the end it is really up to the distrobution not the DE to support qt and/or gtk. it's not up to gnome but up to the distros shipping gnome etc. there aren't as many kde-derived des as there are gnome-based des. while there are many distros simply shipping kde. maybe as much as there are distros gnome-based des.
      for example the de for elementaryos, popos, mint and other don't look much like gnome at all but they are all based on gnome. -tho mint is based on gnome2 rather than gnome3- it is often not as simple as one makes it out to be.
      it should also be noted that shipping a the theming engine and supporting the theme are two _very_ different things

    • @Chr0n0s38
      @Chr0n0s38 4 ปีที่แล้ว

      @@fuseteam If the DE actually mattered, then there would be Qt apps that would be difficult to theme in KDE. That is not the case. Qt apps are Qt apps, whether they were built for KDE, Lxqt, Windows, or anything else. It's all the same toolkit, the widgets all work the same under the hood (it's why you use a toolkit). Kvantum works on the toolkit level. It doesn't matter what system the developer had in mind for the application. If you ported Kvantum to Windows, it would work there too. As for Lomiri, the only platform using it is UBPorts, so it's in the same area as Sailfish. In theory, Kvantum would work, but it isn't available on that platform.
      Those DEs you mentioned still use the same GTK under the hood. You're making an issue out of a non-issue. None of what was said is invalidated by this over simplification.
      It's the job of the theme creator to make sure it works with all the toolkits the creator wants to support. It's the job of the DE to ensure that the theme engine is supported. The distro can then customize this further (e.g. include custom themes). The DE is what needs to make this possible though. Again, KDE supports theming GTK applications out of the box. There is no reason the GTK DEs can't do the same.

  • @gunaseelanselvam2374
    @gunaseelanselvam2374 4 ปีที่แล้ว

    Thanks bro

  • @LunaticEdit
    @LunaticEdit 2 ปีที่แล้ว

    OR the linux community could _stop_ making 100 version of the exact same type of library so that the linux ecosystem can play well together instead of competing for scraps at the bottom of the desktop market share pile, all while ensuring an inconsistent and confusing user experience to the brave few who choose to put themselves through this pain.

  • @Silvius.2
    @Silvius.2 4 ปีที่แล้ว

    Why only talk about Gnome to configurate?
    U telling at another videos u use gnome or phanteon why its so easy al is fixt and done!
    But in gnome when u like to change something u have to download,configurate,search for things!
    Like apple or windows-they wont to do-like-use her ideas they programming!
    On the end is gnome double so heavy like another environments! After wishes to have!
    Blady tweaks..why they dont integrate from start?

  • @krtirtho
    @krtirtho 3 ปีที่แล้ว

    Well my discord doesn't fit into the environment of any desktop environment, can anyone give me a solution?😅

  • @trippinf472
    @trippinf472 4 ปีที่แล้ว

    Thank you sir!

  • @Tome4kkkk
    @Tome4kkkk 4 ปีที่แล้ว

    Theming nightmares on Linux? Have you £+#_@ng seen Inkscape on Windows?! 😂

  • @jackchou1425
    @jackchou1425 2 ปีที่แล้ว

    I think Qt based desktops are better, after watching this video, I’m more confirmed.

  • @baaz5642
    @baaz5642 3 ปีที่แล้ว

    Gnome came and said fuck all we add CSDs and brake all theaming xfce take it too

  • @trancematics
    @trancematics 4 ปีที่แล้ว +2

    Am I the only person that doesn't care what my apps (or desktop for that matter) look like as long as they work as they should?

    • @hugos.8707
      @hugos.8707 4 ปีที่แล้ว +2

      In the comment section of a video dedicated to linux theming, you might be.

    • @CesarPeron
      @CesarPeron 3 ปีที่แล้ว

      Asking such a question in this video is like asking if you are the only one who likes meat in a vegan recipe video 🤦‍♂️

  • @alpacamale2909
    @alpacamale2909 4 ปีที่แล้ว

    What a mess

  • @BeesCantSwim
    @BeesCantSwim 4 ปีที่แล้ว

    If you are using a Gtk distro, why would you use a QT app? See the stupid? No of course not because someone will make a stupid reply to this.

    • @chodetode7419
      @chodetode7419 4 ปีที่แล้ว +5

      Some apps that people use, or rely on, are not made with GTK... For instance, Kdenlive is one of the most popular video editing options for Linux and it has no GTK version. Most linux users will end up needing to run both GTK and QT at some point, or another, and there is nothing stupid about doing so... Personally, I use Gnome, but there are some apps I need to use that are QT only.

    • @Chr0n0s38
      @Chr0n0s38 4 ปีที่แล้ว +1

      Some applications are only available in Qt (I have yet to find a GTK replacement for Cantor). I find many of the Qt apps to be better than the GTK equivalents (off the top of my head, Kdevelop, and Kile are much better than their counterparts). However, Gnome as a desktop provides a nice experience for 2-in-1s out of the box (I use KDE on desktop).
      Just because you can't understand why someone would mix Qt and Gnome, does not make mixing them stupid.

    • @lucass8119
      @lucass8119 4 ปีที่แล้ว +1

      Because some Qt apps are really good...? And they all run naively on the same system. It would be ridiculous to limit your application choice on linux even more.

    • @CesarPeron
      @CesarPeron 3 ปีที่แล้ว

      What kind of stupid question is that ... did you land on Linux yesterday?

  • @saumyemehrotra5852
    @saumyemehrotra5852 4 ปีที่แล้ว

    Video is unnecessarily so long. Be quick ffs

    • @Chr0n0s38
      @Chr0n0s38 4 ปีที่แล้ว +1

      Or you can learn how to use the arrow keys and skip ahead....

  • @greob
    @greob 4 ปีที่แล้ว

    What about WxWidgets? FreeFileSync uses that framework for example... ;)
    (I think they point to GTK under the hood, but I might be wrong)
    Anyway, good on you for suggesting kvantum. It's an awesome Qt theme engine.