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

Allow setting of button colors in headers

Summary: We currently override button color for headers, since the default is blue, but if a developer sets a specific color, we should respect that.

Test Plan: Set a button in the header to green and see green. See grey everywhere else.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+7 -1
+4
src/view/phui/PHUIButtonView.php
··· 64 64 return $this; 65 65 } 66 66 67 + public function getColor() { 68 + return $this->color; 69 + } 70 + 67 71 public function setDisabled($disabled) { 68 72 $this->disabled = $disabled; 69 73 return $this;
+3 -1
src/view/phui/PHUIHeaderView.php
··· 267 267 if ($this->actionLinks) { 268 268 $actions = array(); 269 269 foreach ($this->actionLinks as $button) { 270 - $button->setColor(PHUIButtonView::GREY); 270 + if (!$button->getColor()) { 271 + $button->setColor(PHUIButtonView::GREY); 272 + } 271 273 $button->addClass(PHUI::MARGIN_SMALL_LEFT); 272 274 $button->addClass('phui-header-action-link'); 273 275 $actions[] = $button;