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

Remove setBarColor from PHUITagView

Summary: Also tweaked spacing on the dots.

Test Plan: UIExamples

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: Korvin, epriestley, aran

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

+6 -40
+3 -3
resources/celerity/map.php
··· 7 7 return array( 8 8 'names' => 9 9 array( 10 - 'core.pkg.css' => 'cc7229ab', 10 + 'core.pkg.css' => '95ab640c', 11 11 'core.pkg.js' => 'c907bd96', 12 12 'darkconsole.pkg.js' => 'ca8671ce', 13 13 'differential.pkg.css' => '827749c1', ··· 142 142 'rsrc/css/phui/phui-remarkup-preview.css' => '19ad512b', 143 143 'rsrc/css/phui/phui-spacing.css' => '042804d6', 144 144 'rsrc/css/phui/phui-status.css' => '2f562399', 145 - 'rsrc/css/phui/phui-tag-view.css' => '428d5017', 145 + 'rsrc/css/phui/phui-tag-view.css' => '295d81c4', 146 146 'rsrc/css/phui/phui-text.css' => '23e9b4b7', 147 147 'rsrc/css/phui/phui-workboard-view.css' => 'bf70dd2e', 148 148 'rsrc/css/phui/phui-workpanel-view.css' => 'ffb31e99', ··· 748 748 'phui-remarkup-preview-css' => '19ad512b', 749 749 'phui-spacing-css' => '042804d6', 750 750 'phui-status-list-view-css' => '2f562399', 751 - 'phui-tag-view-css' => '428d5017', 751 + 'phui-tag-view-css' => '295d81c4', 752 752 'phui-text-css' => '23e9b4b7', 753 753 'phui-workboard-view-css' => 'bf70dd2e', 754 754 'phui-workpanel-view-css' => 'ffb31e99',
-1
src/applications/uiexample/examples/PHUITagExample.php
··· 69 69 $intro[] = id(new PHUITagView()) 70 70 ->setType(PHUITagView::TYPE_OBJECT) 71 71 ->setName('T123: Water The Dog') 72 - ->setBarColor(PHUITagView::COLOR_RED) 73 72 ->setHref('#'); 74 73 $intro[] = ' -- that task is '; 75 74 $intro[] = id(new PHUITagView())
+2 -21
src/view/phui/PHUITagView.php
··· 26 26 private $phid; 27 27 private $backgroundColor; 28 28 private $dotColor; 29 - private $barColor; 30 29 private $closed; 31 30 private $external; 32 31 private $id; ··· 51 50 $this->setBackgroundColor(self::COLOR_PERSON); 52 51 break; 53 52 } 54 - return $this; 55 - } 56 - 57 - public function setBarColor($bar_color) { 58 - $this->barColor = $bar_color; 59 53 return $this; 60 54 } 61 55 ··· 143 137 ), 144 138 array($dot, $this->name)); 145 139 146 - if ($this->barColor) { 147 - $barcolor = 'phui-tag-color-'.$this->barColor; 148 - $bar = phutil_tag( 149 - 'span', 150 - array( 151 - 'class' => 'phui-tag-bar '.$barcolor, 152 - ), 153 - ''); 154 - $classes[] = 'phui-tag-view-has-bar'; 155 - } else { 156 - $bar = null; 157 - } 158 - 159 140 if ($this->phid) { 160 141 Javelin::initBehavior('phabricator-hovercards'); 161 142 ··· 171 152 ), 172 153 'target' => $this->external ? '_blank' : null, 173 154 ), 174 - array($bar, $icon, $content)); 155 + array($icon, $content)); 175 156 } else { 176 157 return phutil_tag( 177 158 $this->href ? 'a' : 'span', ··· 181 162 'class' => implode(' ', $classes), 182 163 'target' => $this->external ? '_blank' : null, 183 164 ), 184 - array($bar, $icon, $content)); 165 + array($icon, $content)); 185 166 } 186 167 } 187 168
+1 -15
webroot/rsrc/css/phui/phui-tag-view.css
··· 39 39 padding-left: 22px; 40 40 } 41 41 42 - .phui-tag-view-has-bar .phui-tag-core { 43 - border-radius: 0 3px 3px 0; 44 - border-width: 1px 1px 1px 0; 45 - } 46 - 47 42 .phui-tag-dot { 48 43 position: relative; 49 44 display: inline-block; 50 45 width: 6px; 51 46 height: 6px; 52 - margin-right: 3px; 47 + margin-right: 4px; 53 48 top: -1px; 54 49 border-radius: 6px; 55 50 border: 1px solid transparent; 56 - box-shadow: 0 0 2px rgba(255, 255, 255, 0.8); 57 51 } 58 52 59 53 .phui-tag-type-state { ··· 141 135 .phui-tag-core.phui-tag-color-object { 142 136 border-color: #d7d7d7; 143 137 } 144 - 145 - .phui-tag-bar { 146 - padding-left: 4px; 147 - border-width: 1px; 148 - border-style: solid; 149 - border-right-color: rgba(0, 0, 0, 0.33); 150 - border-radius: 2px 0 0 2px; 151 - }