Comment 0 for bug 1549830

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

For example:

import QtQuick 2.4
import Ubuntu.Components 1.2

MainView {
    width: units.gu(48)
    height: units.gu(60)

    Page {
        title: "Hello, I am blue." // should be darkGrey
        Label {
            anchors.centerIn: parent
            text: "bla"
            color: Theme.palette.normal.negative // this color does not exist in 1.2 palette
        }
    }
}

The old header label uses the selected.backgroundText color from the palette. This is darkGrey in the old (1.2) palette and blue in the new (1.3) palette. Also, I can refer to Theme.palette.normal.negative, which is a color that was not defined in the 1.2 palette.

Several apps that use the old header and import Ubuntu.Components 1.2 or older have blue text in the header because of this bug. For exmple: clock app.