Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547704
PhabricatorMonospacedTextareasSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorMonospacedTextareasSetting.php
View Options
<?php
final
class
PhabricatorMonospacedTextareasSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'monospaced-textareas'
;
const
VALUE_TEXT_VARIABLE_WIDTH
=
'disabled'
;
const
VALUE_TEXT_MONOSPACED
=
'enabled'
;
public
function
getSettingName
()
{
return
pht
(
'Monospaced Textareas'
);
}
public
function
getSettingPanelKey
()
{
return
PhabricatorDisplayPreferencesSettingsPanel
::
PANELKEY
;
}
protected
function
getSettingOrder
()
{
return
600
;
}
protected
function
getControlInstructions
()
{
return
pht
(
'You can choose to use either a monospaced or variable-width font '
.
'in textareas in the UI. Textareas are used for editing descriptions '
.
'and writing comments, among other things.'
);
}
public
function
getSettingDefaultValue
()
{
return
self
::
VALUE_TEXT_VARIABLE_WIDTH
;
}
protected
function
getSelectOptions
()
{
return
array
(
self
::
VALUE_TEXT_VARIABLE_WIDTH
=>
pht
(
'Use Variable-Width Font'
),
self
::
VALUE_TEXT_MONOSPACED
=>
pht
(
'Use Monospaced Font'
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:37 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
102344
Default Alt Text
PhabricatorMonospacedTextareasSetting.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment