mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
Move FontIcon calls to Icon
Summary: Normalizes all `setFontIcon` calls to `setIcon`. Test Plan: UIExamples, Almanac, Apps list, etc. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, hach-que, yelirekim Differential Revision: https://secure.phabricator.com/D15129
This commit is contained in:
parent
30473549ac
commit
fe5cd4ca2c
144 changed files with 158 additions and 158 deletions
|
@ -14,7 +14,7 @@ final class PhabricatorAlmanacApplication extends PhabricatorApplication {
|
|||
return pht('Service Directory');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-server';
|
||||
}
|
||||
|
||||
|
|
|
@ -16,21 +16,21 @@ final class AlmanacConsoleController extends AlmanacController {
|
|||
id(new PHUIObjectItemView())
|
||||
->setHeader(pht('Services'))
|
||||
->setHref($this->getApplicationURI('service/'))
|
||||
->setFontIcon('fa-plug')
|
||||
->setIcon('fa-plug')
|
||||
->addAttribute(pht('Manage Almanac services.')));
|
||||
|
||||
$menu->addItem(
|
||||
id(new PHUIObjectItemView())
|
||||
->setHeader(pht('Devices'))
|
||||
->setHref($this->getApplicationURI('device/'))
|
||||
->setFontIcon('fa-server')
|
||||
->setIcon('fa-server')
|
||||
->addAttribute(pht('Manage Almanac devices.')));
|
||||
|
||||
$menu->addItem(
|
||||
id(new PHUIObjectItemView())
|
||||
->setHeader(pht('Networks'))
|
||||
->setHref($this->getApplicationURI('network/'))
|
||||
->setFontIcon('fa-globe')
|
||||
->setIcon('fa-globe')
|
||||
->addAttribute(pht('Manage Almanac networks.')));
|
||||
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
|
|
|
@ -6,7 +6,7 @@ final class PhabricatorAuditApplication extends PhabricatorApplication {
|
|||
return '/audit/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-check-circle-o';
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ final class PhabricatorAuthApplication extends PhabricatorApplication {
|
|||
return '/auth/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-key';
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorBadgesApplication extends PhabricatorApplication {
|
|||
return pht('Achievements and Notority');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-trophy';
|
||||
}
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@ final class PhabricatorBadgesSearchEngine
|
|||
->setHref('/badges/create/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -155,7 +155,7 @@ abstract class PhabricatorApplication
|
|||
return null;
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-puzzle-piece';
|
||||
}
|
||||
|
||||
|
|
|
@ -352,7 +352,7 @@ abstract class PhabricatorController extends AphrontController {
|
|||
|
||||
$application = $this->getCurrentApplication();
|
||||
if ($application) {
|
||||
$icon = $application->getFontIcon();
|
||||
$icon = $application->getIcon();
|
||||
if (!$icon) {
|
||||
$icon = 'fa-puzzle';
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ final class PhabricatorCalendarApplication extends PhabricatorApplication {
|
|||
return '/calendar/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-calendar';
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorChatLogApplication extends PhabricatorApplication {
|
|||
return pht('(Deprecated)');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-coffee';
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ final class PhabricatorConduitApplication extends PhabricatorApplication {
|
|||
return '/conduit/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-tty';
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ final class PhabricatorConfigApplication extends PhabricatorApplication {
|
|||
return '/config/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-sliders';
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ final class PhabricatorConfigListController
|
|||
->setHeader($group->getName())
|
||||
->setHref('/config/group/'.$group->getKey().'/')
|
||||
->addAttribute($group->getDescription())
|
||||
->setFontIcon($group->getFontIcon());
|
||||
->setIcon($group->getIcon());
|
||||
$list->addItem($item);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ final class PhabricatorConfigPHIDModule extends PhabricatorConfigModule {
|
|||
$app = PhabricatorApplication::getByClass($class_name);
|
||||
$app_name = $app->getName();
|
||||
|
||||
$icon = $app->getFontIcon();
|
||||
$icon = $app->getIcon();
|
||||
if ($icon) {
|
||||
$app_icon = id(new PHUIIconView())->setIcon($icon);
|
||||
} else {
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorAWSConfigOptions
|
|||
return pht('Configure integration with AWS (EC2, SES, S3, etc).');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-server';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorAccessLogConfigOptions
|
|||
return pht('Configure the access logs, which log HTTP/SSH requests.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-list';
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ abstract class PhabricatorApplicationConfigOptions extends Phobject {
|
|||
abstract public function getGroup();
|
||||
abstract public function getOptions();
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-sliders';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorAuthenticationConfigOptions
|
|||
return pht('Options relating to authentication.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-key';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorClusterConfigOptions
|
|||
return pht('Configure Phabricator to run on a cluster of hosts.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-sitemap';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorCoreConfigOptions
|
|||
return pht('Configure core options, including URIs.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-bullseye';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorDeveloperConfigOptions
|
|||
return pht('Options for Phabricator developers, including debugging.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-bug';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorExtendingPhabricatorConfigOptions
|
|||
return pht('Make Phabricator even cooler!');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-rocket';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorMailgunConfigOptions
|
|||
return pht('Configure Mailgun integration.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-send-o';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorMetaMTAConfigOptions
|
|||
return pht('Configure Mail.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-send';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorMySQLConfigOptions
|
|||
return pht('Database configuration.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-database';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorNotificationConfigOptions
|
|||
return pht('Configure real-time notifications.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-bell';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorPHDConfigOptions
|
|||
return pht('Options relating to PHD (daemons).');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-pied-piper-alt';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorPHPMailerConfigOptions
|
|||
return pht('Configure PHPMailer.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-send-o';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorPhurlConfigOptions
|
|||
return pht('Options for Phurl.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-link';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorRecaptchaConfigOptions
|
|||
return pht('Configure Recaptcha captchas.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-recycle';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorSMSConfigOptions
|
|||
return pht('Configure SMS.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-mobile';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorSecurityConfigOptions
|
|||
return pht('Security options.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-lock';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorSendGridConfigOptions
|
|||
return pht('Configure SendGrid integration.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-send-o';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorSyntaxHighlightingConfigOptions
|
|||
return pht('Options relating to syntax highlighting source code.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-code';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorTranslationsConfigOptions
|
|||
return pht('Options relating to translations.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-globe';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorUIConfigOptions
|
|||
return pht('Configure the Phabricator UI, including colors.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-magnet';
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorConpherenceApplication extends PhabricatorApplication {
|
|||
return pht('Chat with Others');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-comments';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class ConpherenceConfigOptions
|
|||
return pht('Configure Conpherence messaging.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-comments';
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ final class PhabricatorCountdownApplication extends PhabricatorApplication {
|
|||
return '/countdown/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-rocket';
|
||||
}
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ final class PhabricatorCountdownSearchEngine
|
|||
->setHref('/countdown/create/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -18,7 +18,7 @@ final class PhabricatorDaemonsApplication extends PhabricatorApplication {
|
|||
return "\xE2\x98\xAF";
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-pied-piper-alt';
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorDashboardApplication extends PhabricatorApplication {
|
|||
return pht('Create Custom Pages');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-dashboard';
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ final class PhabricatorDashboardPanelListController
|
|||
->setHref('/dashboard/panel/create/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -181,7 +181,7 @@ final class PhabricatorDashboardSearchEngine
|
|||
->setHref('/dashboard/create/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorDifferentialApplication extends PhabricatorApplication {
|
|||
return pht('Review Code');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-cog';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorDifferentialConfigOptions
|
|||
return pht('Configure Differential code review.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-cog';
|
||||
}
|
||||
|
||||
|
|
|
@ -348,7 +348,7 @@ final class DifferentialRevisionSearchEngine
|
|||
->setHref('/differential/diff/create/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorDiffusionApplication extends PhabricatorApplication {
|
|||
return '/diffusion/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-code';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorDiffusionConfigOptions
|
|||
return pht('Configure Diffusion repository browsing.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-code';
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ final class PhabricatorDivinerApplication extends PhabricatorApplication {
|
|||
return '/diviner/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-sun-o';
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorDoorkeeperApplication extends PhabricatorApplication {
|
|||
return pht('Doorkeeper');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-recycle';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorAsanaConfigOptions
|
|||
return pht('Asana integration options.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-exchange';
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorDrydockApplication extends PhabricatorApplication {
|
|||
return pht('Allocate Software Resources');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-truck';
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ final class DrydockConsoleController extends DrydockController {
|
|||
$menu->addItem(
|
||||
id(new PHUIObjectItemView())
|
||||
->setHeader(pht('Blueprints'))
|
||||
->setFontIcon('fa-map-o')
|
||||
->setIcon('fa-map-o')
|
||||
->setHref($this->getApplicationURI('blueprint/'))
|
||||
->addAttribute(
|
||||
pht(
|
||||
|
@ -41,7 +41,7 @@ final class DrydockConsoleController extends DrydockController {
|
|||
$menu->addItem(
|
||||
id(new PHUIObjectItemView())
|
||||
->setHeader(pht('Resources'))
|
||||
->setFontIcon('fa-map')
|
||||
->setIcon('fa-map')
|
||||
->setHref($this->getApplicationURI('resource/'))
|
||||
->addAttribute(
|
||||
pht('View and manage resources Drydock has built, like hosts.')));
|
||||
|
@ -49,14 +49,14 @@ final class DrydockConsoleController extends DrydockController {
|
|||
$menu->addItem(
|
||||
id(new PHUIObjectItemView())
|
||||
->setHeader(pht('Leases'))
|
||||
->setFontIcon('fa-link')
|
||||
->setIcon('fa-link')
|
||||
->setHref($this->getApplicationURI('lease/'))
|
||||
->addAttribute(pht('Manage leases on resources.')));
|
||||
|
||||
$menu->addItem(
|
||||
id(new PHUIObjectItemView())
|
||||
->setHeader(pht('Repository Operations'))
|
||||
->setFontIcon('fa-fighter-jet')
|
||||
->setIcon('fa-fighter-jet')
|
||||
->setHref($this->getApplicationURI('operation/'))
|
||||
->addAttribute(pht('Review the repository operation queue.')));
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorFactApplication extends PhabricatorApplication {
|
|||
return '/fact/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-line-chart';
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorFeedApplication extends PhabricatorApplication {
|
|||
return pht('Review Recent Activity');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-newspaper-o';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorFeedConfigOptions
|
|||
return pht('Feed options.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-newspaper-o';
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorFilesApplication extends PhabricatorApplication {
|
|||
return pht('Store and Share Files');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-file';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorFilesConfigOptions
|
|||
return pht('Configure files and file storage.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-file';
|
||||
}
|
||||
|
||||
|
|
|
@ -185,7 +185,7 @@ final class PhabricatorFileSearchEngine
|
|||
->setHref('/file/upload/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorFlagsApplication extends PhabricatorApplication {
|
|||
return '/flag/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-flag';
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorFundApplication extends PhabricatorApplication {
|
|||
return pht('Donate');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-heart';
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorHarbormasterApplication extends PhabricatorApplication {
|
|||
return pht('Build/CI');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-ship';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorHarbormasterConfigOptions
|
|||
return pht('Configure Harbormaster build engine.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-ship';
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ final class PhabricatorHeraldApplication extends PhabricatorApplication {
|
|||
return '/herald/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-bullhorn';
|
||||
}
|
||||
|
||||
|
|
|
@ -218,7 +218,7 @@ final class HeraldRuleSearchEngine extends PhabricatorApplicationSearchEngine {
|
|||
->setHref('/herald/create/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -16,7 +16,7 @@ final class PhabricatorHomeApplication extends PhabricatorApplication {
|
|||
return pht('Command Center');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-home';
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorLegalpadApplication extends PhabricatorApplication {
|
|||
return pht('Agreements and Signatures');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-gavel';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorLegalpadConfigOptions
|
|||
return pht('Configure Legalpad.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-gavel';
|
||||
}
|
||||
|
||||
|
|
|
@ -223,7 +223,7 @@ final class LegalpadDocumentSearchEngine
|
|||
->setHref('/legalpad/create/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorMacroApplication extends PhabricatorApplication {
|
|||
return pht('Image Macros and Memes');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-file-image-o';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorMacroConfigOptions
|
|||
return pht('Configure Macro.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-file-image-o';
|
||||
}
|
||||
|
||||
|
|
|
@ -54,12 +54,12 @@ final class PhabricatorIconRemarkupRule extends PhutilRemarkupRule {
|
|||
|
||||
static $icon_names;
|
||||
if (!$icon_names) {
|
||||
$icon_names = array_fuse(PHUIIconView::getFontIcons());
|
||||
$icon_names = array_fuse(PHUIIconView::getIcons());
|
||||
}
|
||||
|
||||
static $color_names;
|
||||
if (!$color_names) {
|
||||
$color_names = array_fuse(PHUIIconView::getFontIconColors());
|
||||
$color_names = array_fuse(PHUIIconView::getIconColors());
|
||||
}
|
||||
|
||||
if (empty($icon_names['fa-'.$icon])) {
|
||||
|
|
|
@ -196,7 +196,7 @@ final class PhabricatorMacroSearchEngine
|
|||
->setHref('/macro/create/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorManiphestApplication extends PhabricatorApplication {
|
|||
return '/maniphest/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-anchor';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorManiphestConfigOptions
|
|||
return pht('Configure Maniphest.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-anchor';
|
||||
}
|
||||
|
||||
|
|
|
@ -392,7 +392,7 @@ final class ManiphestTaskSearchEngine
|
|||
->setHref('/maniphest/task/edit/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -24,7 +24,7 @@ final class PhabricatorApplicationsApplication extends PhabricatorApplication {
|
|||
return pht('Explore More Applications');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-globe';
|
||||
}
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ final class PhabricatorAppSearchEngine
|
|||
$list = new PHUIObjectItemListView();
|
||||
|
||||
foreach ($applications as $application) {
|
||||
$icon = $application->getFontIcon();
|
||||
$icon = $application->getIcon();
|
||||
if (!$icon) {
|
||||
$icon = 'application';
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ final class PhabricatorApplicationDatasource
|
|||
continue;
|
||||
}
|
||||
$name = $application->getName().' '.$application->getShortDescription();
|
||||
$img = 'phui-font-fa phui-icon-view '.$application->getFontIcon();
|
||||
$img = 'phui-font-fa phui-icon-view '.$application->getIcon();
|
||||
$results[] = id(new PhabricatorTypeaheadResult())
|
||||
->setName($name)
|
||||
->setURI($uri)
|
||||
|
|
|
@ -113,7 +113,7 @@ final class PhabricatorApplicationLaunchView extends AphrontTagView {
|
|||
if ($application->getIconURI()) {
|
||||
$styles[] = 'background-image: url('.$application->getIconURI().')';
|
||||
} else {
|
||||
$classes[] = $application->getFontIcon();
|
||||
$classes[] = $application->getIcon();
|
||||
$classes[] = 'phui-icon-view';
|
||||
$classes[] = 'phui-font-fa';
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ final class PhabricatorMetaMTAApplication extends PhabricatorApplication {
|
|||
return '/mail/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-send';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorMultimeterApplication
|
|||
return '/multimeter/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-motorcycle';
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorNotificationsApplication extends PhabricatorApplication {
|
|||
return pht('Real-Time Updates and Alerts');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-bell';
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ final class PhabricatorNuanceApplication extends PhabricatorApplication {
|
|||
return pht('Nuance');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-fax';
|
||||
}
|
||||
|
||||
|
|
|
@ -16,14 +16,14 @@ final class NuanceConsoleController extends NuanceController {
|
|||
id(new PHUIObjectItemView())
|
||||
->setHeader(pht('Queues'))
|
||||
->setHref($this->getApplicationURI('queue/'))
|
||||
->setFontIcon('fa-align-left')
|
||||
->setIcon('fa-align-left')
|
||||
->addAttribute(pht('Manage Nuance queues.')));
|
||||
|
||||
$menu->addItem(
|
||||
id(new PHUIObjectItemView())
|
||||
->setHeader(pht('Sources'))
|
||||
->setHref($this->getApplicationURI('source/'))
|
||||
->setFontIcon('fa-filter')
|
||||
->setIcon('fa-filter')
|
||||
->addAttribute(pht('Manage Nuance sources.')));
|
||||
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorOAuthServerApplication extends PhabricatorApplication {
|
|||
return pht('OAuth Login Provider');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-hotel';
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ final class PhabricatorOwnersApplication extends PhabricatorApplication {
|
|||
return '/owners/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-gift';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorOwnersConfigOptions
|
|||
return pht('Configure Owners.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-gift';
|
||||
}
|
||||
|
||||
|
|
|
@ -162,7 +162,7 @@ final class PhabricatorOwnersPackageSearchEngine
|
|||
->setHref('/owners/edit/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorPassphraseApplication extends PhabricatorApplication {
|
|||
return pht('Credential Store');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-user-secret';
|
||||
}
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ final class PassphraseCredentialSearchEngine
|
|||
->setHref('/passphrase/create/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -10,7 +10,7 @@ final class PhabricatorPasteApplication extends PhabricatorApplication {
|
|||
return '/paste/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-paste';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorPasteConfigOptions
|
|||
return pht('Configure Paste.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-paste';
|
||||
}
|
||||
|
||||
|
|
|
@ -210,7 +210,7 @@ final class PhabricatorPasteSearchEngine
|
|||
->setHref('/paste/create/')
|
||||
->setColor(PHUIButtonView::GREEN);
|
||||
|
||||
$icon = $this->getApplication()->getFontIcon();
|
||||
$icon = $this->getApplication()->getIcon();
|
||||
$app_name = $this->getApplication()->getName();
|
||||
$view = id(new PHUIBigInfoView())
|
||||
->setIcon($icon)
|
||||
|
|
|
@ -18,7 +18,7 @@ final class PhabricatorPeopleApplication extends PhabricatorApplication {
|
|||
return "\xE2\x99\x9F";
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-users';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ final class PhabricatorUserConfigOptions
|
|||
return pht('User profiles configuration.');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-users';
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ final class PhabricatorPhameApplication extends PhabricatorApplication {
|
|||
return '/phame/';
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-star';
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ abstract class PhabricatorPHIDType extends Phobject {
|
|||
$application_class = $this->getPHIDTypeApplicationClass();
|
||||
if ($application_class) {
|
||||
$application = newv($application_class, array());
|
||||
return $application->getFontIcon();
|
||||
return $application->getIcon();
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
|
@ -14,7 +14,7 @@ final class PhabricatorPhluxApplication extends PhabricatorApplication {
|
|||
return pht('Key/Value Configuration Store');
|
||||
}
|
||||
|
||||
public function getFontIcon() {
|
||||
public function getIcon() {
|
||||
return 'fa-copy';
|
||||
}
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue