Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15400967
D12860.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D12860.id.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -122,7 +122,7 @@
'rsrc/css/layout/phabricator-source-code-view.css' => '2ceee894',
'rsrc/css/phui/calendar/phui-calendar-day.css' => '3b4a65d8',
'rsrc/css/phui/calendar/phui-calendar-list.css' => '840baa8d',
- 'rsrc/css/phui/calendar/phui-calendar-month.css' => '9fde32d1',
+ 'rsrc/css/phui/calendar/phui-calendar-month.css' => '7819a8b1',
'rsrc/css/phui/calendar/phui-calendar.css' => '8345be98',
'rsrc/css/phui/phui-action-header-view.css' => '89c497e7',
'rsrc/css/phui/phui-action-list.css' => '4f4d09f2',
@@ -763,7 +763,7 @@
'phui-calendar-css' => '8345be98',
'phui-calendar-day-css' => '3b4a65d8',
'phui-calendar-list-css' => '840baa8d',
- 'phui-calendar-month-css' => '9fde32d1',
+ 'phui-calendar-month-css' => '7819a8b1',
'phui-crumbs-view-css' => '594d719e',
'phui-document-view-css' => '94d5dcd8',
'phui-feed-story-css' => 'c9f3a0b5',
diff --git a/src/view/phui/calendar/PHUICalendarMonthView.php b/src/view/phui/calendar/PHUICalendarMonthView.php
--- a/src/view/phui/calendar/PHUICalendarMonthView.php
+++ b/src/view/phui/calendar/PHUICalendarMonthView.php
@@ -294,17 +294,21 @@
'tr',
array('class' => 'phui-calendar-day-of-week-header'),
array(
- $this->getDayHeader(pht('Sun'), pht('Sunday')),
+ $this->getDayHeader(pht('Sun'), pht('Sunday'), true),
$this->getDayHeader(pht('Mon'), pht('Monday')),
$this->getDayHeader(pht('Tue'), pht('Tuesday')),
$this->getDayHeader(pht('Wed'), pht('Wednesday')),
$this->getDayHeader(pht('Thu'), pht('Thursday')),
$this->getDayHeader(pht('Fri'), pht('Friday')),
- $this->getDayHeader(pht('Sat'), pht('Saturday')),
+ $this->getDayHeader(pht('Sat'), pht('Saturday'), true),
));
}
- private function getDayHeader($short, $long) {
+ private function getDayHeader($short, $long, $is_weekend = false) {
+ $class = null;
+ if ($is_weekend) {
+ $class = 'weekend-day-header';
+ }
$day = array();
$day[] = phutil_tag(
'span',
@@ -320,7 +324,9 @@
$short);
return phutil_tag(
'th',
- array(),
+ array(
+ 'class' => $class,
+ ),
$day);
}
diff --git a/webroot/rsrc/css/phui/calendar/phui-calendar-month.css b/webroot/rsrc/css/phui/calendar/phui-calendar-month.css
--- a/webroot/rsrc/css/phui/calendar/phui-calendar-month.css
+++ b/webroot/rsrc/css/phui/calendar/phui-calendar-month.css
@@ -16,6 +16,10 @@
background: {$lightgreybackground};
}
+tr.phui-calendar-day-of-week-header th.weekend-day-header {
+ background: {$greybackground};
+}
+
.device tr.phui-calendar-day-of-week-header th .long-weekday-name {
display: none;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 18, 3:01 PM (4 d, 23 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7352048
Default Alt Text
D12860.id.diff (2 KB)
Attached To
Mode
D12860: Weekend header labels in month view should have darker backgrounds instead of dark actual weekend days.
Attached
Detach File
Event Timeline
Log In to Comment