diff --git a/UI/Scheduler/UIxCalMonthView.h b/UI/Scheduler/UIxCalMonthView.h index 431b78f6a..b443815db 100644 --- a/UI/Scheduler/UIxCalMonthView.h +++ b/UI/Scheduler/UIxCalMonthView.h @@ -1,8 +1,6 @@ /* UIxCalMonthView.h - this file is part of SOGo * - * Copyright (C) 2006-2009 Inverse inc. - * - * Author: Wolfgang Sourdeau + * Copyright (C) 2006-2015 Inverse inc. * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -69,7 +67,6 @@ - (void) setCurrentTableDay: (NSCalendarDate *) newCurrentTableDay; - (NSCalendarDate *) currentTableDay; -- (NSString *) labelForCurrentDayCell; @end diff --git a/UI/Scheduler/UIxCalMonthView.m b/UI/Scheduler/UIxCalMonthView.m index c0c51097f..6ae274a45 100644 --- a/UI/Scheduler/UIxCalMonthView.m +++ b/UI/Scheduler/UIxCalMonthView.m @@ -1,8 +1,6 @@ /* UIxCalMonthView.m - this file is part of SOGo * - * Copyright (C) 2006, 2007 Inverse inc. - * - * Author: Wolfgang Sourdeau + * Copyright (C) 2006-2015 Inverse inc. * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -235,27 +233,6 @@ return currentWeek; } -- (NSString *) labelForCurrentDayCell -{ - NSCalendarDate *lastDayOfMonth; - NSString *label, *monthOfYear; - int dayOfMonth; - - dayOfMonth = [currentTableDay dayOfMonth]; - lastDayOfMonth = [currentTableDay lastDayOfMonth]; - if (dayOfMonth == 1 - || [currentTableDay isDateOnSameDay: lastDayOfMonth]) - { - monthOfYear - = [monthNames objectAtIndex: [currentTableDay monthOfYear]]; - label = [NSString stringWithFormat: @"%d %@", dayOfMonth, monthOfYear]; - } - else - label = [NSString stringWithFormat: @"%d", dayOfMonth]; - - return label; -} - - (NSString *) headerDayCellClasses { unsigned int dayOfWeek; @@ -265,24 +242,19 @@ return [NSString stringWithFormat: @"headerDay day%d", dayOfWeek]; } -- (NSString *) dayHeaderNumber +- (NSString *) dayHeaderMonth { - NSString *nameOfMonth, *dayHeaderNumber; + NSString *nameOfMonth = nil; unsigned int dayOfMonth; dayOfMonth = [currentTableDay dayOfMonth]; if (dayOfMonth == 1 || [currentTableDay isDateOnSameDay: [currentTableDay lastDayOfMonth]]) { - nameOfMonth - = [self localizedNameForMonthOfYear: [currentTableDay monthOfYear]]; - dayHeaderNumber = [NSString stringWithFormat: @"%d %@", dayOfMonth, - nameOfMonth]; + nameOfMonth = [self localizedNameForMonthOfYear: [currentTableDay monthOfYear]]; } - else - dayHeaderNumber = [NSString stringWithFormat: @"%d", dayOfMonth]; - return dayHeaderNumber; + return nameOfMonth; } - (NSString *) dayCellClasses diff --git a/UI/Templates/SchedulerUI/UIxCalMonthView.wox b/UI/Templates/SchedulerUI/UIxCalMonthView.wox index 477972898..675128b45 100644 --- a/UI/Templates/SchedulerUI/UIxCalMonthView.wox +++ b/UI/Templates/SchedulerUI/UIxCalMonthView.wox @@ -64,17 +64,19 @@ var:id="currentDayId" >
+
-
+
-
+
+
- +
diff --git a/UI/WebServerResources/scss/views/SchedulerUI.scss b/UI/WebServerResources/scss/views/SchedulerUI.scss index 846134ff8..0ad9b2c00 100644 --- a/UI/WebServerResources/scss/views/SchedulerUI.scss +++ b/UI/WebServerResources/scss/views/SchedulerUI.scss @@ -212,17 +212,25 @@ $scrollbar_width: 16px; &.dayOfAnotherMonth { background-color: rgb(250, 250, 250); //border-color: #ddd; - .sg-calendar-tile-header { + .sg-calendar-tile-header, + .sg-calendar-tile-header > span { color: rgb(221, 221, 221) !important; // Overwrite dynamic CSS theme } } &.dayOfToday { .sg-calendar-tile-header { - border-radius: 50%; - color: #fff; - display: inline; - font-weight: 600; - margin-right: auto; + > span { + border-radius: 50%; + color: #fff; + display: inline-block; + font-weight: 600; + margin-right: auto; + margin-left: 1px; + min-width: $sg-font-size-2 + 4px; + min-height: $sg-font-size-2 + 4px; + line-height: $sg-font-size-2 + 4px; + text-align: center; + } } } }