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

Selection color inconsistend between TextField and SpinnBox

    XMLWordPrintable

Details

    Description

      The selection color in TextField and SpinBox is set to different values, leading to inconsistencies of the design.

      see source files controls/material/TextField.qml

      ...
      T.TextField {    id: control
          ...
          color: enabled ? Material.foreground : Material.hintTextColor    
          selectionColor: Material.accentColor    
          selectedTextColor: Material.primaryHighlightedTextColor    
          placeholderTextColor: Material.hintTextColor    
          verticalAlignment: TextInput.AlignVCenter
      ...
      

      and controls/material/SpinBox.qml

      ...
          contentItem: TextInput {
      ...
              color: enabled ? control.Material.foreground : control.Material.hintTextColor
              selectionColor: control.Material.textSelectionColor
              selectedTextColor: control.Material.foreground
              horizontalAlignment: Qt.AlignHCenter
      ...
      

      Attachments

        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
            stefan_menzel Stefan Menzel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes