Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Detecting system tray background color
Forum Updated to NodeBB v4.3 + New Features

Detecting system tray background color

Scheduled Pinned Locked Moved Solved General and Desktop
qtwidgetstrayqsystemtrayiconstylingcolors
4 Posts 2 Posters 301 Views 1 Watching
  • 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.
  • W Offline
    W Offline
    Wintermute
    wrote on last edited by
    #1

    Hello,

    I'm trying to implement monochrome tray icons for my Qt app, and to make it work I need to choose a correct icon depending on the tray color scheme. I can't rely on the system's light / dark theme, because it doesn't necessarily reflect the color of the tray. For example, the tray is always dark on macOS regardless of the theme, while on KDE Breeze its color follows the theme by default.

    Is there a good way of choosing monochrome icons color? Will appreciate your ideas, because I don't have any.

    / Constantine

    Pl45m4P 1 Reply Last reply
    0
    • W Wintermute

      Hello,

      I'm trying to implement monochrome tray icons for my Qt app, and to make it work I need to choose a correct icon depending on the tray color scheme. I can't rely on the system's light / dark theme, because it doesn't necessarily reflect the color of the tray. For example, the tray is always dark on macOS regardless of the theme, while on KDE Breeze its color follows the theme by default.

      Is there a good way of choosing monochrome icons color? Will appreciate your ideas, because I don't have any.

      / Constantine

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @Wintermute

      Hi,

      I don't think you can do this using Qt only... and probably there is no platform independent way to do this.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • W Offline
        W Offline
        Wintermute
        wrote on last edited by
        #3

        Just to follow up on this -- at the end of the day I left the tray color scheme selection to the user:
        Configurable tray
        (this is Flowkeeper, fwiw)

        / Constantine

        Pl45m4P 1 Reply Last reply
        1
        • W Wintermute has marked this topic as solved on
        • W Wintermute

          Just to follow up on this -- at the end of the day I left the tray color scheme selection to the user:
          Configurable tray
          (this is Flowkeeper, fwiw)

          / Constantine

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @Wintermute said in Detecting system tray background color:

          (this is Flowkeeper, fwiw)

          This is great :)
          I could have used this during my studies, as most time/task planners and ToDo tools are crap :D


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved