3 final class PhabricatorMonospacedTextareasSetting
4 extends PhabricatorSelectSetting
{
6 const SETTINGKEY
= 'monospaced-textareas';
8 const VALUE_TEXT_VARIABLE_WIDTH
= 'disabled';
9 const VALUE_TEXT_MONOSPACED
= 'enabled';
11 public function getSettingName() {
12 return pht('Monospaced Textareas');
15 public function getSettingPanelKey() {
16 return PhabricatorDisplayPreferencesSettingsPanel
::PANELKEY
;
19 protected function getSettingOrder() {
23 protected function getControlInstructions() {
25 'You can choose to use either a monospaced or variable-width font '.
26 'in textareas in the UI. Textareas are used for editing descriptions '.
27 'and writing comments, among other things.');
30 public function getSettingDefaultValue() {
31 return self
::VALUE_TEXT_VARIABLE_WIDTH
;
34 protected function getSelectOptions() {
36 self
::VALUE_TEXT_VARIABLE_WIDTH
=> pht('Use Variable-Width Font'),
37 self
::VALUE_TEXT_MONOSPACED
=> pht('Use Monospaced Font'),