400.1.1
by mihirsoni-123
Added copyright header comments in all the pages |
1 |
/*
|
400.1.2
by mihirsoni-123
updated copyright year |
2 |
* Copyright (C) 2013-2014 Canonical Ltd
|
400.1.1
by mihirsoni-123
Added copyright header comments in all the pages |
3 |
*
|
4 |
* This file is part of Ubuntu Calendar App
|
|
5 |
*
|
|
6 |
* Ubuntu Calendar App is free software: you can redistribute it and/or modify
|
|
7 |
* it under the terms of the GNU General Public License version 3 as
|
|
8 |
* published by the Free Software Foundation.
|
|
9 |
*
|
|
10 |
* Ubuntu Calendar App is distributed in the hope that it will be useful,
|
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 |
* GNU General Public License for more details.
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License
|
|
16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17 |
*/
|
|
455.1.3
by Mihir Soni
changes as per Nik's comments |
18 |
import QtQuick 2.3 |
422.5.1
by Akiva Avraham
Upgraded component library imports |
19 |
import Ubuntu.Components 1.1 |
20 |
import Ubuntu.Components.Popups 1.0 |
|
212.4.1
by Kunal Parmar
Initial version of Cal Management |
21 |
|
22 |
Dialog { |
|
23 |
id: root
|
|
24 |
title: i18n.tr("Select Color") |
|
25 |
signal accepted(var color) |
|
26 |
signal rejected() |
|
27 |
||
28 |
contents: [ |
|
29 |
Grid{ |
|
455.1.2
by Mihir Soni
Added circles instead of ubuntushape |
30 |
height: units.gu(15) |
31 |
rows: 2 |
|
455.1.1
by Mihir Soni
modified color popup |
32 |
columns: 4 |
455.1.5
by Mihir Soni
Resolved typo |
33 |
spacing: units.gu(1) |
212.4.1
by Kunal Parmar
Initial version of Cal Management |
34 |
Repeater{ |
455.2.9
by Nekhelesh Ramananthan
Reverted this MP to fix only one small issue |
35 |
model: ["#2C001E","#333333","#DD4814","#DF382C","#EFB73E","#19B6EE","#38B44A","#001F5C"]; |
455.1.2
by Mihir Soni
Added circles instead of ubuntushape |
36 |
delegate:Rectangle{ |
455.1.3
by Mihir Soni
changes as per Nik's comments |
37 |
width: parent.width/5 |
212.4.1
by Kunal Parmar
Initial version of Cal Management |
38 |
height: width |
39 |
color: modelData |
|
455.1.3
by Mihir Soni
changes as per Nik's comments |
40 |
radius : units.gu(10) |
212.4.1
by Kunal Parmar
Initial version of Cal Management |
41 |
MouseArea{ |
42 |
anchors.fill: parent |
|
43 |
onClicked: { |
|
44 |
root.accepted(modelData) |
|
45 |
PopupUtils.close(root) |
|
46 |
}
|
|
47 |
}
|
|
48 |
}
|
|
49 |
}
|
|
50 |
},
|
|
51 |
Button { |
|
52 |
objectName: "TimePickerCancelButton" |
|
53 |
text: i18n.tr("Cancel") |
|
54 |
onClicked: { |
|
55 |
root.rejected() |
|
56 |
PopupUtils.close(root) |
|
57 |
}
|
|
58 |
width: (parent.width) / 2 |
|
59 |
}
|
|
60 |
]
|
|
61 |
}
|