~renatofilho/ubuntu-ui-toolkit/save-alarms-in-local-time

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/Themes/Ambiance/PageHeadButton.qml

  • Committer: Tarmac
  • Author(s): Tim Peeters
  • Date: 2014-10-05 21:03:34 UTC
  • mfrom: (1240.2.20 20-sm)
  • Revision ID: tarmac-20141005210334-kw41w6c1s7tz1zjc
Add selection mode as a preset to the header configuration. Fixes: https://bugs.launchpad.net/bugs/1370146.

Approved by PS Jenkins bot, Zsombor Egri.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        color: Qt.rgba(0, 0, 0, 0)
48
48
        opacity: button.enabled ? 1.0 : 0.3
49
49
    }
 
50
 
 
51
    Component {
 
52
        id: labelComponent
 
53
        Label {
 
54
            id: label
 
55
            objectName: button.objectName + "_label"
 
56
            color: button.color
 
57
            opacity: button.enabled ? 1.0 : 0.3
 
58
            text: button.text
 
59
            fontSize: "xx-small"
 
60
        }
 
61
    }
 
62
    Loader {
 
63
        anchors {
 
64
            top: icon.bottom
 
65
            topMargin: units.gu(0.5)
 
66
            horizontalCenter: parent.horizontalCenter
 
67
        }
 
68
        sourceComponent: button.state === "IconAndLabel" ? labelComponent : null
 
69
    }
50
70
}