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

Selection color inconsistend between TextField and SpinnBox

XMLWordPrintable

      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
      ...
      

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

              Created:
              Updated:

                There are no open Gerrit changes