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

Make theme not override individual properties

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • None
    • None
    • Graphs: 2D, Graphs: 3D
    • None

      It should be possible to set colorScheme and individual properties at the same time. For example:
       

      theme: GraphsTheme {
        colorScheme: Qt.Dark
        backgroundColor: "#ff0000"
      }
      

       

       
      Should result dark theme with red background. Currently if QML engine decides to evaluate colorScheme after backgroundColor, it overrides the backgroundColor. Old 2D graphs implementation used m_customFlags for this (https://codereview.qt-project.org/c/qt/qtgraphs/+/557624/9/src/graphs2d/themes/qgraphtheme.cpp#b223)
       
      Same thing with theme, this:
       

      theme: GraphsTheme {
        theme: GraphsTheme.Theme.MixSeries
        seriesColors: ["#444444", "#555555", "#666666", "#777777"]
      } 

       
      Should use seriesColors, although it doesn't make much sense currently unless theme starts to define also seriesGradients, borderColors or something.

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

            kwpark Kwanghyo Park
            kagro Kaj Grönholm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes