1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

Move PhabricatorTagView to PHUITagView

Summary: For consistency and great justice.

Test Plan: tested audit, uiexamples, action headers

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Differential Revision: https://secure.phabricator.com/D7967
This commit is contained in:
Chad Little 2014-01-14 14:09:52 -08:00
parent a716fe99f3
commit 31a2bebf63
31 changed files with 186 additions and 189 deletions

View file

@ -7,7 +7,7 @@
return array( return array(
'names' => 'names' =>
array( array(
'core.pkg.css' => 'a35f9047', 'core.pkg.css' => 'cc7229ab',
'core.pkg.js' => 'c907bd96', 'core.pkg.js' => 'c907bd96',
'darkconsole.pkg.js' => 'ca8671ce', 'darkconsole.pkg.js' => 'ca8671ce',
'differential.pkg.css' => '827749c1', 'differential.pkg.css' => '827749c1',
@ -117,14 +117,13 @@ return array(
'rsrc/css/core/syntax.css' => '3c18c1cb', 'rsrc/css/core/syntax.css' => '3c18c1cb',
'rsrc/css/core/z-index.css' => '1bbbd4f1', 'rsrc/css/core/z-index.css' => '1bbbd4f1',
'rsrc/css/diviner/diviner-shared.css' => 'be90f718', 'rsrc/css/diviner/diviner-shared.css' => 'be90f718',
'rsrc/css/layout/phabricator-action-header-view.css' => 'b6e919a4', 'rsrc/css/layout/phabricator-action-header-view.css' => 'cc654b91',
'rsrc/css/layout/phabricator-action-list-view.css' => '81383e25', 'rsrc/css/layout/phabricator-action-list-view.css' => '81383e25',
'rsrc/css/layout/phabricator-crumbs-view.css' => '2d9db584', 'rsrc/css/layout/phabricator-crumbs-view.css' => '2d9db584',
'rsrc/css/layout/phabricator-filetree-view.css' => 'a8c86ace', 'rsrc/css/layout/phabricator-filetree-view.css' => 'a8c86ace',
'rsrc/css/layout/phabricator-hovercard-view.css' => '67c12b16', 'rsrc/css/layout/phabricator-hovercard-view.css' => '67c12b16',
'rsrc/css/layout/phabricator-side-menu-view.css' => '503699d0', 'rsrc/css/layout/phabricator-side-menu-view.css' => '503699d0',
'rsrc/css/layout/phabricator-source-code-view.css' => '62a99814', 'rsrc/css/layout/phabricator-source-code-view.css' => '62a99814',
'rsrc/css/layout/phabricator-tag-view.css' => '4c983c74',
'rsrc/css/layout/phabricator-timeline-view.css' => 'f4f846c4', 'rsrc/css/layout/phabricator-timeline-view.css' => 'f4f846c4',
'rsrc/css/phui/phui-box.css' => '21da4d8c', 'rsrc/css/phui/phui-box.css' => '21da4d8c',
'rsrc/css/phui/phui-button.css' => '8106a67a', 'rsrc/css/phui/phui-button.css' => '8106a67a',
@ -132,17 +131,18 @@ return array(
'rsrc/css/phui/phui-feed-story.css' => '3a59c2cf', 'rsrc/css/phui/phui-feed-story.css' => '3a59c2cf',
'rsrc/css/phui/phui-form-view.css' => '3179980c', 'rsrc/css/phui/phui-form-view.css' => '3179980c',
'rsrc/css/phui/phui-form.css' => 'b78ec020', 'rsrc/css/phui/phui-form.css' => 'b78ec020',
'rsrc/css/phui/phui-header-view.css' => '1a93f1d9', 'rsrc/css/phui/phui-header-view.css' => '472a6003',
'rsrc/css/phui/phui-icon.css' => '29e83226', 'rsrc/css/phui/phui-icon.css' => '29e83226',
'rsrc/css/phui/phui-info-panel.css' => '27ea50a1', 'rsrc/css/phui/phui-info-panel.css' => '27ea50a1',
'rsrc/css/phui/phui-list.css' => '2edb76cf', 'rsrc/css/phui/phui-list.css' => '2edb76cf',
'rsrc/css/phui/phui-object-box.css' => '4f916b80', 'rsrc/css/phui/phui-object-box.css' => '4f916b80',
'rsrc/css/phui/phui-object-item-list-view.css' => 'e8192ada', 'rsrc/css/phui/phui-object-item-list-view.css' => 'e8192ada',
'rsrc/css/phui/phui-pinboard-view.css' => '53c5fca0', 'rsrc/css/phui/phui-pinboard-view.css' => '53c5fca0',
'rsrc/css/phui/phui-property-list-view.css' => '354465ae', 'rsrc/css/phui/phui-property-list-view.css' => 'dbf53b12',
'rsrc/css/phui/phui-remarkup-preview.css' => '19ad512b', 'rsrc/css/phui/phui-remarkup-preview.css' => '19ad512b',
'rsrc/css/phui/phui-spacing.css' => '042804d6', 'rsrc/css/phui/phui-spacing.css' => '042804d6',
'rsrc/css/phui/phui-status.css' => '2f562399', 'rsrc/css/phui/phui-status.css' => '2f562399',
'rsrc/css/phui/phui-tag-view.css' => '428d5017',
'rsrc/css/phui/phui-text.css' => '23e9b4b7', 'rsrc/css/phui/phui-text.css' => '23e9b4b7',
'rsrc/css/phui/phui-workboard-view.css' => 'bf70dd2e', 'rsrc/css/phui/phui-workboard-view.css' => 'bf70dd2e',
'rsrc/css/phui/phui-workpanel-view.css' => 'ffb31e99', 'rsrc/css/phui/phui-workpanel-view.css' => 'ffb31e99',
@ -665,7 +665,7 @@ return array(
'paste-css' => 'aa1767d1', 'paste-css' => 'aa1767d1',
'path-typeahead' => 'f7fc67ec', 'path-typeahead' => 'f7fc67ec',
'people-profile-css' => 'd0bababe', 'people-profile-css' => 'd0bababe',
'phabricator-action-header-view-css' => 'b6e919a4', 'phabricator-action-header-view-css' => 'cc654b91',
'phabricator-action-list-view-css' => '81383e25', 'phabricator-action-list-view-css' => '81383e25',
'phabricator-application-launch-view-css' => '6f8453d9', 'phabricator-application-launch-view-css' => '6f8453d9',
'phabricator-busy' => '6453c869', 'phabricator-busy' => '6453c869',
@ -707,7 +707,6 @@ return array(
'phabricator-slowvote-css' => '266df6a1', 'phabricator-slowvote-css' => '266df6a1',
'phabricator-source-code-view-css' => '62a99814', 'phabricator-source-code-view-css' => '62a99814',
'phabricator-standard-page-view' => '517cdfb1', 'phabricator-standard-page-view' => '517cdfb1',
'phabricator-tag-view-css' => '4c983c74',
'phabricator-textareautils' => 'b3ec3cfc', 'phabricator-textareautils' => 'b3ec3cfc',
'phabricator-timeline-view-css' => 'f4f846c4', 'phabricator-timeline-view-css' => 'f4f846c4',
'phabricator-tooltip' => '0a81ea29', 'phabricator-tooltip' => '0a81ea29',
@ -738,17 +737,18 @@ return array(
'phui-feed-story-css' => '3a59c2cf', 'phui-feed-story-css' => '3a59c2cf',
'phui-form-css' => 'b78ec020', 'phui-form-css' => 'b78ec020',
'phui-form-view-css' => '3179980c', 'phui-form-view-css' => '3179980c',
'phui-header-view-css' => '1a93f1d9', 'phui-header-view-css' => '472a6003',
'phui-icon-view-css' => '29e83226', 'phui-icon-view-css' => '29e83226',
'phui-info-panel-css' => '27ea50a1', 'phui-info-panel-css' => '27ea50a1',
'phui-list-view-css' => '2edb76cf', 'phui-list-view-css' => '2edb76cf',
'phui-object-box-css' => '4f916b80', 'phui-object-box-css' => '4f916b80',
'phui-object-item-list-view-css' => 'e8192ada', 'phui-object-item-list-view-css' => 'e8192ada',
'phui-pinboard-view-css' => '53c5fca0', 'phui-pinboard-view-css' => '53c5fca0',
'phui-property-list-view-css' => '354465ae', 'phui-property-list-view-css' => 'dbf53b12',
'phui-remarkup-preview-css' => '19ad512b', 'phui-remarkup-preview-css' => '19ad512b',
'phui-spacing-css' => '042804d6', 'phui-spacing-css' => '042804d6',
'phui-status-list-view-css' => '2f562399', 'phui-status-list-view-css' => '2f562399',
'phui-tag-view-css' => '428d5017',
'phui-text-css' => '23e9b4b7', 'phui-text-css' => '23e9b4b7',
'phui-workboard-view-css' => 'bf70dd2e', 'phui-workboard-view-css' => 'bf70dd2e',
'phui-workpanel-view-css' => 'ffb31e99', 'phui-workpanel-view-css' => 'ffb31e99',
@ -2045,7 +2045,7 @@ return array(
38 => 'phabricator-application-launch-view-css', 38 => 'phabricator-application-launch-view-css',
39 => 'phabricator-action-list-view-css', 39 => 'phabricator-action-list-view-css',
40 => 'phui-property-list-view-css', 40 => 'phui-property-list-view-css',
41 => 'phabricator-tag-view-css', 41 => 'phui-tag-view-css',
42 => 'phui-list-view-css', 42 => 'phui-list-view-css',
), ),
'core.pkg.js' => 'core.pkg.js' =>

View file

@ -112,7 +112,7 @@ return array(
'phabricator-application-launch-view-css', 'phabricator-application-launch-view-css',
'phabricator-action-list-view-css', 'phabricator-action-list-view-css',
'phui-property-list-view-css', 'phui-property-list-view-css',
'phabricator-tag-view-css', 'phui-tag-view-css',
'phui-list-view-css', 'phui-list-view-css',
), ),
'differential.pkg.css' => array( 'differential.pkg.css' => array(

View file

@ -1001,6 +1001,8 @@ phutil_register_library_map(array(
'PHUIRemarkupPreviewPanel' => 'view/phui/PHUIRemarkupPreviewPanel.php', 'PHUIRemarkupPreviewPanel' => 'view/phui/PHUIRemarkupPreviewPanel.php',
'PHUIStatusItemView' => 'view/phui/PHUIStatusItemView.php', 'PHUIStatusItemView' => 'view/phui/PHUIStatusItemView.php',
'PHUIStatusListView' => 'view/phui/PHUIStatusListView.php', 'PHUIStatusListView' => 'view/phui/PHUIStatusListView.php',
'PHUITagExample' => 'applications/uiexample/examples/PHUITagExample.php',
'PHUITagView' => 'view/phui/PHUITagView.php',
'PHUITextExample' => 'applications/uiexample/examples/PHUITextExample.php', 'PHUITextExample' => 'applications/uiexample/examples/PHUITextExample.php',
'PHUITextView' => 'view/phui/PHUITextView.php', 'PHUITextView' => 'view/phui/PHUITextView.php',
'PHUIWorkboardExample' => 'applications/uiexample/examples/PHUIWorkboardExample.php', 'PHUIWorkboardExample' => 'applications/uiexample/examples/PHUIWorkboardExample.php',
@ -1998,8 +2000,6 @@ phutil_register_library_map(array(
'PhabricatorSymbolNameLinter' => 'infrastructure/lint/hook/PhabricatorSymbolNameLinter.php', 'PhabricatorSymbolNameLinter' => 'infrastructure/lint/hook/PhabricatorSymbolNameLinter.php',
'PhabricatorSyntaxHighlighter' => 'infrastructure/markup/PhabricatorSyntaxHighlighter.php', 'PhabricatorSyntaxHighlighter' => 'infrastructure/markup/PhabricatorSyntaxHighlighter.php',
'PhabricatorSyntaxHighlightingConfigOptions' => 'applications/config/option/PhabricatorSyntaxHighlightingConfigOptions.php', 'PhabricatorSyntaxHighlightingConfigOptions' => 'applications/config/option/PhabricatorSyntaxHighlightingConfigOptions.php',
'PhabricatorTagExample' => 'applications/uiexample/examples/PhabricatorTagExample.php',
'PhabricatorTagView' => 'view/layout/PhabricatorTagView.php',
'PhabricatorTaskmasterDaemon' => 'infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php', 'PhabricatorTaskmasterDaemon' => 'infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php',
'PhabricatorTestCase' => 'infrastructure/testing/PhabricatorTestCase.php', 'PhabricatorTestCase' => 'infrastructure/testing/PhabricatorTestCase.php',
'PhabricatorTestController' => 'applications/base/controller/__tests__/PhabricatorTestController.php', 'PhabricatorTestController' => 'applications/base/controller/__tests__/PhabricatorTestController.php',
@ -3542,6 +3542,8 @@ phutil_register_library_map(array(
'PHUIRemarkupPreviewPanel' => 'AphrontTagView', 'PHUIRemarkupPreviewPanel' => 'AphrontTagView',
'PHUIStatusItemView' => 'AphrontTagView', 'PHUIStatusItemView' => 'AphrontTagView',
'PHUIStatusListView' => 'AphrontTagView', 'PHUIStatusListView' => 'AphrontTagView',
'PHUITagExample' => 'PhabricatorUIExample',
'PHUITagView' => 'AphrontView',
'PHUITextExample' => 'PhabricatorUIExample', 'PHUITextExample' => 'PhabricatorUIExample',
'PHUITextView' => 'AphrontTagView', 'PHUITextView' => 'AphrontTagView',
'PHUIWorkboardExample' => 'PhabricatorUIExample', 'PHUIWorkboardExample' => 'PhabricatorUIExample',
@ -4643,8 +4645,6 @@ phutil_register_library_map(array(
'PhabricatorSubscriptionsUIEventListener' => 'PhabricatorEventListener', 'PhabricatorSubscriptionsUIEventListener' => 'PhabricatorEventListener',
'PhabricatorSymbolNameLinter' => 'ArcanistXHPASTLintNamingHook', 'PhabricatorSymbolNameLinter' => 'ArcanistXHPASTLintNamingHook',
'PhabricatorSyntaxHighlightingConfigOptions' => 'PhabricatorApplicationConfigOptions', 'PhabricatorSyntaxHighlightingConfigOptions' => 'PhabricatorApplicationConfigOptions',
'PhabricatorTagExample' => 'PhabricatorUIExample',
'PhabricatorTagView' => 'AphrontView',
'PhabricatorTaskmasterDaemon' => 'PhabricatorDaemon', 'PhabricatorTaskmasterDaemon' => 'PhabricatorDaemon',
'PhabricatorTestCase' => 'ArcanistPhutilTestCase', 'PhabricatorTestCase' => 'ArcanistPhutilTestCase',
'PhabricatorTestController' => 'PhabricatorController', 'PhabricatorTestController' => 'PhabricatorController',

View file

@ -212,8 +212,8 @@ final class PhabricatorAuthEditController
'existing Phabricator accounts. If you disable this, Phabricator '. 'existing Phabricator accounts. If you disable this, Phabricator '.
'accounts will be permanently bound to provider accounts.')); 'accounts will be permanently bound to provider accounts.'));
$status_tag = id(new PhabricatorTagView()) $status_tag = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE); ->setType(PHUITagView::TYPE_STATE);
if ($is_new) { if ($is_new) {
$status_tag $status_tag
->setName(pht('New Provider')) ->setName(pht('New Provider'))

View file

@ -31,29 +31,29 @@ final class PhabricatorDaemonLogViewController
$header = id(new PHUIHeaderView()) $header = id(new PHUIHeaderView())
->setHeader($log->getDaemon()); ->setHeader($log->getDaemon());
$tag = id(new PhabricatorTagView()) $tag = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE); ->setType(PHUITagView::TYPE_STATE);
$status = $log->getStatus(); $status = $log->getStatus();
switch ($status) { switch ($status) {
case PhabricatorDaemonLog::STATUS_UNKNOWN: case PhabricatorDaemonLog::STATUS_UNKNOWN:
$tag->setBackgroundColor(PhabricatorTagView::COLOR_ORANGE); $tag->setBackgroundColor(PHUITagView::COLOR_ORANGE);
$tag->setName(pht('Unknown')); $tag->setName(pht('Unknown'));
break; break;
case PhabricatorDaemonLog::STATUS_RUNNING: case PhabricatorDaemonLog::STATUS_RUNNING:
$tag->setBackgroundColor(PhabricatorTagView::COLOR_GREEN); $tag->setBackgroundColor(PHUITagView::COLOR_GREEN);
$tag->setName(pht('Running')); $tag->setName(pht('Running'));
break; break;
case PhabricatorDaemonLog::STATUS_DEAD: case PhabricatorDaemonLog::STATUS_DEAD:
$tag->setBackgroundColor(PhabricatorTagView::COLOR_RED); $tag->setBackgroundColor(PHUITagView::COLOR_RED);
$tag->setName(pht('Dead')); $tag->setName(pht('Dead'));
break; break;
case PhabricatorDaemonLog::STATUS_WAIT: case PhabricatorDaemonLog::STATUS_WAIT:
$tag->setBackgroundColor(PhabricatorTagView::COLOR_BLUE); $tag->setBackgroundColor(PHUITagView::COLOR_BLUE);
$tag->setName(pht('Waiting')); $tag->setName(pht('Waiting'));
break; break;
case PhabricatorDaemonLog::STATUS_EXITED: case PhabricatorDaemonLog::STATUS_EXITED:
$tag->setBackgroundColor(PhabricatorTagView::COLOR_GREY); $tag->setBackgroundColor(PHUITagView::COLOR_GREY);
$tag->setName(pht('Exited')); $tag->setName(pht('Exited'));
break; break;
} }

View file

@ -65,11 +65,11 @@ final class DifferentialAsanaRepresentationFieldSpecification
), ),
)); ));
return id(new PhabricatorTagView()) return id(new PHUITagView())
->setID($tag_id) ->setID($tag_id)
->setName($href) ->setName($href)
->setHref($href) ->setHref($href)
->setType(PhabricatorTagView::TYPE_OBJECT) ->setType(PHUITagView::TYPE_OBJECT)
->setExternal(true); ->setExternal(true);
} }

View file

@ -169,8 +169,8 @@ final class DifferentialRevisionDetailView extends AphrontView {
$status_name = $status_name =
ArcanistDifferentialRevisionStatus::getNameForRevisionStatus($status); ArcanistDifferentialRevisionStatus::getNameForRevisionStatus($status);
return id(new PhabricatorTagView()) return id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setName($status_name); ->setName($status_name);
} }

View file

@ -487,22 +487,22 @@ final class DiffusionCommitController extends DiffusionController {
if ($commit->getAuditStatus()) { if ($commit->getAuditStatus()) {
$status = PhabricatorAuditCommitStatusConstants::getStatusName( $status = PhabricatorAuditCommitStatusConstants::getStatusName(
$commit->getAuditStatus()); $commit->getAuditStatus());
$tag = id(new PhabricatorTagView()) $tag = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setName($status); ->setName($status);
switch ($commit->getAuditStatus()) { switch ($commit->getAuditStatus()) {
case PhabricatorAuditCommitStatusConstants::NEEDS_AUDIT: case PhabricatorAuditCommitStatusConstants::NEEDS_AUDIT:
$tag->setBackgroundColor(PhabricatorTagView::COLOR_ORANGE); $tag->setBackgroundColor(PHUITagView::COLOR_ORANGE);
break; break;
case PhabricatorAuditCommitStatusConstants::CONCERN_RAISED: case PhabricatorAuditCommitStatusConstants::CONCERN_RAISED:
$tag->setBackgroundColor(PhabricatorTagView::COLOR_RED); $tag->setBackgroundColor(PHUITagView::COLOR_RED);
break; break;
case PhabricatorAuditCommitStatusConstants::PARTIALLY_AUDITED: case PhabricatorAuditCommitStatusConstants::PARTIALLY_AUDITED:
$tag->setBackgroundColor(PhabricatorTagView::COLOR_BLUE); $tag->setBackgroundColor(PHUITagView::COLOR_BLUE);
break; break;
case PhabricatorAuditCommitStatusConstants::FULLY_AUDITED: case PhabricatorAuditCommitStatusConstants::FULLY_AUDITED:
$tag->setBackgroundColor(PhabricatorTagView::COLOR_GREEN); $tag->setBackgroundColor(PHUITagView::COLOR_GREEN);
break; break;
} }

View file

@ -72,9 +72,9 @@ final class DivinerAtomController extends DivinerController {
$header = id(new PHUIHeaderView()) $header = id(new PHUIHeaderView())
->setHeader($this->renderFullSignature($symbol)) ->setHeader($this->renderFullSignature($symbol))
->addTag( ->addTag(
id(new PhabricatorTagView()) id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_BLUE) ->setBackgroundColor(PHUITagView::COLOR_BLUE)
->setName(DivinerAtom::getAtomTypeNameString($atom->getType()))); ->setName(DivinerAtom::getAtomTypeNameString($atom->getType())));
$properties = id(new PHUIPropertyListView()); $properties = id(new PHUIPropertyListView());
@ -206,9 +206,9 @@ final class DivinerAtomController extends DivinerController {
$inherited = $spec['inherited']; $inherited = $spec['inherited'];
if ($inherited) { if ($inherited) {
$method_header->addTag( $method_header->addTag(
id(new PhabricatorTagView()) id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_GREY) ->setBackgroundColor(PHUITagView::COLOR_GREY)
->setName(pht('Inherited'))); ->setName(pht('Inherited')));
} }
@ -291,8 +291,8 @@ final class DivinerAtomController extends DivinerController {
} }
private function renderAtomTag(DivinerLiveSymbol $symbol) { private function renderAtomTag(DivinerLiveSymbol $symbol) {
return id(new PhabricatorTagView()) return id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_OBJECT) ->setType(PHUITagView::TYPE_OBJECT)
->setName($symbol->getName()) ->setName($symbol->getName())
->setHref($symbol->getURI()); ->setHref($symbol->getURI());
} }

View file

@ -45,11 +45,11 @@ final class DoorkeeperTagsController extends PhabricatorController {
$id = $id_map[$key]; $id = $id_map[$key];
$tag = id(new PhabricatorTagView()) $tag = id(new PHUITagView())
->setID($id) ->setID($id)
->setName($ref->getFullName()) ->setName($ref->getFullName())
->setHref($uri) ->setHref($uri)
->setType(PhabricatorTagView::TYPE_OBJECT) ->setType(PHUITagView::TYPE_OBJECT)
->setExternal(true) ->setExternal(true)
->render(); ->render();

View file

@ -46,11 +46,11 @@ abstract class DoorkeeperRemarkupRule
if ($this->getEngine()->isTextMode()) { if ($this->getEngine()->isTextMode()) {
$view = $spec['href']; $view = $spec['href'];
} else { } else {
$view = id(new PhabricatorTagView()) $view = id(new PHUITagView())
->setID($tag_id) ->setID($tag_id)
->setName($spec['href']) ->setName($spec['href'])
->setHref($spec['href']) ->setHref($spec['href'])
->setType(PhabricatorTagView::TYPE_OBJECT) ->setType(PHUITagView::TYPE_OBJECT)
->setExternal(true); ->setExternal(true);
} }

View file

@ -31,11 +31,11 @@ final class DoorkeeperTagView extends AphrontView {
Javelin::initBehavior('doorkeeper-tag', array('tags' => array($spec))); Javelin::initBehavior('doorkeeper-tag', array('tags' => array($spec)));
return id(new PhabricatorTagView()) return id(new PHUITagView())
->setID($tag_id) ->setID($tag_id)
->setHref($href) ->setHref($href)
->setName($href) ->setName($href)
->setType(PhabricatorTagView::TYPE_OBJECT) ->setType(PHUITagView::TYPE_OBJECT)
->setExternal(true); ->setExternal(true);
} }

View file

@ -39,8 +39,8 @@ final class PhabricatorFileInfoController extends PhabricatorFileController {
$ttl = $file->getTTL(); $ttl = $file->getTTL();
if ($ttl !== null) { if ($ttl !== null) {
$ttl_tag = id(new PhabricatorTagView()) $ttl_tag = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_OBJECT) ->setType(PHUITagView::TYPE_OBJECT)
->setName(pht("Temporary")); ->setName(pht("Temporary"));
$header->addTag($ttl_tag); $header->addTag($ttl_tag);
} }

View file

@ -75,10 +75,10 @@ final class PhabricatorMacroViewController
if ($macro->getIsDisabled()) { if ($macro->getIsDisabled()) {
$header->addTag( $header->addTag(
id(new PhabricatorTagView()) id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setName(pht('Macro Disabled')) ->setName(pht('Macro Disabled'))
->setBackgroundColor(PhabricatorTagView::COLOR_BLACK)); ->setBackgroundColor(PHUITagView::COLOR_BLACK));
} }
$is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business');

View file

@ -9,8 +9,8 @@ abstract class ManiphestView extends AphrontView {
$status = $task->getStatus(); $status = $task->getStatus();
$status_name = ManiphestTaskStatus::getTaskStatusFullName($status); $status_name = ManiphestTaskStatus::getTaskStatusFullName($status);
return id(new PhabricatorTagView()) return id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setName($status_name); ->setName($status_name);
} }

View file

@ -101,22 +101,22 @@ final class PhabricatorRemarkupRuleMention
$user = $actual_users[$username]; $user = $actual_users[$username];
Javelin::initBehavior('phabricator-hovercards'); Javelin::initBehavior('phabricator-hovercards');
$tag = id(new PhabricatorTagView()) $tag = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_PERSON) ->setType(PHUITagView::TYPE_PERSON)
->setPHID($user->getPHID()) ->setPHID($user->getPHID())
->setName('@'.$user->getUserName()) ->setName('@'.$user->getUserName())
->setHref('/p/'.$user->getUserName().'/'); ->setHref('/p/'.$user->getUserName().'/');
if (!$user->isUserActivated()) { if (!$user->isUserActivated()) {
$tag->setDotColor(PhabricatorTagView::COLOR_GREY); $tag->setDotColor(PHUITagView::COLOR_GREY);
} else { } else {
$status = idx($user_statuses, $user->getPHID()); $status = idx($user_statuses, $user->getPHID());
if ($status) { if ($status) {
$status = $status->getStatus(); $status = $status->getStatus();
if ($status == PhabricatorUserStatus::STATUS_AWAY) { if ($status == PhabricatorUserStatus::STATUS_AWAY) {
$tag->setDotColor(PhabricatorTagView::COLOR_RED); $tag->setDotColor(PHUITagView::COLOR_RED);
} else if ($status == PhabricatorUserStatus::STATUS_AWAY) { } else if ($status == PhabricatorUserStatus::STATUS_AWAY) {
$tag->setDotColor(PhabricatorTagView::COLOR_ORANGE); $tag->setDotColor(PHUITagView::COLOR_ORANGE);
} }
} }
} }

View file

@ -25,7 +25,7 @@ final class PonderQuestionStatus extends PonderConstants {
public static function getQuestionStatusTagColor($status) { public static function getQuestionStatusTagColor($status) {
$map = array( $map = array(
self::STATUS_CLOSED => PhabricatorTagView::COLOR_BLACK, self::STATUS_CLOSED => PHUITagView::COLOR_BLACK,
); );
return idx($map, $status); return idx($map, $status);

View file

@ -103,9 +103,9 @@ final class ReleephBranchViewController extends ReleephProjectController
if (!$branch->getIsActive()) { if (!$branch->getIsActive()) {
$header->addTag( $header->addTag(
id(new PhabricatorTagView()) id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_BLACK) ->setBackgroundColor(PHUITagView::COLOR_BLACK)
->setName(pht('Closed'))); ->setName(pht('Closed')));
} }

View file

@ -160,9 +160,9 @@ final class ReleephProjectViewController extends ReleephProjectController
if (!$project->getIsActive()) { if (!$project->getIsActive()) {
$header->addTag( $header->addTag(
id(new PhabricatorTagView()) id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_BLACK) ->setBackgroundColor(PHUITagView::COLOR_BLACK)
->setName(pht('Deactivated'))); ->setName(pht('Deactivated')));
} }

View file

@ -1,21 +1,21 @@
<?php <?php
final class PhabricatorTagExample extends PhabricatorUIExample { final class PHUITagExample extends PhabricatorUIExample {
public function getName() { public function getName() {
return 'Tags'; return 'Tags';
} }
public function getDescription() { public function getDescription() {
return hsprintf('Use <tt>PhabricatorTagView</tt> to render various tags.'); return hsprintf('Use <tt>PHUITagView</tt> to render various tags.');
} }
public function renderExample() { public function renderExample() {
$intro = array(); $intro = array();
$intro[] = 'Hey, '; $intro[] = 'Hey, ';
$intro[] = id(new PhabricatorTagView()) $intro[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_PERSON) ->setType(PHUITagView::TYPE_PERSON)
->setName('@alincoln') ->setName('@alincoln')
->setHref('#'); ->setHref('#');
$intro[] = ' how is stuff?'; $intro[] = ' how is stuff?';
@ -23,58 +23,58 @@ final class PhabricatorTagExample extends PhabricatorUIExample {
$intro[] = 'Did you hear that '; $intro[] = 'Did you hear that ';
$intro[] = id(new PhabricatorTagView()) $intro[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_PERSON) ->setType(PHUITagView::TYPE_PERSON)
->setName('@gwashington') ->setName('@gwashington')
->setDotColor(PhabricatorTagView::COLOR_RED) ->setDotColor(PHUITagView::COLOR_RED)
->setHref('#'); ->setHref('#');
$intro[] = ' is away, '; $intro[] = ' is away, ';
$intro[] = id(new PhabricatorTagView()) $intro[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_PERSON) ->setType(PHUITagView::TYPE_PERSON)
->setName('@tjefferson') ->setName('@tjefferson')
->setDotColor(PhabricatorTagView::COLOR_ORANGE) ->setDotColor(PHUITagView::COLOR_ORANGE)
->setHref('#'); ->setHref('#');
$intro[] = ' has some errands, and '; $intro[] = ' has some errands, and ';
$intro[] = id(new PhabricatorTagView()) $intro[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_PERSON) ->setType(PHUITagView::TYPE_PERSON)
->setName('@rreagan') ->setName('@rreagan')
->setDotColor(PhabricatorTagView::COLOR_GREY) ->setDotColor(PHUITagView::COLOR_GREY)
->setHref('#'); ->setHref('#');
$intro[] = ' is gone?'; $intro[] = ' is gone?';
$intro[] = hsprintf('<br /><br />'); $intro[] = hsprintf('<br /><br />');
$intro[] = 'Take a look at '; $intro[] = 'Take a look at ';
$intro[] = id(new PhabricatorTagView()) $intro[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_OBJECT) ->setType(PHUITagView::TYPE_OBJECT)
->setName('D123') ->setName('D123')
->setHref('#'); ->setHref('#');
$intro[] = ' when you get a chance.'; $intro[] = ' when you get a chance.';
$intro[] = hsprintf('<br /><br />'); $intro[] = hsprintf('<br /><br />');
$intro[] = 'Hmm? '; $intro[] = 'Hmm? ';
$intro[] = id(new PhabricatorTagView()) $intro[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_OBJECT) ->setType(PHUITagView::TYPE_OBJECT)
->setName('D123') ->setName('D123')
->setClosed(true) ->setClosed(true)
->setHref('#'); ->setHref('#');
$intro[] = ' is '; $intro[] = ' is ';
$intro[] = id(new PhabricatorTagView()) $intro[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_BLACK) ->setBackgroundColor(PHUITagView::COLOR_BLACK)
->setName('Abandoned'); ->setName('Abandoned');
$intro[] = '.'; $intro[] = '.';
$intro[] = hsprintf('<br /><br />'); $intro[] = hsprintf('<br /><br />');
$intro[] = 'I hope someone is going to '; $intro[] = 'I hope someone is going to ';
$intro[] = id(new PhabricatorTagView()) $intro[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_OBJECT) ->setType(PHUITagView::TYPE_OBJECT)
->setName('T123: Water The Dog') ->setName('T123: Water The Dog')
->setBarColor(PhabricatorTagView::COLOR_RED) ->setBarColor(PHUITagView::COLOR_RED)
->setHref('#'); ->setHref('#');
$intro[] = ' -- that task is '; $intro[] = ' -- that task is ';
$intro[] = id(new PhabricatorTagView()) $intro[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_RED) ->setBackgroundColor(PHUITagView::COLOR_RED)
->setName('High Priority'); ->setName('High Priority');
$intro[] = '!'; $intro[] = '!';
@ -85,11 +85,11 @@ final class PhabricatorTagExample extends PhabricatorUIExample {
$header1 = id(new PHUIHeaderView()) $header1 = id(new PHUIHeaderView())
->setHeader('Colors'); ->setHeader('Colors');
$colors = PhabricatorTagView::getColors(); $colors = PHUITagView::getColors();
$tags = array(); $tags = array();
foreach ($colors as $color) { foreach ($colors as $color) {
$tags[] = id(new PhabricatorTagView()) $tags[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor($color) ->setBackgroundColor($color)
->setName(ucwords($color)); ->setName(ucwords($color));
$tags[] = hsprintf('<br /><br />'); $tags[] = hsprintf('<br /><br />');
@ -100,25 +100,22 @@ final class PhabricatorTagExample extends PhabricatorUIExample {
->addPadding(PHUI::PADDING_LARGE); ->addPadding(PHUI::PADDING_LARGE);
$tags = array(); $tags = array();
$tags[] = id(new PhabricatorTagView()) $tags[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_GREEN) ->setBackgroundColor(PHUITagView::COLOR_GREEN)
->setDotColor(PhabricatorTagView::COLOR_RED) ->setDotColor(PHUITagView::COLOR_RED)
->setBarColor(PhabricatorTagView::COLOR_RED)
->setName('Christmas'); ->setName('Christmas');
$tags[] = hsprintf('<br /><br />'); $tags[] = hsprintf('<br /><br />');
$tags[] = id(new PhabricatorTagView()) $tags[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_OBJECT) ->setType(PHUITagView::TYPE_OBJECT)
->setBackgroundColor(PhabricatorTagView::COLOR_ORANGE) ->setBackgroundColor(PHUITagView::COLOR_ORANGE)
->setDotColor(PhabricatorTagView::COLOR_BLACK) ->setDotColor(PHUITagView::COLOR_BLACK)
->setBarColor(PhabricatorTagView::COLOR_BLACK)
->setName('Halloween'); ->setName('Halloween');
$tags[] = hsprintf('<br /><br />'); $tags[] = hsprintf('<br /><br />');
$tags[] = id(new PhabricatorTagView()) $tags[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_INDIGO) ->setBackgroundColor(PHUITagView::COLOR_INDIGO)
->setDotColor(PhabricatorTagView::COLOR_YELLOW) ->setDotColor(PHUITagView::COLOR_YELLOW)
->setBarColor(PhabricatorTagView::COLOR_BLUE)
->setName('Easter'); ->setName('Easter');
$content2 = id(new PHUIBoxView()) $content2 = id(new PHUIBoxView())
@ -126,33 +123,33 @@ final class PhabricatorTagExample extends PhabricatorUIExample {
->addPadding(PHUI::PADDING_LARGE); ->addPadding(PHUI::PADDING_LARGE);
$icons = array(); $icons = array();
$icons[] = id(new PhabricatorTagView()) $icons[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_GREEN) ->setBackgroundColor(PHUITagView::COLOR_GREEN)
->setIcon('check-white') ->setIcon('check-white')
->setName('Passed'); ->setName('Passed');
$icons[] = hsprintf('<br /><br />'); $icons[] = hsprintf('<br /><br />');
$icons[] = id(new PhabricatorTagView()) $icons[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_RED) ->setBackgroundColor(PHUITagView::COLOR_RED)
->setIcon('delete-white') ->setIcon('delete-white')
->setName('Failed'); ->setName('Failed');
$icons[] = hsprintf('<br /><br />'); $icons[] = hsprintf('<br /><br />');
$icons[] = id(new PhabricatorTagView()) $icons[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_BLUE) ->setBackgroundColor(PHUITagView::COLOR_BLUE)
->setIcon('refresh-white') ->setIcon('refresh-white')
->setName('Running'); ->setName('Running');
$icons[] = hsprintf('<br /><br />'); $icons[] = hsprintf('<br /><br />');
$icons[] = id(new PhabricatorTagView()) $icons[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_GREY) ->setBackgroundColor(PHUITagView::COLOR_GREY)
->setIcon('pause-white') ->setIcon('pause-white')
->setName('Paused'); ->setName('Paused');
$icons[] = hsprintf('<br /><br />'); $icons[] = hsprintf('<br /><br />');
$icons[] = id(new PhabricatorTagView()) $icons[] = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_BLACK) ->setBackgroundColor(PHUITagView::COLOR_BLACK)
->setIcon('stop-white') ->setIcon('stop-white')
->setName('Stopped'); ->setName('Stopped');

View file

@ -189,14 +189,14 @@ final class PhabricatorActionHeaderExample extends PhabricatorUIExample {
$title4 = id(new PHUIHeaderView()) $title4 = id(new PHUIHeaderView())
->setHeader(pht('With Tags')); ->setHeader(pht('With Tags'));
$tag1 = id(new PhabricatorTagView()) $tag1 = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_RED) ->setBackgroundColor(PHUITagView::COLOR_RED)
->setName('Open'); ->setName('Open');
$tag2 = id(new PhabricatorTagView()) $tag2 = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setBackgroundColor(PhabricatorTagView::COLOR_BLUE) ->setBackgroundColor(PHUITagView::COLOR_BLUE)
->setName('Closed'); ->setName('Closed');
$action1 = new PHUIIconView(); $action1 = new PHUIIconView();

View file

@ -36,8 +36,8 @@ final class PhabricatorHovercardExample extends PhabricatorUIExample {
ManiphestPHIDTypeTask::TYPECONST, ManiphestPHIDTypeTask::TYPECONST,
"Improve Mobile Experience for Phabricator"); "Improve Mobile Experience for Phabricator");
$tag = id(new PhabricatorTagView()) $tag = id(new PHUITagView())
->setType(PhabricatorTagView::TYPE_STATE) ->setType(PHUITagView::TYPE_STATE)
->setName('Closed, Resolved'); ->setName('Closed, Resolved');
$panel = $this->createPanel("Maniphest Hovercard"); $panel = $this->createPanel("Maniphest Hovercard");
$panel->appendChild(id(new PhabricatorHovercardView()) $panel->appendChild(id(new PhabricatorHovercardView())

View file

@ -85,10 +85,10 @@ abstract class PhabricatorRemarkupRuleObject
} }
protected function renderHovertag($name, $href, array $attr = array()) { protected function renderHovertag($name, $href, array $attr = array()) {
return id(new PhabricatorTagView()) return id(new PHUITagView())
->setName($name) ->setName($name)
->setHref($href) ->setHref($href)
->setType(PhabricatorTagView::TYPE_OBJECT) ->setType(PHUITagView::TYPE_OBJECT)
->setPHID(idx($attr, 'phid')) ->setPHID(idx($attr, 'phid'))
->setClosed(idx($attr, 'closed')) ->setClosed(idx($attr, 'closed'))
->render(); ->render();

View file

@ -32,7 +32,7 @@ final class PhabricatorActionHeaderView extends AphrontView {
return $this; return $this;
} }
public function setTag(PhabricatorTagView $tag) { public function setTag(PHUITagView $tag) {
$this->actions[] = $tag; $this->actions[] = $tag;
return $this; return $this;
} }

View file

@ -31,7 +31,7 @@ final class PHUIHeaderView extends AphrontView {
return $this; return $this;
} }
public function addTag(PhabricatorTagView $tag) { public function addTag(PHUITagView $tag) {
$this->tags[] = $tag; $this->tags[] = $tag;
return $this; return $this;
} }

View file

@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorTagView extends AphrontView { final class PHUITagView extends AphrontView {
const TYPE_PERSON = 'person'; const TYPE_PERSON = 'person';
const TYPE_OBJECT = 'object'; const TYPE_OBJECT = 'object';
@ -102,27 +102,27 @@ final class PhabricatorTagView extends AphrontView {
throw new Exception(pht("You must call setType() before render()!")); throw new Exception(pht("You must call setType() before render()!"));
} }
require_celerity_resource('phabricator-tag-view-css'); require_celerity_resource('phui-tag-view-css');
$classes = array( $classes = array(
'phabricator-tag-view', 'phui-tag-view',
'phabricator-tag-type-'.$this->type, 'phui-tag-type-'.$this->type,
); );
if ($this->closed) { if ($this->closed) {
$classes[] = 'phabricator-tag-state-closed'; $classes[] = 'phui-tag-state-closed';
} }
$color = null; $color = null;
if ($this->backgroundColor) { if ($this->backgroundColor) {
$color = 'phabricator-tag-color-'.$this->backgroundColor; $color = 'phui-tag-color-'.$this->backgroundColor;
} }
if ($this->dotColor) { if ($this->dotColor) {
$dotcolor = 'phabricator-tag-color-'.$this->dotColor; $dotcolor = 'phui-tag-color-'.$this->dotColor;
$dot = phutil_tag( $dot = phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-tag-dot '.$dotcolor, 'class' => 'phui-tag-dot '.$dotcolor,
), ),
''); '');
} else { } else {
@ -131,7 +131,7 @@ final class PhabricatorTagView extends AphrontView {
if ($this->icon) { if ($this->icon) {
$icon = $this->icon; $icon = $this->icon;
$classes[] = 'phabricator-tag-icon-view'; $classes[] = 'phui-tag-icon-view';
} else { } else {
$icon = null; $icon = null;
} }
@ -139,19 +139,19 @@ final class PhabricatorTagView extends AphrontView {
$content = phutil_tag( $content = phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-tag-core '.$color, 'class' => 'phui-tag-core '.$color,
), ),
array($dot, $this->name)); array($dot, $this->name));
if ($this->barColor) { if ($this->barColor) {
$barcolor = 'phabricator-tag-color-'.$this->barColor; $barcolor = 'phui-tag-color-'.$this->barColor;
$bar = phutil_tag( $bar = phutil_tag(
'span', 'span',
array( array(
'class' => 'phabricator-tag-bar '.$barcolor, 'class' => 'phui-tag-bar '.$barcolor,
), ),
''); '');
$classes[] = 'phabricator-tag-view-has-bar'; $classes[] = 'phui-tag-view-has-bar';
} else { } else {
$bar = null; $bar = null;
} }

View file

@ -51,7 +51,7 @@ final class PhabricatorHovercardView extends AphrontView {
return $this; return $this;
} }
public function addTag(PhabricatorTagView $tag) { public function addTag(PHUITagView $tag) {
$this->tags[] = $tag; $this->tags[] = $tag;
return $this; return $this;
} }

View file

@ -32,7 +32,7 @@
display: inline-block; display: inline-block;
} }
.phabricator-action-header-icon-item .phabricator-tag-view { .phabricator-action-header-icon-item .phui-tag-view {
margin: 4px 2px 0; margin: 4px 2px 0;
} }
@ -52,7 +52,7 @@
text-shadow: 0 -1px 1px rgba(0,0,0,.7); text-shadow: 0 -1px 1px rgba(0,0,0,.7);
} }
.phabricator-action-header-icon-list .phabricator-tag-view { .phabricator-action-header-icon-list .phui-tag-view {
font-weight: normal; font-weight: normal;
} }

View file

@ -76,7 +76,7 @@ body.device-phone .phui-header-view {
font-size: 13px; font-size: 13px;
} }
.phui-header-tags .phabricator-tag-view { .phui-header-tags .phui-tag-view {
margin-left: 4px; margin-left: 4px;
} }

View file

@ -137,7 +137,7 @@
/* When tags appear in property lists, give them a little more vertical /* When tags appear in property lists, give them a little more vertical
spacing. */ spacing. */
.phui-property-list-view .phabricator-tag-view { .phui-property-list-view .phui-tag-view {
margin: 2px 0; margin: 2px 0;
} }

View file

@ -1,50 +1,50 @@
/** /**
* @provides phabricator-tag-view-css * @provides phui-tag-view-css
*/ */
.phabricator-tag-view { .phui-tag-view {
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
display: inline-block; display: inline-block;
position: relative; position: relative;
} }
a.phabricator-tag-view:hover { a.phui-tag-view:hover {
text-decoration: none; text-decoration: none;
} }
.phabricator-tag-state-closed .phabricator-tag-core { .phui-tag-state-closed .phui-tag-core {
text-decoration: line-through; text-decoration: line-through;
} }
.phabricator-tag-core { .phui-tag-core {
color: inherit; color: inherit;
border: 1px solid transparent; border: 1px solid transparent;
border-radius: 3px; border-radius: 3px;
padding: 0 4px; padding: 0 4px;
} }
.phabricator-tag-type-state .phabricator-tag-core { .phui-tag-type-state .phui-tag-core {
padding: 0 6px; padding: 1px 6px;
} }
.phabricator-tag-view .phui-icon-view { .phui-tag-view .phui-icon-view {
position: absolute; position: absolute;
display: inline-block; display: inline-block;
top: 1px; top: 1px;
left: 5px; left: 5px;
} }
.phabricator-tag-icon-view .phabricator-tag-core { .phui-tag-icon-view .phui-tag-core {
padding-left: 22px; padding-left: 22px;
} }
.phabricator-tag-view-has-bar .phabricator-tag-core { .phui-tag-view-has-bar .phui-tag-core {
border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0;
border-width: 1px 1px 1px 0; border-width: 1px 1px 1px 0;
} }
.phabricator-tag-dot { .phui-tag-dot {
position: relative; position: relative;
display: inline-block; display: inline-block;
width: 6px; width: 6px;
@ -56,93 +56,93 @@ a.phabricator-tag-view:hover {
box-shadow: 0 0 2px rgba(255, 255, 255, 0.8); box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
} }
.phabricator-tag-type-state { .phui-tag-type-state {
color: #ffffff; color: #ffffff;
text-shadow: rgba(100, 100, 100, 0.40) 0px -1px 1px; text-shadow: rgba(100, 100, 100, 0.40) 0px -1px 1px;
} }
.phabricator-tag-type-object, .phui-tag-type-object,
a.phabricator-tag-type-object, a.phui-tag-type-object,
a.phabricator-tag-type-object:link { a.phui-tag-type-object:link {
color: #000000; color: #000000;
} }
.phabricator-tag-type-person { .phui-tag-type-person {
white-space: nowrap; white-space: nowrap;
color: #19558d; color: #19558d;
} }
.phabricator-tag-color-red { .phui-tag-color-red {
background-color: {$red}; background-color: {$red};
border-color: {$red}; border-color: {$red};
} }
.phabricator-tag-color-orange { .phui-tag-color-orange {
background-color: {$orange}; background-color: {$orange};
border-color: {$orange}; border-color: {$orange};
} }
.phabricator-tag-color-yellow { .phui-tag-color-yellow {
background-color: {$yellow}; background-color: {$yellow};
border-color: {$yellow}; border-color: {$yellow};
} }
.phabricator-tag-color-blue { .phui-tag-color-blue {
background-color: {$blue}; background-color: {$blue};
border-color: {$blue}; border-color: {$blue};
} }
.phabricator-tag-color-indigo { .phui-tag-color-indigo {
background-color: {$indigo}; background-color: {$indigo};
border-color: {$indigo}; border-color: {$indigo};
} }
.phabricator-tag-color-green { .phui-tag-color-green {
background-color: {$green}; background-color: {$green};
border-color: {$green}; border-color: {$green};
} }
.phabricator-tag-color-violet { .phui-tag-color-violet {
background-color: {$violet}; background-color: {$violet};
border-color: {$violet}; border-color: {$violet};
} }
.phabricator-tag-color-black { .phui-tag-color-black {
background-color: #333333; background-color: #333333;
border-color: #333333; border-color: #333333;
} }
.phabricator-tag-color-grey { .phui-tag-color-grey {
background-color: {$lightgreytext}; background-color: {$lightgreytext};
border-color: {$lightgreytext}; border-color: {$lightgreytext};
} }
.phabricator-tag-color-white { .phui-tag-color-white {
background-color: #f7f7f7; background-color: #f7f7f7;
border-color: #f7f7f7; border-color: #f7f7f7;
} }
.phabricator-tag-color-object { .phui-tag-color-object {
background-color: #e7e7e7; background-color: #e7e7e7;
border-color: #e7e7e7; border-color: #e7e7e7;
} }
.phabricator-tag-color-person { .phui-tag-color-person {
background-color: #f1f7ff; background-color: #f1f7ff;
border-color: #f1f7ff; border-color: #f1f7ff;
} }
a.phabricator-tag-view:hover a.phui-tag-view:hover
.phabricator-tag-core.phabricator-tag-color-person { .phui-tag-core.phui-tag-color-person {
border-color: #d9ebfd; border-color: #d9ebfd;
} }
a.phabricator-tag-view:hover a.phui-tag-view:hover
.phabricator-tag-core.phabricator-tag-color-object { .phui-tag-core.phui-tag-color-object {
border-color: #d7d7d7; border-color: #d7d7d7;
} }
.phabricator-tag-bar { .phui-tag-bar {
padding-left: 4px; padding-left: 4px;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;