1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00

Add documentation for customizing fonts

Summary: Fixes T7888, adds clarification of property and an example.

Test Plan: Read the text, copy/paste example.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7888

Differential Revision: https://secure.phabricator.com/D12508
This commit is contained in:
Chad Little 2015-04-22 12:13:11 -07:00
parent 688c506ecf
commit 306ab29259

View file

@ -100,6 +100,10 @@ EXAMPLE;
'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(
@ -136,8 +140,7 @@ EXAMPLE;
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())