Differential D16023 Diff 38575 src/applications/settings/setting/PhabricatorMonospacedFontSetting.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorMonospacedFontSetting.php
| <?php | <?php | ||||
| final class PhabricatorMonospacedFontSetting | final class PhabricatorMonospacedFontSetting | ||||
| extends PhabricatorStringSetting { | extends PhabricatorStringSetting { | ||||
| const SETTINGKEY = 'monospaced'; | const SETTINGKEY = 'monospaced'; | ||||
| public function getSettingName() { | public function getSettingName() { | ||||
| return pht('Monospaced Font'); | return pht('Monospaced Font'); | ||||
| } | } | ||||
| public function getSettingPanelKey() { | |||||
| return PhabricatorDisplayPreferencesSettingsPanel::PANELKEY; | |||||
| } | |||||
| protected function getSettingOrder() { | |||||
| return 500; | |||||
| } | |||||
| protected function getControlInstructions() { | protected function getControlInstructions() { | ||||
| return pht( | return pht( | ||||
| 'You can customize the font used when showing monospaced text, '. | 'You can customize the font used when showing monospaced text, '. | ||||
| 'including source code. You should enter a valid CSS font declaration '. | 'including source code. You should enter a valid CSS font declaration '. | ||||
| 'like: `13px Consolas`'); | 'like: `13px Consolas`'); | ||||
| } | } | ||||
| public function validateTransactionValue($value) { | public function validateTransactionValue($value) { | ||||
| Show All 21 Lines | |||||