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

QML DayOfWeekRow text has black color regardless of app palette

XMLWordPrintable

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

      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

       

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

            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

              Created:
              Updated:

                There are no open Gerrit changes