@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.

Weekend header labels in month view should have darker backgrounds instead of dark actual weekend days.

Summary: Closes T8186, Weekend header labels in month view should have darker backgrounds instead of dark actual weekend days.

Test Plan: open month view, observe weekend labels having a darker background.

Reviewers: chad, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T8186

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

+16 -6
+2 -2
resources/celerity/map.php
··· 122 122 'rsrc/css/layout/phabricator-source-code-view.css' => '2ceee894', 123 123 'rsrc/css/phui/calendar/phui-calendar-day.css' => '3b4a65d8', 124 124 'rsrc/css/phui/calendar/phui-calendar-list.css' => '840baa8d', 125 - 'rsrc/css/phui/calendar/phui-calendar-month.css' => '9fde32d1', 125 + 'rsrc/css/phui/calendar/phui-calendar-month.css' => '7819a8b1', 126 126 'rsrc/css/phui/calendar/phui-calendar.css' => '8345be98', 127 127 'rsrc/css/phui/phui-action-header-view.css' => '89c497e7', 128 128 'rsrc/css/phui/phui-action-list.css' => '4f4d09f2', ··· 763 763 'phui-calendar-css' => '8345be98', 764 764 'phui-calendar-day-css' => '3b4a65d8', 765 765 'phui-calendar-list-css' => '840baa8d', 766 - 'phui-calendar-month-css' => '9fde32d1', 766 + 'phui-calendar-month-css' => '7819a8b1', 767 767 'phui-crumbs-view-css' => '594d719e', 768 768 'phui-document-view-css' => '94d5dcd8', 769 769 'phui-feed-story-css' => 'c9f3a0b5',
+10 -4
src/view/phui/calendar/PHUICalendarMonthView.php
··· 294 294 'tr', 295 295 array('class' => 'phui-calendar-day-of-week-header'), 296 296 array( 297 - $this->getDayHeader(pht('Sun'), pht('Sunday')), 297 + $this->getDayHeader(pht('Sun'), pht('Sunday'), true), 298 298 $this->getDayHeader(pht('Mon'), pht('Monday')), 299 299 $this->getDayHeader(pht('Tue'), pht('Tuesday')), 300 300 $this->getDayHeader(pht('Wed'), pht('Wednesday')), 301 301 $this->getDayHeader(pht('Thu'), pht('Thursday')), 302 302 $this->getDayHeader(pht('Fri'), pht('Friday')), 303 - $this->getDayHeader(pht('Sat'), pht('Saturday')), 303 + $this->getDayHeader(pht('Sat'), pht('Saturday'), true), 304 304 )); 305 305 } 306 306 307 - private function getDayHeader($short, $long) { 307 + private function getDayHeader($short, $long, $is_weekend = false) { 308 + $class = null; 309 + if ($is_weekend) { 310 + $class = 'weekend-day-header'; 311 + } 308 312 $day = array(); 309 313 $day[] = phutil_tag( 310 314 'span', ··· 320 324 $short); 321 325 return phutil_tag( 322 326 'th', 323 - array(), 327 + array( 328 + 'class' => $class, 329 + ), 324 330 $day); 325 331 } 326 332
+4
webroot/rsrc/css/phui/calendar/phui-calendar-month.css
··· 16 16 background: {$lightgreybackground}; 17 17 } 18 18 19 + tr.phui-calendar-day-of-week-header th.weekend-day-header { 20 + background: {$greybackground}; 21 + } 22 + 19 23 .device tr.phui-calendar-day-of-week-header th .long-weekday-name { 20 24 display: none; 21 25 }