1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Add FontIcon bridge to AppIcons

Summary: Select a similar or better FontAwesome icon to represent each application

Test Plan: Visual inspection

Reviewers: epriestley, btrahan

Subscribers: hach-que, Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11489
This commit is contained in:
Chad Little 2015-01-24 23:41:43 -08:00
parent e0289070db
commit 5d8bb61dde
57 changed files with 229 additions and 1 deletions

View file

@ -18,6 +18,10 @@ final class PhabricatorAlmanacApplication extends PhabricatorApplication {
return 'almanac'; return 'almanac';
} }
public function getFontIcon() {
return 'fa-server';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x98\x82"; return "\xE2\x98\x82";
} }

View file

@ -10,6 +10,10 @@ final class PhabricatorAuditApplication extends PhabricatorApplication {
return 'audit'; return 'audit';
} }
public function getFontIcon() {
return 'fa-check-circle-o';
}
public function getName() { public function getName() {
return pht('Audit'); return pht('Audit');
} }

View file

@ -14,6 +14,10 @@ final class PhabricatorAuthApplication extends PhabricatorApplication {
return 'authentication'; return 'authentication';
} }
public function getFontIcon() {
return 'fa-key';
}
public function isPinnedByDefault(PhabricatorUser $viewer) { public function isPinnedByDefault(PhabricatorUser $viewer) {
return $viewer->getIsAdmin(); return $viewer->getIsAdmin();
} }

View file

@ -157,6 +157,10 @@ abstract class PhabricatorApplication implements PhabricatorPolicyInterface {
return 'application'; return 'application';
} }
public function getFontIcon() {
return 'fa-puzzle-piece';
}
public function getApplicationOrder() { public function getApplicationOrder() {
return PHP_INT_MAX; return PHP_INT_MAX;
} }

View file

@ -22,6 +22,10 @@ final class PhabricatorCalendarApplication extends PhabricatorApplication {
return 'calendar'; return 'calendar';
} }
public function getFontIcon() {
return 'fa-calendar';
}
public function getTitleGlyph() { public function getTitleGlyph() {
// Unicode has a calendar character but it's in some distant code plane, // Unicode has a calendar character but it's in some distant code plane,
// use "keyboard" since it looks vaguely similar. // use "keyboard" since it looks vaguely similar.

View file

@ -14,6 +14,10 @@ final class PhabricatorCelerityApplication extends PhabricatorApplication {
return true; return true;
} }
public function getFontIcon() {
return 'fa-leaf';
}
public function getRoutes() { public function getRoutes() {
$extensions = CelerityResourceController::getSupportedResourceTypes(); $extensions = CelerityResourceController::getSupportedResourceTypes();
$extensions = array_keys($extensions); $extensions = array_keys($extensions);

View file

@ -18,6 +18,10 @@ final class PhabricatorChatLogApplication extends PhabricatorApplication {
return 'chatlog'; return 'chatlog';
} }
public function getFontIcon() {
return 'fa-coffee';
}
public function isPrototype() { public function isPrototype() {
return true; return true;
} }

View file

@ -10,6 +10,10 @@ final class PhabricatorConduitApplication extends PhabricatorApplication {
return 'conduit'; return 'conduit';
} }
public function getFontIcon() {
return 'fa-tty';
}
public function canUninstall() { public function canUninstall() {
return false; return false;
} }

View file

@ -10,6 +10,10 @@ final class PhabricatorConfigApplication extends PhabricatorApplication {
return 'setup'; return 'setup';
} }
public function getFontIcon() {
return 'fa-wrench';
}
public function isPinnedByDefault(PhabricatorUser $viewer) { public function isPinnedByDefault(PhabricatorUser $viewer) {
return $viewer->getIsAdmin(); return $viewer->getIsAdmin();
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorConpherenceApplication extends PhabricatorApplication {
return 'conpherence'; return 'conpherence';
} }
public function getFontIcon() {
return 'fa-comments';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x9C\x86"; return "\xE2\x9C\x86";
} }

View file

@ -10,6 +10,10 @@ final class PhabricatorCountdownApplication extends PhabricatorApplication {
return 'countdown'; return 'countdown';
} }
public function getFontIcon() {
return 'fa-birthday-cake';
}
public function getName() { public function getName() {
return pht('Countdown'); return pht('Countdown');
} }

View file

@ -22,6 +22,10 @@ final class PhabricatorDaemonsApplication extends PhabricatorApplication {
return 'daemon'; return 'daemon';
} }
public function getFontIcon() {
return 'fa-pied-piper-alt';
}
public function getApplicationGroup() { public function getApplicationGroup() {
return self::GROUP_ADMIN; return self::GROUP_ADMIN;
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorDashboardApplication extends PhabricatorApplication {
return 'fancyhome'; return 'fancyhome';
} }
public function getFontIcon() {
return 'fa-dashboard';
}
public function getRoutes() { public function getRoutes() {
return array( return array(
'/W(?P<id>\d+)' => 'PhabricatorDashboardPanelViewController', '/W(?P<id>\d+)' => 'PhabricatorDashboardPanelViewController',

View file

@ -18,6 +18,10 @@ final class PhabricatorDifferentialApplication extends PhabricatorApplication {
return 'differential'; return 'differential';
} }
public function getFontIcon() {
return 'fa-cog';
}
public function isPinnedByDefault(PhabricatorUser $viewer) { public function isPinnedByDefault(PhabricatorUser $viewer) {
return true; return true;
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorDiffusionApplication extends PhabricatorApplication {
return 'diffusion'; return 'diffusion';
} }
public function getFontIcon() {
return 'fa-code';
}
public function isPinnedByDefault(PhabricatorUser $viewer) { public function isPinnedByDefault(PhabricatorUser $viewer) {
return true; return true;
} }

View file

@ -10,6 +10,10 @@ final class PhabricatorDivinerApplication extends PhabricatorApplication {
return 'diviner'; return 'diviner';
} }
public function getFontIcon() {
return 'fa-cubes';
}
public function getName() { public function getName() {
return pht('Diviner'); return pht('Diviner');
} }

View file

@ -14,6 +14,10 @@ final class PhabricatorDoorkeeperApplication extends PhabricatorApplication {
return pht('Doorkeeper'); return pht('Doorkeeper');
} }
public function getFontIcon() {
return 'fa-recycle';
}
public function getShortDescription() { public function getShortDescription() {
return pht('Connect to Other Software'); return pht('Connect to Other Software');
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorDrydockApplication extends PhabricatorApplication {
return 'drydock'; return 'drydock';
} }
public function getFontIcon() {
return 'fa-truck';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x98\x82"; return "\xE2\x98\x82";
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorFactApplication extends PhabricatorApplication {
return 'fact'; return 'fact';
} }
public function getFontIcon() {
return 'fa-area-chart';
}
public function getApplicationGroup() { public function getApplicationGroup() {
return self::GROUP_UTILITIES; return self::GROUP_UTILITIES;
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorFeedApplication extends PhabricatorApplication {
return 'feed'; return 'feed';
} }
public function getFontIcon() {
return 'fa-newspaper-o';
}
public function canUninstall() { public function canUninstall() {
return false; return false;
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorFilesApplication extends PhabricatorApplication {
return 'files'; return 'files';
} }
public function getFontIcon() {
return 'fa-file';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x87\xAA"; return "\xE2\x87\xAA";
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorFlagsApplication extends PhabricatorApplication {
return 'flags'; return 'flags';
} }
public function getFontIcon() {
return 'fa-flag';
}
public function getEventListeners() { public function getEventListeners() {
return array( return array(
new PhabricatorFlagsUIEventListener(), new PhabricatorFlagsUIEventListener(),

View file

@ -18,6 +18,10 @@ final class PhabricatorFundApplication extends PhabricatorApplication {
return 'phund'; return 'phund';
} }
public function getFontIcon() {
return 'fa-heart';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x99\xA5"; return "\xE2\x99\xA5";
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorHarbormasterApplication extends PhabricatorApplication {
return 'harbormaster'; return 'harbormaster';
} }
public function getFontIcon() {
return 'fa-ship';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x99\xBB"; return "\xE2\x99\xBB";
} }

View file

@ -10,6 +10,10 @@ final class PhabricatorHeraldApplication extends PhabricatorApplication {
return 'herald'; return 'herald';
} }
public function getFontIcon() {
return 'fa-bell';
}
public function getName() { public function getName() {
return pht('Herald'); return pht('Herald');
} }

View file

@ -20,6 +20,10 @@ final class PhabricatorHomeApplication extends PhabricatorApplication {
return 'home'; return 'home';
} }
public function getFontIcon() {
return 'fa-home';
}
public function getRoutes() { public function getRoutes() {
return array( return array(
'/' => 'PhabricatorHomeMainController', '/' => 'PhabricatorHomeMainController',

View file

@ -18,6 +18,10 @@ final class PhabricatorLegalpadApplication extends PhabricatorApplication {
return 'legalpad'; return 'legalpad';
} }
public function getFontIcon() {
return 'fa-gavel';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xC2\xA9"; return "\xC2\xA9";
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorMacroApplication extends PhabricatorApplication {
return 'macro'; return 'macro';
} }
public function getFontIcon() {
return 'fa-smile';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x9A\x98"; return "\xE2\x9A\x98";
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorMailingListsApplication extends PhabricatorApplication {
return 'mail'; return 'mail';
} }
public function getFontIcon() {
return 'fa-mail-reply-all';
}
public function getApplicationGroup() { public function getApplicationGroup() {
return self::GROUP_ADMIN; return self::GROUP_ADMIN;
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorManiphestApplication extends PhabricatorApplication {
return 'maniphest'; return 'maniphest';
} }
public function getFontIcon() {
return 'fa-anchor';
}
public function isPinnedByDefault(PhabricatorUser $viewer) { public function isPinnedByDefault(PhabricatorUser $viewer) {
return true; return true;
} }

View file

@ -28,6 +28,10 @@ final class PhabricatorApplicationsApplication extends PhabricatorApplication {
return 'application'; return 'application';
} }
public function getFontIcon() {
return 'fa-globe';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE0\xBC\x84"; return "\xE0\xBC\x84";
} }

View file

@ -10,6 +10,10 @@ final class PhabricatorMetaMTAApplication extends PhabricatorApplication {
return 'metamta'; return 'metamta';
} }
public function getFontIcon() {
return 'fa-send';
}
public function getShortDescription() { public function getShortDescription() {
return pht('Delivers Mail'); return pht('Delivers Mail');
} }

View file

@ -14,6 +14,10 @@ final class PhabricatorNotificationsApplication extends PhabricatorApplication {
return pht('Real-Time Updates and Alerts'); return pht('Real-Time Updates and Alerts');
} }
public function getFontIcon() {
return 'fa-bell';
}
public function getRoutes() { public function getRoutes() {
return array( return array(
'/notification/' => array( '/notification/' => array(

View file

@ -10,6 +10,10 @@ final class PhabricatorNuanceApplication extends PhabricatorApplication {
return 'nuance'; return 'nuance';
} }
public function getFontIcon() {
return 'fa-fax';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x98\x8E"; return "\xE2\x98\x8E";
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorOAuthServerApplication extends PhabricatorApplication {
return 'oauthserver'; return 'oauthserver';
} }
public function getFontIcon() {
return 'fa-hotel';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x99\x86"; return "\xE2\x99\x86";
} }

View file

@ -14,6 +14,10 @@ final class PhabricatorOwnersApplication extends PhabricatorApplication {
return 'owners'; return 'owners';
} }
public function getFontIcon() {
return 'fa-gift';
}
public function getShortDescription() { public function getShortDescription() {
return pht('Own Source Code'); return pht('Own Source Code');
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorPassphraseApplication extends PhabricatorApplication {
return 'passphrase'; return 'passphrase';
} }
public function getFontIcon() {
return 'fa-user-secret';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x97\x88"; return "\xE2\x97\x88";
} }

View file

@ -14,6 +14,10 @@ final class PhabricatorPasteApplication extends PhabricatorApplication {
return 'paste'; return 'paste';
} }
public function getFontIcon() {
return 'fa-paste';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x9C\x8E"; return "\xE2\x9C\x8E";
} }

View file

@ -22,6 +22,10 @@ final class PhabricatorPeopleApplication extends PhabricatorApplication {
return 'people'; return 'people';
} }
public function getFontIcon() {
return 'fa-users';
}
public function isPinnedByDefault(PhabricatorUser $viewer) { public function isPinnedByDefault(PhabricatorUser $viewer) {
return $viewer->getIsAdmin(); return $viewer->getIsAdmin();
} }

View file

@ -14,6 +14,10 @@ final class PhabricatorPhameApplication extends PhabricatorApplication {
return 'phame'; return 'phame';
} }
public function getFontIcon() {
return 'fa-star';
}
public function getShortDescription() { public function getShortDescription() {
return 'Blog'; return 'Blog';
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorPhluxApplication extends PhabricatorApplication {
return 'phlux'; return 'phlux';
} }
public function getFontIcon() {
return 'fa-copy';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x98\xBD"; return "\xE2\x98\xBD";
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorPholioApplication extends PhabricatorApplication {
return 'pholio'; return 'pholio';
} }
public function getFontIcon() {
return 'fa-camera-retro';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x9D\xA6"; return "\xE2\x9D\xA6";
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorPhortuneApplication extends PhabricatorApplication {
return 'phortune'; return 'phortune';
} }
public function getFontIcon() {
return 'fa-diamond';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x9C\x98"; return "\xE2\x9C\x98";
} }

View file

@ -11,7 +11,11 @@ final class PhabricatorPHPASTApplication extends PhabricatorApplication {
} }
public function getIconName() { public function getIconName() {
return 'phpast'; return 'fa-ambulance';
}
public function getFontIcon() {
return 'fa-check-circle-o';
} }
public function getShortDescription() { public function getShortDescription() {

View file

@ -18,6 +18,10 @@ final class PhabricatorPhragmentApplication extends PhabricatorApplication {
return 'phragment'; return 'phragment';
} }
public function getFontIcon() {
return 'fa-floppy-o';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x26\xB6"; return "\xE2\x26\xB6";
} }

View file

@ -22,6 +22,10 @@ final class PhabricatorPhrequentApplication extends PhabricatorApplication {
return 'phrequent'; return 'phrequent';
} }
public function getFontIcon() {
return 'fa-clock-o';
}
public function getApplicationGroup() { public function getApplicationGroup() {
return self::GROUP_UTILITIES; return self::GROUP_UTILITIES;
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorPhrictionApplication extends PhabricatorApplication {
return 'phriction'; return 'phriction';
} }
public function getFontIcon() {
return 'fa-book';
}
public function isPinnedByDefault(PhabricatorUser $viewer) { public function isPinnedByDefault(PhabricatorUser $viewer) {
return true; return true;
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorPonderApplication extends PhabricatorApplication {
return 'ponder'; return 'ponder';
} }
public function getFontIcon() {
return 'fa-university';
}
public function getFactObjectsForAnalysis() { public function getFactObjectsForAnalysis() {
return array( return array(
new PonderQuestion(), new PonderQuestion(),

View file

@ -22,6 +22,10 @@ final class PhabricatorProjectApplication extends PhabricatorApplication {
return 'projects'; return 'projects';
} }
public function getFontIcon() {
return 'fa-briefcase';
}
public function getFlavorText() { public function getFlavorText() {
return pht('Group stuff into big piles.'); return pht('Group stuff into big piles.');
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorReleephApplication extends PhabricatorApplication {
return 'releeph'; return 'releeph';
} }
public function getFontIcon() {
return 'fa-flag-checkered';
}
public function isPrototype() { public function isPrototype() {
return true; return true;
} }

View file

@ -10,6 +10,10 @@ final class PhabricatorRepositoriesApplication extends PhabricatorApplication {
return 'repositories'; return 'repositories';
} }
public function getFontIcon() {
return 'fa-hdd-o';
}
public function getName() { public function getName() {
return pht('Repositories'); return pht('Repositories');
} }

View file

@ -22,6 +22,10 @@ final class PhabricatorSearchApplication extends PhabricatorApplication {
return 'search'; return 'search';
} }
public function getFontIcon() {
return 'fa-search';
}
public function isLaunchable() { public function isLaunchable() {
return false; return false;
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorSettingsApplication extends PhabricatorApplication {
return 'settings'; return 'settings';
} }
public function getFontIcon() {
return 'fa-wrench';
}
public function canUninstall() { public function canUninstall() {
return false; return false;
} }

View file

@ -10,6 +10,10 @@ final class PhabricatorSlowvoteApplication extends PhabricatorApplication {
return 'slowvote'; return 'slowvote';
} }
public function getFontIcon() {
return 'fa-bar-chart';
}
public function getName() { public function getName() {
return pht('Slowvote'); return pht('Slowvote');
} }

View file

@ -14,6 +14,10 @@ final class PhabricatorTokensApplication extends PhabricatorApplication {
return 'token'; return 'token';
} }
public function getFontIcon() {
return 'fa-trophy';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x99\xA6"; return "\xE2\x99\xA6";
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorUIExamplesApplication extends PhabricatorApplication {
return 'uiexamples'; return 'uiexamples';
} }
public function getFontIcon() {
return 'fa-magnet';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x8F\x9A"; return "\xE2\x8F\x9A";
} }

View file

@ -18,6 +18,10 @@ final class PhabricatorXHProfApplication extends PhabricatorApplication {
return 'xhprof'; return 'xhprof';
} }
public function getFontIcon() {
return 'fa-stethoscope';
}
public function getTitleGlyph() { public function getTitleGlyph() {
return "\xE2\x98\x84"; return "\xE2\x98\x84";
} }