Comment 5 for bug 1189925

Revision history for this message
Tim Peeters (tpeeters) wrote :

I had a quick look at the code that creates the gradients..

The gradient colors (headerColor, backgroundColor, footerColor) are properties of the MainView, and the actual Gradient is defined as follows in the MainViewStyle:
    Gradient {
        id: backgroundGradient
        GradientStop { position: 0.0; color: styledItem.headerColor }
        GradientStop { position: 0.83; color: styledItem.backgroundColor }
        GradientStop { position: 1.0; color: styledItem.footerColor }
    }

So, if the app uses its own theme, then a different gradient (with different gradientstop position) can be defined there. If the app does not use its own theme, that is not possible.

Do all apps need a different position? And is it always the same? Then I think we should change the 0.83. If this position must really be flexible (different/changing for each app), then I guess we'll have to expose it as a property of MainView.