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

macOS 10.14 with dark theme: text on toolbar has wrong color

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.12.1
    • Widgets: Styles
    • None
    • macOS
    •  efb7400

    Description

      When dark theme is selected in the macOS preferences, and there is an item with text on a toolbar, be it a QToolButton or QLabel, the text has wrong color - dark instead of light. It's unreadable:

       

       

      Here's the repro:

       

      #include <QApplication>
      #include <QMainWindow>
      #include <QToolBar>
      #include <QLabel>
      int main(int argc, char* argv[])
      {
       QApplication app(argc, argv);
       QMainWindow window;
       auto toolBar = window.addToolBar("ToolBar");
       toolBar->addWidget(new QLabel("Text"));
       window.show();
       return app.exec();
      }
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            alexium Alex
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes