[Redesign] Larger Font PostProcessor

Summary: Ref T8099, Ref T8614. Reasonable attempt at a larger font size PostProcessor, will need additional UI cleanup (places where we fix height) but overall very decent.

Test Plan: Use lots of the UI elements with new font sizes.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T8099, T8614

Differential Revision: https://secure.phabricator.com/D13457
This commit is contained in:
Chad Little
2015-06-26 09:33:03 -07:00
parent 37a51bddf9
commit 1c84d2719c
50 changed files with 183 additions and 146 deletions

View File

@@ -181,6 +181,7 @@ phutil_register_library_map(array(
'CelerityAPI' => 'applications/celerity/CelerityAPI.php',
'CelerityDefaultPostprocessor' => 'applications/celerity/postprocessor/CelerityDefaultPostprocessor.php',
'CelerityHighContrastPostprocessor' => 'applications/celerity/postprocessor/CelerityHighContrastPostprocessor.php',
'CelerityLargeFontPostprocessor' => 'applications/celerity/postprocessor/CelerityLargeFontPostprocessor.php',
'CelerityManagementMapWorkflow' => 'applications/celerity/management/CelerityManagementMapWorkflow.php',
'CelerityManagementWorkflow' => 'applications/celerity/management/CelerityManagementWorkflow.php',
'CelerityPhabricatorResourceController' => 'applications/celerity/controller/CelerityPhabricatorResourceController.php',
@@ -3549,6 +3550,7 @@ phutil_register_library_map(array(
'CelerityAPI' => 'Phobject',
'CelerityDefaultPostprocessor' => 'CelerityPostprocessor',
'CelerityHighContrastPostprocessor' => 'CelerityPostprocessor',
'CelerityLargeFontPostprocessor' => 'CelerityPostprocessor',
'CelerityManagementMapWorkflow' => 'CelerityManagementWorkflow',
'CelerityManagementWorkflow' => 'PhabricatorManagementWorkflow',
'CelerityPhabricatorResourceController' => 'CelerityResourceController',

View File

@@ -35,6 +35,13 @@ final class CelerityDefaultPostprocessor
// Anchors
'anchor' => '#136CB2',
// Font Sizes
'biggestfontsize' => '15px',
'biggerfontsize' => '14px',
'normalfontsize' => '13px',
'smallerfontsize' => '12px',
'smallestfontsize' => '11px',
// Base Colors
'red' => '#c0392b',
'lightred' => '#f4dddb',

View File

@@ -0,0 +1,31 @@
<?php
final class CelerityLargeFontPostprocessor
extends CelerityPostprocessor {
public function getPostprocessorKey() {
return 'fontsizeplusone';
}
public function getPostprocessorName() {
return pht('Use Larger Font Size');
}
public function buildVariables() {
return array(
'basefont' => "14px 'Segoe UI', 'Segoe UI Web Regular', ".
"'Segoe UI Symbol', 'Lato', 'Helvetica Neue', Helvetica, ".
"Arial, sans-serif",
// Font Sizes
'biggestfontsize' => '16px',
'biggerfontsize' => '15px',
'normalfontsize' => '14px',
'smallerfontsize' => '13px',
'smallestfontsize' => '12px',
);
}
}