Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-98546

Wrong color on titlebar/toolbars with setUnifiedTitleAndToolBarOnMac(true)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.12.11, 5.15.3, 6.2.1
    • Widgets: Styles
    • None
    • macOS

    Description

      When using

      setUnifiedTitleAndToolBarOnMac(true);
      

      which is used, for example, in the "Qt Widgets - Application Example" in Qt Creator, Qt tries to mimic the native titlebar and toolbars of macOS. However, the colors of the titlebar/toolbars don't match the native colors (see attached screenshots).

      Qt's color focused window: #d4d4d4
      Qt's color unfocused window: #f6f6f6

      Native color focused window: #ffffff
      Native color unfocused window: #ececec

      Attachments

        1. application.zip
          23 kB
          racoon
        2. Native_focused.png
          86 kB
          racoon
        3. native_key.png
          29 kB
          Timur Pocheptsov
        4. native_nonkey.png
          29 kB
          Timur Pocheptsov
        5. Native_unfocused.png
          83 kB
          racoon
        6. Qt_focused.png
          28 kB
          racoon
        7. Qt_unfocused.png
          26 kB
          racoon

        Activity

          People

            tpochep Timur Pocheptsov
            racoon racoon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: