Permalink
Browse files

public & styling

  • Loading branch information...
1 parent 5d07c97 commit dcaf5c7f96100bdf723b51e3ac698d0579fe240d @g00m g00m committed Aug 13, 2013
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>SchemeUserState</key>
+ <dict/>
+ <key>SuppressBuildableAutocreation</key>
+ <dict>
+ <key>D2AAC07D0554694100DB518D</key>
+ <dict>
+ <key>primary</key>
+ <true/>
+ </dict>
+ </dict>
+</dict>
+</plist>
View
@@ -75,7 +75,7 @@ - (void)addSubviewsToHeaderView:(UIView *)headerView
const CGFloat kHeaderVerticalAdjust = 3.f;
// Header background gradient
- UIImageView *backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Kal.bundle/kal_grid_background.png"]];
+ UIImageView *backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Kal.bundle/kal_header_background.png"]];
CGRect imageFrame = headerView.frame;
imageFrame.origin = CGPointZero;
backgroundView.frame = imageFrame;
@@ -106,7 +106,7 @@ - (void)addSubviewsToHeaderView:(UIView *)headerView
headerTitleLabel.font = [UIFont boldSystemFontOfSize:22.f];
headerTitleLabel.textAlignment = UITextAlignmentCenter;
headerTitleLabel.textColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Kal.bundle/kal_header_text_fill.png"]];
- headerTitleLabel.shadowColor = [UIColor whiteColor];
+ headerTitleLabel.shadowColor = [UIColor blackColor];
headerTitleLabel.shadowOffset = CGSizeMake(0.f, 1.f);
[self setHeaderTitleText:[logic selectedMonthNameAndYear]];
[headerView addSubview:headerTitleLabel];
@@ -136,8 +136,8 @@ - (void)addSubviewsToHeaderView:(UIView *)headerView
weekdayLabel.backgroundColor = [UIColor clearColor];
weekdayLabel.font = [UIFont boldSystemFontOfSize:10.f];
weekdayLabel.textAlignment = UITextAlignmentCenter;
- weekdayLabel.textColor = [UIColor colorWithRed:0.3f green:0.3f blue:0.3f alpha:1.f];
- weekdayLabel.shadowColor = [UIColor whiteColor];
+ weekdayLabel.textColor = [UIColor colorWithRed:1.0f green:1.3f blue:1.3f alpha:1.f];
+ weekdayLabel.shadowColor = [UIColor blackColor];
weekdayLabel.shadowOffset = CGSizeMake(0.f, 1.f);
weekdayLabel.text = [weekdayNames objectAtIndex:i];
[weekdayLabel setAccessibilityLabel:[fullWeekdayNames objectAtIndex:i]];
@@ -37,5 +37,6 @@
- (id)initWithSelectedDate:(NSDate *)selectedDate; // designated initializer. When the calendar is first displayed to the user, the month that contains 'selectedDate' will be shown and the corresponding tile for 'selectedDate' will be automatically selected.
- (void)reloadData; // If you change the KalDataSource after the KalViewController has already been displayed to the user, you must call this method in order for the view to reflect the new data.
- (void)showAndSelectDate:(NSDate *)date; // Updates the state of the calendar to display the specified date's month and selects the tile for that date.
+- (KalView*)calendarView;
@end
@@ -33,7 +33,7 @@ void mach_absolute_difference(uint64_t end, uint64_t start, struct timespec *tp)
@interface KalViewController ()
@property (nonatomic, retain, readwrite) NSDate *initialDate;
@property (nonatomic, retain, readwrite) NSDate *selectedDate;
-- (KalView*)calendarView;
+
@end
@implementation KalViewController

0 comments on commit dcaf5c7

Please sign in to comment.