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

QML DayOfWeekRow text has black color regardless of app palette

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9.1
    • Quick: Controls 2
    • None
    • Windows 11, PySide 6.9.1
    • Linux/Wayland, Windows
    • Windows

    Description

      STR:

      1. Create calendar using QML (DayOfWeekRow, MonthGrid)
      2. Set app color scheme to dark 
        app.styleHints().setColorScheme(PySide6.QtCore.Qt.ColorScheme.Dark)
      1. Start app

      AB: DayOfWeekRow text has black color and is not visible on dark background

      EB: DayOfWeekRow has light color and is visible on dark background

      I fixed this problem locally by copying  DayOfWeekRow.qml implementation and adding next line to AbstractDayOfWeekRow delegate:

      color: palette.windowText

      Hope this will be fixed in next versions so users could avoid copying and patching source code to make it look fine in dark mode

       

      Attachments

        1. image-2025-06-29-16-00-20-005.png
          23 kB
          Mark Rakhmatov
        2. image-2025-06-29-16-00-26-628.png
          23 kB
          Mark Rakhmatov
        3. image-2025-06-29-16-03-13-752.png
          23 kB
          Mark Rakhmatov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mark.rakhmatov Mark Rakhmatov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes