Differential D16023 Diff 38575 src/applications/settings/setting/PhabricatorMonospacedTextareasSetting.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorMonospacedTextareasSetting.php
| <?php | <?php | ||||
| final class PhabricatorMonospacedTextareasSetting | final class PhabricatorMonospacedTextareasSetting | ||||
| extends PhabricatorSelectSetting { | extends PhabricatorSelectSetting { | ||||
| const SETTINGKEY = 'monospaced-textareas'; | const SETTINGKEY = 'monospaced-textareas'; | ||||
| const VALUE_TEXT_VARIABLE_WIDTH = 'disabled'; | const VALUE_TEXT_VARIABLE_WIDTH = 'disabled'; | ||||
| const VALUE_TEXT_MONOSPACED = 'enabled'; | const VALUE_TEXT_MONOSPACED = 'enabled'; | ||||
| public function getSettingName() { | public function getSettingName() { | ||||
| return pht('Monospaced Textareas'); | return pht('Monospaced Textareas'); | ||||
| } | } | ||||
| public function getSettingPanelKey() { | |||||
| return PhabricatorDisplayPreferencesSettingsPanel::PANELKEY; | |||||
| } | |||||
| protected function getSettingOrder() { | |||||
| return 600; | |||||
| } | |||||
| protected function getControlInstructions() { | protected function getControlInstructions() { | ||||
| return pht( | return pht( | ||||
| 'You can choose to use either a monospaced or variable-width font '. | 'You can choose to use either a monospaced or variable-width font '. | ||||
| 'in textareas in the UI. Textareas are used for editing descriptions '. | 'in textareas in the UI. Textareas are used for editing descriptions '. | ||||
| 'and writing comments, among other things.'); | 'and writing comments, among other things.'); | ||||
| } | } | ||||
| public function getSettingDefaultValue() { | public function getSettingDefaultValue() { | ||||
| Show All 12 Lines | |||||