~zsombi/ubuntu-ui-toolkit/120-custompanel

« back to all changes in this revision

Viewing changes to tests/resources/header/header.qml

  • Committer: Zsombor Egri
  • Date: 2014-11-04 09:05:25 UTC
  • mfrom: (1247.1.35 110-captions)
  • Revision ID: zsombor.egri@canonical.com-20141104090525-tbp0xnkqeuq4mehp
prereq sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        Tabs {
31
31
            id: tabs
32
32
            Tab {
 
33
                title: "Colors"
 
34
                page: Page {
 
35
                    Column {
 
36
                        height: childrenRect.height
 
37
                        width: parent.width - units.gu(8)
 
38
                        spacing: units.gu(1)
 
39
                        anchors.centerIn: parent
 
40
 
 
41
                        Button {
 
42
                            anchors {
 
43
                                left: parent.left
 
44
                                right: parent.right
 
45
                            }
 
46
                            text: "Light"
 
47
                            onTriggered: {
 
48
                                mainView.backgroundColor = "#eeeeee";
 
49
                                mainView.headerColor = mainView.backgroundColor;
 
50
                                mainView.footerColor = mainView.backgroundColor;
 
51
                            }
 
52
                        }
 
53
                        Button {
 
54
                            anchors {
 
55
                                left: parent.left
 
56
                                right: parent.right
 
57
                            }
 
58
                            text: "Dark"
 
59
                            onTriggered: {
 
60
                                mainView.backgroundColor = "#333333";
 
61
                                mainView.headerColor = mainView.backgroundColor;
 
62
                                mainView.footerColor = mainView.backgroundColor;
 
63
                            }
 
64
                        }
 
65
                        Button {
 
66
                            anchors {
 
67
                                left: parent.left
 
68
                                right: parent.right
 
69
                            }
 
70
                            text: "Gradient"
 
71
                            onTriggered: {
 
72
                                mainView.backgroundColor = "#6A69A2";
 
73
                                mainView.headerColor ="#343C60";
 
74
                                mainView.footerColor = "#8896D5";
 
75
                            }
 
76
                        }
 
77
                    }
 
78
                }
 
79
            }
 
80
 
 
81
            Tab {
33
82
                title: "Stack"
34
83
                page: Page {
35
84
                    Button {