@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Give Calendar days from adjacent months a background color hint

Summary:
Ref T11326. When viewing "February", add a class to dates in January and March to let them be styled a little differently as a UI hint.

For now, I've given them a grey background. (Calendar.app changes the date number color instead.)

Test Plan: {F1738990}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11326

Differential Revision: https://secure.phabricator.com/D16336

+16 -4
+2 -2
resources/celerity/map.php
··· 117 117 'rsrc/css/layout/phabricator-source-code-view.css' => 'cbeef983', 118 118 'rsrc/css/phui/calendar/phui-calendar-day.css' => 'f15bb6d6', 119 119 'rsrc/css/phui/calendar/phui-calendar-list.css' => '5d89cd71', 120 - 'rsrc/css/phui/calendar/phui-calendar-month.css' => '31cec731', 120 + 'rsrc/css/phui/calendar/phui-calendar-month.css' => '8e10e92c', 121 121 'rsrc/css/phui/calendar/phui-calendar.css' => 'daadaf39', 122 122 'rsrc/css/phui/phui-action-list.css' => 'c5eba19d', 123 123 'rsrc/css/phui/phui-action-panel.css' => '91c7b835', ··· 830 830 'phui-calendar-css' => 'daadaf39', 831 831 'phui-calendar-day-css' => 'f15bb6d6', 832 832 'phui-calendar-list-css' => '5d89cd71', 833 - 'phui-calendar-month-css' => '31cec731', 833 + 'phui-calendar-month-css' => '8e10e92c', 834 834 'phui-chart-css' => '6bf6f78e', 835 835 'phui-crumbs-view-css' => 'b4fa5755', 836 836 'phui-curtain-view-css' => '7148ae25',
+10 -2
src/view/phui/calendar/PHUICalendarMonthView.php
··· 65 65 foreach ($days as $day) { 66 66 $day_number = $day->format('j'); 67 67 68 - $class = 'phui-calendar-month-day'; 69 68 $weekday = $day->format('w'); 70 69 71 70 $day->setTime(0, 0, 0); ··· 115 114 116 115 $day_id = $day->format('Ymd'); 117 116 117 + 118 + $classes = array(); 119 + if ($day->format('m') != $this->month) { 120 + $classes[] = 'phui-calendar-month-adjacent'; 121 + } 122 + $classes = implode(' ', $classes); 123 + 118 124 $cell_lists[$day_id] = array( 119 125 'dayID' => $day_id, 120 126 'list' => $list, 121 127 'date' => $day, 122 128 'dayURI' => $uri, 123 129 'count' => count($all_day_events) + count($list_events), 124 - 'class' => $class, 130 + 'class' => $classes, 125 131 ); 126 132 } 127 133 ··· 219 225 220 226 $classes = array(); 221 227 $classes[] = 'phui-calendar-month-event-list'; 228 + $classes[] = 'phui-calendar-month-day'; 222 229 $classes[] = $event_list['class']; 223 230 $classes = implode(' ', $classes); 224 231 ··· 285 292 286 293 $classes = array(); 287 294 $classes[] = 'phui-calendar-month-number'; 295 + $classes[] = $event_list['class']; 288 296 289 297 if ($date) { 290 298 if ($this->isDateInCurrentWeek($date)) {
+4
webroot/rsrc/css/phui/calendar/phui-calendar-month.css
··· 222 222 .device-desktop td.phui-calendar-month-number.calendar-hover { 223 223 background: {$lightblue}; 224 224 } 225 + 226 + .phui-calendar-month-adjacent { 227 + background: {$greybackground}; 228 + }