Update UI theme

* new dark UI
* new app lists
This commit is contained in:
Yuki MIZUNO
2014-12-04 18:41:01 +09:00
parent 79e51defe1
commit 582dda5727
8 changed files with 162 additions and 70 deletions

View File

@@ -26,6 +26,9 @@ static int LABEL_DY = 20;
[_appButton setBackgroundImage:[UIImage imageNamed:@"NoAppImage"] forState:UIControlStateNormal];
[_appButton sizeToFit];
[_appButton addTarget:self action:@selector(appClicked) forControlEvents:UIControlEventTouchUpInside];
// Remove Shadow and label
/*
_appButton.layer.shadowColor = [[UIColor blackColor] CGColor];
_appButton.layer.shadowOffset = CGSizeMake(5,8);
_appButton.layer.shadowOpacity = 0.7;
@@ -36,9 +39,11 @@ static int LABEL_DY = 20;
_appLabel.center = CGPointMake(_appButton.bounds.origin.x + (_appButton.bounds.size.width / 2), _appButton.bounds.origin.y + _appButton.bounds.size.height + LABEL_DY);
[self updateBounds];
[self addSubview:_appButton];
[self addSubview:_appLabel];
*/
[self addSubview:_appButton];
[self sizeToFit];
return self;
}
@@ -56,6 +61,8 @@ static int LABEL_DY = 20;
- (void) updateAppImage {
if (_app.appImage != nil) {
_appButton.frame = CGRectMake(0, 0, _app.appImage.size.width / 2, _app.appImage.size.height / 2);
self.frame = CGRectMake(0, 0, _app.appImage.size.width / 2, _app.appImage.size.height / 2);
[_appButton setBackgroundImage:_app.appImage forState:UIControlStateNormal];
[self setNeedsDisplay];
}