-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
28 lines (24 loc) · 1.12 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require('UIColor,UIFont,UIImage');
defineClass('TomatoClock.AboutViewController',{
viewDidLoad:function(){
self.super().viewDidLoad();
var imageView = self.view().subviews().objectAtIndex(1);
imageView.setImage(UIImage.imageNamed("ShareImage"));
var label = self.view().subviews().objectAtIndex(3);
label.setText("番茄时钟 V1.1.0");
},
})
defineClass('TomatoClock.ViewController',{
viewDidLoad:function(){
self.ORIGviewDidLoad();
self.view().setBackgroundColor(UIColor.colorWithRed_green_blue_alpha(27 / 255.0, 161 / 255.0, 226 / 255.0, 1.0));
self.countButton.titleLabel().setFont(UIFont.systemFontOfSize(60));
},
})
defineClass('TomatoClock.CheckViewController',{
viewDidLoad:function(){
self.ORIGviewDidLoad();
self.view().setBackgroundColor(UIColor.colorWithRed_green_blue_alpha(27 / 255.0, 161 / 255.0, 226 / 255.0, 1.0));
self.countButton.titleLabel().setFont(UIFont.systemFontOfSize(60));
},
})