Announcement

Collapse
No announcement yet.

Ubuntu's Yaru Desktop Theme Seeing Updates - Big Update Against GTK's Latest Adwaita

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ubuntu's Yaru Desktop Theme Seeing Updates - Big Update Against GTK's Latest Adwaita

    Phoronix: Ubuntu's Yaru Desktop Theme Seeing Updates - Big Update Against GTK's Latest Adwaita

    Canonical's designers have been working to update their Yaru desktop theme ahead of the upcoming Ubuntu 19.10 "Eoan Ermine" release...

    http://www.phoronix.com/scan.php?pag...0-Yaru-Updates

  • #2
    This is still going to cause breakage in applications simply because of how GTK does styling and custom widgets. There's no "sane" theming API.

    If I create a widget on a headerbar that's black, under GTK without any theme, this is fine because the header is light-grey. If I now apply Yaru, that widget is now now broken. Even if I made light and dark variants, I still couldn't fix it because Yaru is stupid and applies a dark headerbar to everything even when GTK thinks the theme is a light theme.

    I can now either put theme specific fixes in my application (but I can't do that for every theme), ignore it and let people think the app is broken or force Adwaita (which hurts people who like to tinker).

    I work on some GTK applications and I'm now considering blacklisting distro themes to try and get a compromise.
    Last edited by Britoid; 08-09-2019, 07:02 AM.

    Comment


    • #3
      who's bad?

      Comment


      • #4
        Britoid ”sane” APIs would be yet another restriction. And it would come with a maintenance cost.

        Yaru went too far. Now they toned it down and helped upstream some work. A win for all.

        Comment


        • #5
          Originally posted by 144Hz View Post
          Britoid ”sane” APIs would be yet another restriction. And it would come with a maintenance cost.

          Yaru went too far. Now they toned it down and helped upstream some work. A win for all.
          A 'sane' theme API whilst would help theme developers, would hurt app developers (you're basically restricting what they can do). App developers are the bread and butter of any platform.

          I would actually be up for some kind of GTK setting where a vendor can set a "vendor theme" (Android has a vendor theme), that apps can opt into or out of, that's independent of the "gtk theme" setting, which would let tinkerers be able to do what they do.

          I don't think any consumer operating system with widespread usage has official theme support (for apps). You'll notice how Windows restricted to loading just-signed themes and now that's pretty much gone. macOS and Windows both have accent colours, which vendors and users can set, which apps can opt into using.
          Last edited by Britoid; 08-09-2019, 07:37 AM.

          Comment


          • #6
            If I create a widget on a headerbar that's black, under GTK without any theme, this is fine because the header is light-grey. If I now apply Yaru, that widget is now now broken. Even if I made light and dark variants, I still couldn't fix it because Yaru is stupid and applies a dark headerbar to everything even when GTK thinks the theme is a light theme.
            For custom widgets I reuse the styling of other widgets. For example I can paint the background of my custom widget as the background of a button with .osd class. You use the gtk_render functions for that. See the "Foreign Drawing" example in gtk3-demo.

            Comment


            • #7
              Britoid Or maybe just accept theming is a powerfull drug you should steer clear of?

              Comment


              • #8
                Originally posted by 144Hz View Post
                Britoid Or maybe just accept theming is a powerfull drug you should steer clear of?
                I love theming I don't like the bug reports.

                Comment


                • #9
                  I can highly recommend Arc theme, it is very beautiful.

                  Comment


                  • #10
                    Originally posted by uid313 View Post
                    I can highly recommend Arc theme, it is very beautiful.
                    Why is Arc-Darker *lighter* than Arc-Dark, do you know?

                    Comment

                    Working...
                    X