Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. teaser for my little winter project.

teaser for my little winter project.

Scheduled Pinned Locked Moved Uncategorized
gnomedesignappflatpakrust
95 Posts 28 Posters 138 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • hbons@mastodon.socialH hbons@mastodon.social

    got some line graphs going using SVG and with the system accent colour.

    still blurry and need to iterate on the style, but it's a start. πŸ“‰

    #linux #opensource #gnome #gtk #rust #design #aurora

    hbons@mastodon.socialH This user is from outside of this forum
    hbons@mastodon.socialH This user is from outside of this forum
    hbons@mastodon.social
    wrote last edited by
    #56

    using the .warning CSS class to highlight upcoming high Kp values. 🚨

    the threshold will be configurable in Preferences and/or based on your location.

    #linux #opensource #gnome #gtk #rust #design #aurora

    Link Preview Image
    hbons@mastodon.socialH 1 Reply Last reply
    0
    • hbons@mastodon.socialH hbons@mastodon.social

      using the .warning CSS class to highlight upcoming high Kp values. 🚨

      the threshold will be configurable in Preferences and/or based on your location.

      #linux #opensource #gnome #gtk #rust #design #aurora

      Link Preview Image
      hbons@mastodon.socialH This user is from outside of this forum
      hbons@mastodon.socialH This user is from outside of this forum
      hbons@mastodon.social
      wrote last edited by
      #57

      settling on the layout. I think this will be it for the first release.

      funky colours that match the wallpaper totally by accident... πŸ˜‰

      also added a #fediverse hashtag graph. arguably the best indicator!

      #linux #opensource #gnome #gtk #rust #design #aurora

      ross@hachyderm.ioR eljojo@ruby.socialE dohbuheee@mastodon.socialD hbons@mastodon.socialH zeenix@toot.catZ 7 Replies Last reply
      0
      • hbons@mastodon.socialH hbons@mastodon.social

        settling on the layout. I think this will be it for the first release.

        funky colours that match the wallpaper totally by accident... πŸ˜‰

        also added a #fediverse hashtag graph. arguably the best indicator!

        #linux #opensource #gnome #gtk #rust #design #aurora

        ross@hachyderm.ioR This user is from outside of this forum
        ross@hachyderm.ioR This user is from outside of this forum
        ross@hachyderm.io
        wrote last edited by
        #58

        @hbons I wonder how easy that would be to port to macOS...

        hbons@mastodon.socialH 1 Reply Last reply
        0
        • ross@hachyderm.ioR ross@hachyderm.io

          @hbons I wonder how easy that would be to port to macOS...

          hbons@mastodon.socialH This user is from outside of this forum
          hbons@mastodon.socialH This user is from outside of this forum
          hbons@mastodon.social
          wrote last edited by
          #59

          @ross should probably just work. installing GTK on macOS to try is too intimidating for me. πŸ™‚

          ross@hachyderm.ioR 1 Reply Last reply
          0
          • hbons@mastodon.socialH hbons@mastodon.social

            @ross should probably just work. installing GTK on macOS to try is too intimidating for me. πŸ™‚

            ross@hachyderm.ioR This user is from outside of this forum
            ross@hachyderm.ioR This user is from outside of this forum
            ross@hachyderm.io
            wrote last edited by
            #60

            @hbons Well brew has a gtk4 cask so fingers crossed...

            hbons@mastodon.socialH 1 Reply Last reply
            0
            • ross@hachyderm.ioR ross@hachyderm.io

              @hbons Well brew has a gtk4 cask so fingers crossed...

              hbons@mastodon.socialH This user is from outside of this forum
              hbons@mastodon.socialH This user is from outside of this forum
              hbons@mastodon.social
              wrote last edited by
              #61

              @ross I did the backend on macOS, so that part definitely works. I'll let you try it once it's out. πŸ˜›

              1 Reply Last reply
              0
              • hbons@mastodon.socialH hbons@mastodon.social

                settling on the layout. I think this will be it for the first release.

                funky colours that match the wallpaper totally by accident... πŸ˜‰

                also added a #fediverse hashtag graph. arguably the best indicator!

                #linux #opensource #gnome #gtk #rust #design #aurora

                eljojo@ruby.socialE This user is from outside of this forum
                eljojo@ruby.socialE This user is from outside of this forum
                eljojo@ruby.social
                wrote last edited by
                #62

                @hbons hey this looks so good!

                1 Reply Last reply
                0
                • hbons@mastodon.socialH hbons@mastodon.social

                  settling on the layout. I think this will be it for the first release.

                  funky colours that match the wallpaper totally by accident... πŸ˜‰

                  also added a #fediverse hashtag graph. arguably the best indicator!

                  #linux #opensource #gnome #gtk #rust #design #aurora

                  eljojo@ruby.socialE This user is from outside of this forum
                  eljojo@ruby.socialE This user is from outside of this forum
                  eljojo@ruby.social
                  wrote last edited by
                  #63

                  @hbons really smart adding the fediverse detection. -- back in the day I did something similar to detect earthquakes haha

                  hbons@mastodon.socialH 1 Reply Last reply
                  0
                  • eljojo@ruby.socialE eljojo@ruby.social

                    @hbons really smart adding the fediverse detection. -- back in the day I did something similar to detect earthquakes haha

                    hbons@mastodon.socialH This user is from outside of this forum
                    hbons@mastodon.socialH This user is from outside of this forum
                    hbons@mastodon.social
                    wrote last edited by
                    #64

                    @eljojo yea I did a dry run during the last big solar storm, and posts go up a little bit in advance even.

                    all you need really. the other graphs are just there to make you feel smart. πŸ˜›

                    eljojo@ruby.socialE 1 Reply Last reply
                    0
                    • hbons@mastodon.socialH hbons@mastodon.social

                      settling on the layout. I think this will be it for the first release.

                      funky colours that match the wallpaper totally by accident... πŸ˜‰

                      also added a #fediverse hashtag graph. arguably the best indicator!

                      #linux #opensource #gnome #gtk #rust #design #aurora

                      dohbuheee@mastodon.socialD This user is from outside of this forum
                      dohbuheee@mastodon.socialD This user is from outside of this forum
                      dohbuheee@mastodon.social
                      wrote last edited by
                      #65

                      @hbons curious, but why are all the line charts exactly the same? not rendering actual data yet?

                      hbons@mastodon.socialH 1 Reply Last reply
                      0
                      • hbons@mastodon.socialH hbons@mastodon.social

                        @eljojo yea I did a dry run during the last big solar storm, and posts go up a little bit in advance even.

                        all you need really. the other graphs are just there to make you feel smart. πŸ˜›

                        eljojo@ruby.socialE This user is from outside of this forum
                        eljojo@ruby.socialE This user is from outside of this forum
                        eljojo@ruby.social
                        wrote last edited by
                        #66

                        @hbons this would definitely be up there in a nasa control centre

                        1 Reply Last reply
                        0
                        • dohbuheee@mastodon.socialD dohbuheee@mastodon.social

                          @hbons curious, but why are all the line charts exactly the same? not rendering actual data yet?

                          hbons@mastodon.socialH This user is from outside of this forum
                          hbons@mastodon.socialH This user is from outside of this forum
                          hbons@mastodon.social
                          wrote last edited by
                          #67

                          @dohbuheee yea, the backend is working, just need to hook it up properly.

                          1 Reply Last reply
                          0
                          • hbons@mastodon.socialH hbons@mastodon.social

                            settling on the layout. I think this will be it for the first release.

                            funky colours that match the wallpaper totally by accident... πŸ˜‰

                            also added a #fediverse hashtag graph. arguably the best indicator!

                            #linux #opensource #gnome #gtk #rust #design #aurora

                            hbons@mastodon.socialH This user is from outside of this forum
                            hbons@mastodon.socialH This user is from outside of this forum
                            hbons@mastodon.social
                            wrote last edited by
                            #68

                            ok, light theme! β˜€οΈ

                            cards use the same colour as windows. so I'm slightly changing the base window colour to the one used in sidebars (like in Files).

                            GTK doesn't seem to have a .dark or .light CSS selector. so had to manually toggle a class and listen for the dark mode signal. no big deal.

                            #linux #opensource #gnome #gtk #rust #design #aurora

                            rdbende@mastodon.socialR ebassi@mastodon.socialE hbons@mastodon.socialH 3 Replies Last reply
                            0
                            • hbons@mastodon.socialH hbons@mastodon.social

                              ok, light theme! β˜€οΈ

                              cards use the same colour as windows. so I'm slightly changing the base window colour to the one used in sidebars (like in Files).

                              GTK doesn't seem to have a .dark or .light CSS selector. so had to manually toggle a class and listen for the dark mode signal. no big deal.

                              #linux #opensource #gnome #gtk #rust #design #aurora

                              rdbende@mastodon.socialR This user is from outside of this forum
                              rdbende@mastodon.socialR This user is from outside of this forum
                              rdbende@mastodon.social
                              wrote last edited by
                              #69

                              @hbons GTK now has support for standard CSS media queries, btw

                              hbons@mastodon.socialH 1 Reply Last reply
                              0
                              • rdbende@mastodon.socialR rdbende@mastodon.social

                                @hbons GTK now has support for standard CSS media queries, btw

                                hbons@mastodon.socialH This user is from outside of this forum
                                hbons@mastodon.socialH This user is from outside of this forum
                                hbons@mastodon.social
                                wrote last edited by
                                #70

                                @rdbende I tried, but it didn’t work? maybe I did something wrong.

                                rdbende@mastodon.socialR 1 Reply Last reply
                                0
                                • hbons@mastodon.socialH hbons@mastodon.social

                                  @rdbende I tried, but it didn’t work? maybe I did something wrong.

                                  rdbende@mastodon.socialR This user is from outside of this forum
                                  rdbende@mastodon.socialR This user is from outside of this forum
                                  rdbende@mastodon.social
                                  wrote last edited by
                                  #71

                                  @hbons if you're using 4.20 or a newer development version, it should work just like in normal CSS: https://docs.gtk.org/gtk4/css-properties.html#media-queries

                                  hbons@mastodon.socialH ebassi@mastodon.socialE 2 Replies Last reply
                                  0
                                  • rdbende@mastodon.socialR rdbende@mastodon.social

                                    @hbons if you're using 4.20 or a newer development version, it should work just like in normal CSS: https://docs.gtk.org/gtk4/css-properties.html#media-queries

                                    hbons@mastodon.socialH This user is from outside of this forum
                                    hbons@mastodon.socialH This user is from outside of this forum
                                    hbons@mastodon.social
                                    wrote last edited by
                                    #72

                                    @rdbende thanks! I’ll give it another go. πŸ™‚

                                    1 Reply Last reply
                                    0
                                    • hbons@mastodon.socialH hbons@mastodon.social

                                      ok, light theme! β˜€οΈ

                                      cards use the same colour as windows. so I'm slightly changing the base window colour to the one used in sidebars (like in Files).

                                      GTK doesn't seem to have a .dark or .light CSS selector. so had to manually toggle a class and listen for the dark mode signal. no big deal.

                                      #linux #opensource #gnome #gtk #rust #design #aurora

                                      ebassi@mastodon.socialE This user is from outside of this forum
                                      ebassi@mastodon.socialE This user is from outside of this forum
                                      ebassi@mastodon.social
                                      wrote last edited by
                                      #73

                                      @hbons you don't need to listen to anything; you should use CSS variables and the prefers-color-scheme: dark media query, like:

                                      \@media (prefers-color-scheme: dark) {
                                      .main-window {
                                      --sidebar-bg-color: ...;
                                      --accent-bg-color: ...;
                                      --accent-fg-color: ...;
                                      }

                                      taye@mastodon.socialT 1 Reply Last reply
                                      0
                                      • rdbende@mastodon.socialR rdbende@mastodon.social

                                        @hbons if you're using 4.20 or a newer development version, it should work just like in normal CSS: https://docs.gtk.org/gtk4/css-properties.html#media-queries

                                        ebassi@mastodon.socialE This user is from outside of this forum
                                        ebassi@mastodon.socialE This user is from outside of this forum
                                        ebassi@mastodon.social
                                        wrote last edited by
                                        #74

                                        @rdbende @hbons just word of advice: standalone GTK does not know anything about light/dark preferences; the plumbing is all part of libadwaita

                                        1 Reply Last reply
                                        0
                                        • ebassi@mastodon.socialE ebassi@mastodon.social

                                          @hbons you don't need to listen to anything; you should use CSS variables and the prefers-color-scheme: dark media query, like:

                                          \@media (prefers-color-scheme: dark) {
                                          .main-window {
                                          --sidebar-bg-color: ...;
                                          --accent-bg-color: ...;
                                          --accent-fg-color: ...;
                                          }

                                          taye@mastodon.socialT This user is from outside of this forum
                                          taye@mastodon.socialT This user is from outside of this forum
                                          taye@mastodon.social
                                          wrote last edited by
                                          #75

                                          @ebassi @hbons @media `light-dark()` is also a good method (dunno if GTK supports it)

                                          --bg-color: light-dark(#efedea, #223a2c);

                                          Link Preview Image
                                          light-dark() - CSS | MDN

                                          The light-dark() CSS function enables setting two colors for a property - returning one of the two colors options by detecting if the developer has set a light or dark color scheme or the user has requested light or dark color theme - without needing to encase the theme colors within a prefers-color-scheme media feature query. Users are able to indicate their color-scheme preference through their operating system settings (e.g., light or dark mode) or their user agent settings. The light-dark() function enables providing two color values where any value is accepted. The light-dark() CSS color function returns the first value if the user's preference is set to light or if no preference is set and the second value if the user's preference is set to dark.

                                          favicon

                                          MDN Web Docs (developer.mozilla.org)

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups