Differential D12508 Diff 30032 src/applications/settings/panel/PhabricatorDisplayPreferencesSettingsPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorDisplayPreferencesSettingsPanel.php
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | if (!$pref_monospaced_textareas_value) { | ||||
$pref_monospaced_textareas_value = 'disabled'; | $pref_monospaced_textareas_value = 'disabled'; | ||||
} | } | ||||
$editor_instructions = pht('Link to edit files in external editor. '. | $editor_instructions = pht('Link to edit files in external editor. '. | ||||
'%%f is replaced by filename, %%l by line number, %%r by repository '. | '%%f is replaced by filename, %%l by line number, %%r by repository '. | ||||
'callsign, %%%% by literal %%. For documentation, see: %s', | 'callsign, %%%% by literal %%. For documentation, see: %s', | ||||
$editor_doc_link); | $editor_doc_link); | ||||
$font_instructions = pht('Overrides default fonts in tools like '. | |||||
'Differential. Input should be valid CSS "font" declaration, such as '. | |||||
'"13px Consolas"'); | |||||
$form = id(new AphrontFormView()) | $form = id(new AphrontFormView()) | ||||
->setUser($user) | ->setUser($user) | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormSelectControl()) | id(new AphrontFormSelectControl()) | ||||
->setLabel(pht('Page Titles')) | ->setLabel(pht('Page Titles')) | ||||
->setName($pref_titles) | ->setName($pref_titles) | ||||
->setValue($preferences->getPreference($pref_titles)) | ->setValue($preferences->getPreference($pref_titles)) | ||||
->setOptions( | ->setOptions( | ||||
Show All 20 Lines | $form = id(new AphrontFormView()) | ||||
'' => pht('Supported (paths separated by spaces)'), | '' => pht('Supported (paths separated by spaces)'), | ||||
'disable' => pht('Not Supported'), | 'disable' => pht('Not Supported'), | ||||
)) | )) | ||||
->setValue($preferences->getPreference($pref_multiedit))) | ->setValue($preferences->getPreference($pref_multiedit))) | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormTextControl()) | id(new AphrontFormTextControl()) | ||||
->setLabel(pht('Monospaced Font')) | ->setLabel(pht('Monospaced Font')) | ||||
->setName($pref_monospaced) | ->setName($pref_monospaced) | ||||
->setCaption( | ->setCaption($font_instructions) | ||||
pht('Overrides default fonts in tools like Differential.')) | |||||
->setValue($preferences->getPreference($pref_monospaced))) | ->setValue($preferences->getPreference($pref_monospaced))) | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormMarkupControl()) | id(new AphrontFormMarkupControl()) | ||||
->setValue(phutil_tag( | ->setValue(phutil_tag( | ||||
'pre', | 'pre', | ||||
array('class' => 'PhabricatorMonospaced'), | array('class' => 'PhabricatorMonospaced'), | ||||
$example_string))) | $example_string))) | ||||
->appendChild( | ->appendChild( | ||||
Show All 23 Lines |