~aacid/unity8/moreAsyncAudioCard

« back to all changes in this revision

Viewing changes to qml/Stages/Splash.qml

  • Committer: Albert Astals Cid
  • Date: 2016-03-10 08:32:16 UTC
  • mfrom: (2136.2.83 unity8)
  • Revision ID: albert.astals@canonical.com-20160310083216-8nnplxl85qx13xd0
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    }
77
77
 
78
78
    Ambiance.PageHeadStyle {
 
79
        // FIXME: Replace PageHeadStyle by PageHeader from Ubuntu.Components 1.3.
79
80
        id: header
80
81
        anchors {
81
82
            left: parent.left;
86
87
        property color dividerColor: Qt.darker(styledItem.backgroundColor, 1.1)
87
88
        property color panelColor: Qt.lighter(styledItem.backgroundColor, 1.1)
88
89
        panelForegroundColor: config.foregroundColor
 
90
        backgroundColor: "transparent"
89
91
        config: PageHeadConfiguration {
90
92
            id: headerConfig
91
 
            foregroundColor: styledItem.fakeTheme.palette.selected.backgroundText
 
93
            foregroundColor: styledItem.fakeTheme.palette.normal.backgroundText
92
94
        }
93
95
 
94
96
        property var contents: null
134
136
        anchors.topMargin: units.gu(2)
135
137
        fontSize: "large"
136
138
 
137
 
        color: styledItem.fakeTheme.palette.selected.backgroundText
 
139
        color: styledItem.fakeTheme.palette.normal.backgroundText
138
140
        visible: d.showIcon
139
141
    }
140
142
 
 
143
    Timer {
 
144
        interval: 2000
 
145
        onTriggered: spinner.running = true
 
146
        running: true
 
147
    }
 
148
 
141
149
    ActivityIndicator {
 
150
        id: spinner
142
151
        anchors.centerIn: header.visible ? parent : undefined
143
152
        anchors.verticalCenterOffset: header.visible ? header.height / 2 : 0
144
153
 
145
154
        anchors.horizontalCenter: header.visible ? undefined : parent.horizontalCenter
146
155
        anchors.bottom: header.visible ? undefined : parent.bottom
147
156
        anchors.bottomMargin: header.visible ? 0 : units.gu(12)
148
 
 
149
 
        running: true
150
157
    }
151
158
 
152
159
    MouseArea {