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

FontDialog from QtQuick.Dialogs have incorrect color when using dark theme

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.0
    • Quick: Dialogs
    • None
    • Problem occurred under Windows 11 Home version 21H2, 22000.1098
      Should also occur on other OS.
    • All

    Description

      FontDialog from QtQuick.Dialogs have incorrect color when using dark theme, which will results a unreadable font list.

      The image above was taken under Windows with Qt version 6.4.0 installed via MSYS2, with the following source code run via qml-qt6, with "style" set to "Material" and "QT_QUICK_CONTROLS_MATERIAL_THEME" set to "Dark",

      // QT_QUICK_CONTROLS_MATERIAL_THEME=Dark qml-qt6.exe -style Material fontdialogbug.qml
      import QtQuick 2.4
      import QtQuick.Controls 2.15
      import QtQuick.Layouts 1.15
      import QtQuick.Dialogs
      
      ApplicationWindow {
      	visible: true
      	width: 600
      	height: 500
      	
      	MenuBar {
      		Menu {
      			title: qsTr("&Options")
      
      			MenuItem {
      				text: qsTr("Set &Font")
      				onTriggered: () => {
      					fontDialog.open()
      				}
      			}
      		}
      	}
      	
      	ColumnLayout {
      		anchors.fill: parent
      		anchors.margins: 8
      		Label {
      			id: titleLabel
      			font.family: fontDialog.selectedFont.family
      			text: "Sample Text"
      		}
      	}
      	
      	FontDialog {
      		id: fontDialog
      	}
      }
      

      Attachments

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

        Activity

          People

            hurlevent Oliver Eftevaag
            blumia Gary Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes