@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator

Add icons to Settings

Summary: Depends on D20005. I love icons.

Test Plan: {F6145996}

Reviewers: amckinley

Reviewed By: amckinley

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

+103 -12
+4
src/applications/conduit/settings/PhabricatorConduitTokensSettingsPanel.php
··· 19 19 return pht('Conduit API Tokens'); 20 20 } 21 21 22 + public function getPanelMenuIcon() { 23 + return id(new PhabricatorConduitApplication())->getIcon(); 24 + } 25 + 22 26 public function getPanelGroupKey() { 23 27 return PhabricatorSettingsLogsPanelGroup::PANELGROUPKEY; 24 28 }
+4
src/applications/diffusion/panel/DiffusionSetPasswordSettingsPanel.php
··· 18 18 return pht('VCS Password'); 19 19 } 20 20 21 + public function getPanelMenuIcon() { 22 + return 'fa-code'; 23 + } 24 + 21 25 public function getPanelGroupKey() { 22 26 return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY; 23 27 }
+4
src/applications/oauthserver/panel/PhabricatorOAuthServerAuthorizationsSettingsPanel.php
··· 11 11 return pht('OAuth Authorizations'); 12 12 } 13 13 14 + public function getPanelMenuIcon() { 15 + return 'fa-exchange'; 16 + } 17 + 14 18 public function getPanelGroupKey() { 15 19 return PhabricatorSettingsLogsPanelGroup::PANELGROUPKEY; 16 20 }
+5 -1
src/applications/settings/controller/PhabricatorSettingsMainController.php
··· 209 209 } 210 210 } 211 211 212 - $nav->addFilter($panel->getPanelKey(), $panel->getPanelName()); 212 + $nav->addFilter( 213 + $panel->getPanelKey(), 214 + $panel->getPanelName(), 215 + null, 216 + $panel->getPanelMenuIcon()); 213 217 } 214 218 215 219 return $nav;
+4
src/applications/settings/panel/PhabricatorActivitySettingsPanel.php
··· 10 10 return pht('Activity Logs'); 11 11 } 12 12 13 + public function getPanelMenuIcon() { 14 + return 'fa-list'; 15 + } 16 + 13 17 public function getPanelGroupKey() { 14 18 return PhabricatorSettingsLogsPanelGroup::PANELGROUPKEY; 15 19 }
+4
src/applications/settings/panel/PhabricatorConpherencePreferencesSettingsPanel.php
··· 9 9 return pht('Conpherence'); 10 10 } 11 11 12 + public function getPanelMenuIcon() { 13 + return 'fa-comment-o'; 14 + } 15 + 12 16 public function getPanelGroupKey() { 13 17 return PhabricatorSettingsApplicationsPanelGroup::PANELGROUPKEY; 14 18 }
+4
src/applications/settings/panel/PhabricatorContactNumbersSettingsPanel.php
··· 11 11 return pht('Contact Numbers'); 12 12 } 13 13 14 + public function getPanelMenuIcon() { 15 + return 'fa-mobile'; 16 + } 17 + 14 18 public function getPanelGroupKey() { 15 19 return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY; 16 20 }
+4
src/applications/settings/panel/PhabricatorDateTimeSettingsPanel.php
··· 9 9 return pht('Date and Time'); 10 10 } 11 11 12 + public function getPanelMenuIcon() { 13 + return 'fa-calendar'; 14 + } 15 + 12 16 public function getPanelGroupKey() { 13 17 return PhabricatorSettingsAccountPanelGroup::PANELGROUPKEY; 14 18 }
+4
src/applications/settings/panel/PhabricatorDeveloperPreferencesSettingsPanel.php
··· 9 9 return pht('Developer Settings'); 10 10 } 11 11 12 + public function getPanelMenuIcon() { 13 + return 'fa-magic'; 14 + } 15 + 12 16 public function getPanelGroupKey() { 13 17 return PhabricatorSettingsDeveloperPanelGroup::PANELGROUPKEY; 14 18 }
+4
src/applications/settings/panel/PhabricatorDiffPreferencesSettingsPanel.php
··· 9 9 return pht('Diff Preferences'); 10 10 } 11 11 12 + public function getPanelMenuIcon() { 13 + return 'fa-cog'; 14 + } 15 + 12 16 public function getPanelGroupKey() { 13 17 return PhabricatorSettingsApplicationsPanelGroup::PANELGROUPKEY; 14 18 }
+4
src/applications/settings/panel/PhabricatorDisplayPreferencesSettingsPanel.php
··· 9 9 return pht('Display Preferences'); 10 10 } 11 11 12 + public function getPanelMenuIcon() { 13 + return 'fa-desktop'; 14 + } 15 + 12 16 public function getPanelGroupKey() { 13 17 return PhabricatorSettingsApplicationsPanelGroup::PANELGROUPKEY; 14 18 }
+4
src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
··· 11 11 return pht('Email Addresses'); 12 12 } 13 13 14 + public function getPanelMenuIcon() { 15 + return 'fa-at'; 16 + } 17 + 14 18 public function getPanelGroupKey() { 15 19 return PhabricatorSettingsEmailPanelGroup::PANELGROUPKEY; 16 20 }
+4
src/applications/settings/panel/PhabricatorEmailDeliverySettingsPanel.php
··· 9 9 return pht('Email Delivery'); 10 10 } 11 11 12 + public function getPanelMenuIcon() { 13 + return 'fa-envelope-o'; 14 + } 15 + 12 16 public function getPanelGroupKey() { 13 17 return PhabricatorSettingsEmailPanelGroup::PANELGROUPKEY; 14 18 }
+4 -11
src/applications/settings/panel/PhabricatorEmailFormatSettingsPanel.php
··· 9 9 return pht('Email Format'); 10 10 } 11 11 12 + public function getPanelMenuIcon() { 13 + return 'fa-font'; 14 + } 15 + 12 16 public function getPanelGroupKey() { 13 17 return PhabricatorSettingsEmailPanelGroup::PANELGROUPKEY; 14 18 } ··· 19 23 20 24 public function isManagementPanel() { 21 25 return false; 22 - /* 23 - if (!$this->isUserPanel()) { 24 - return false; 25 - } 26 - 27 - if ($this->getUser()->getIsMailingList()) { 28 - return true; 29 - } 30 - 31 - return false; 32 - */ 33 26 } 34 27 35 28 public function isTemplatePanel() {
+4
src/applications/settings/panel/PhabricatorEmailPreferencesSettingsPanel.php
··· 11 11 return pht('Email Preferences'); 12 12 } 13 13 14 + public function getPanelMenuIcon() { 15 + return 'fa-envelope-open-o'; 16 + } 17 + 14 18 public function getPanelGroupKey() { 15 19 return PhabricatorSettingsEmailPanelGroup::PANELGROUPKEY; 16 20 }
+4
src/applications/settings/panel/PhabricatorExternalAccountsSettingsPanel.php
··· 11 11 return pht('External Accounts'); 12 12 } 13 13 14 + public function getPanelMenuIcon() { 15 + return 'fa-users'; 16 + } 17 + 14 18 public function getPanelGroupKey() { 15 19 return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY; 16 20 }
+4
src/applications/settings/panel/PhabricatorLanguageSettingsPanel.php
··· 9 9 return pht('Language'); 10 10 } 11 11 12 + public function getPanelMenuIcon() { 13 + return 'fa-globe'; 14 + } 15 + 12 16 public function getPanelGroupKey() { 13 17 return PhabricatorSettingsAccountPanelGroup::PANELGROUPKEY; 14 18 }
+4
src/applications/settings/panel/PhabricatorMultiFactorSettingsPanel.php
··· 11 11 return pht('Multi-Factor Auth'); 12 12 } 13 13 14 + public function getPanelMenuIcon() { 15 + return 'fa-lock'; 16 + } 17 + 14 18 public function getPanelGroupKey() { 15 19 return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY; 16 20 }
+4
src/applications/settings/panel/PhabricatorNotificationsSettingsPanel.php
··· 21 21 return pht('Notifications'); 22 22 } 23 23 24 + public function getPanelMenuIcon() { 25 + return 'fa-bell-o'; 26 + } 27 + 24 28 public function getPanelGroupKey() { 25 29 return PhabricatorSettingsApplicationsPanelGroup::PANELGROUPKEY; 26 30 }
+4
src/applications/settings/panel/PhabricatorPasswordSettingsPanel.php
··· 10 10 return pht('Password'); 11 11 } 12 12 13 + public function getPanelMenuIcon() { 14 + return 'fa-key'; 15 + } 16 + 13 17 public function getPanelGroupKey() { 14 18 return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY; 15 19 }
+4
src/applications/settings/panel/PhabricatorSSHKeysSettingsPanel.php
··· 18 18 return pht('SSH Public Keys'); 19 19 } 20 20 21 + public function getPanelMenuIcon() { 22 + return 'fa-file-text-o'; 23 + } 24 + 21 25 public function getPanelGroupKey() { 22 26 return PhabricatorSettingsAuthenticationPanelGroup::PANELGROUPKEY; 23 27 }
+4
src/applications/settings/panel/PhabricatorSessionsSettingsPanel.php
··· 10 10 return pht('Sessions'); 11 11 } 12 12 13 + public function getPanelMenuIcon() { 14 + return 'fa-user'; 15 + } 16 + 13 17 public function getPanelGroupKey() { 14 18 return PhabricatorSettingsLogsPanelGroup::PANELGROUPKEY; 15 19 }
+10
src/applications/settings/panel/PhabricatorSettingsPanel.php
··· 132 132 133 133 134 134 /** 135 + * Return an icon for the panel in the menu. 136 + * 137 + * @return string Icon identifier. 138 + * @task config 139 + */ 140 + public function getPanelMenuIcon() { 141 + return 'fa-wrench'; 142 + } 143 + 144 + /** 135 145 * Return a panel group key constant for this panel. 136 146 * 137 147 * @return const Panel group key.
+4
src/applications/settings/panel/PhabricatorTokensSettingsPanel.php
··· 10 10 return pht('Temporary Tokens'); 11 11 } 12 12 13 + public function getPanelMenuIcon() { 14 + return 'fa-ticket'; 15 + } 16 + 13 17 public function getPanelGroupKey() { 14 18 return PhabricatorSettingsLogsPanelGroup::PANELGROUPKEY; 15 19 }