From 9c6d1153337686dd4c1300438f6f93f1bf96497a Mon Sep 17 00:00:00 2001 From: Abhishek Banthia Date: Thu, 27 Apr 2017 19:17:24 +0600 Subject: [PATCH] Hiding review cell as required. --- Clocker/Floating Window/CLFloatingWindowController.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Clocker/Floating Window/CLFloatingWindowController.m b/Clocker/Floating Window/CLFloatingWindowController.m index 602a188..ee8159c 100644 --- a/Clocker/Floating Window/CLFloatingWindowController.m +++ b/Clocker/Floating Window/CLFloatingWindowController.m @@ -32,6 +32,7 @@ NSString *const CLTimezoneCellIdentifier = @"timeZoneCell"; if (!self.dateFormatter) { self.dateFormatter = [NSDateFormatter new]; + self.dateFormatter.locale = [NSLocale localeWithLocaleIdentifier:@"en_US"]; } if ([[[NSUserDefaults standardUserDefaults] objectForKey:CLThemeKey] isKindOfClass:[NSString class]]){ @@ -67,7 +68,11 @@ NSString *const CLTimezoneCellIdentifier = @"timeZoneCell"; self.window.titlebarAppearsTransparent = YES; self.window.titleVisibility = NSWindowTitleHidden; - + + self.reviewView.hidden = !self.showReviewCell; + + self.reviewView.layer.backgroundColor = (theme.integerValue == 0) ? [NSColor whiteColor].CGColor : [NSColor blackColor].CGColor; + // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file. }