@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add UI for choosing header color

Summary: See D7731. Fixes T4194.

Test Plan: {F88020}

Reviewers: chad, btrahan

Reviewed By: chad

CC: aran, mbishopim3

Maniphest Tasks: T4194

Differential Revision: https://secure.phabricator.com/D7740

+49 -2
+14
src/__celerity_resource_map__.php
··· 1790 1790 ), 1791 1791 'disk' => '/rsrc/js/core/behavior-global-drag-and-drop.js', 1792 1792 ), 1793 + 'javelin-behavior-harbormaster-reorder-steps' => 1794 + array( 1795 + 'uri' => '/res/035fe63d/rsrc/js/application/harbormaster/behavior-reorder-steps.js', 1796 + 'type' => 'js', 1797 + 'requires' => 1798 + array( 1799 + 0 => 'javelin-behavior', 1800 + 1 => 'javelin-stratcom', 1801 + 2 => 'javelin-workflow', 1802 + 3 => 'javelin-dom', 1803 + 4 => 'phabricator-draggable-list', 1804 + ), 1805 + 'disk' => '/rsrc/js/application/harbormaster/behavior-reorder-steps.js', 1806 + ), 1793 1807 'javelin-behavior-herald-rule-editor' => 1794 1808 array( 1795 1809 'uri' => '/res/77a0c945/rsrc/js/application/herald/herald-rule-editor.js',
+2
src/__phutil_library_map__.php
··· 1984 1984 'PhabricatorTypeaheadCommonDatasourceController' => 'applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php', 1985 1985 'PhabricatorTypeaheadDatasourceController' => 'applications/typeahead/controller/PhabricatorTypeaheadDatasourceController.php', 1986 1986 'PhabricatorTypeaheadResult' => 'applications/typeahead/storage/PhabricatorTypeaheadResult.php', 1987 + 'PhabricatorUIConfigOptions' => 'applications/config/option/PhabricatorUIConfigOptions.php', 1987 1988 'PhabricatorUIExample' => 'applications/uiexample/examples/PhabricatorUIExample.php', 1988 1989 'PhabricatorUIExampleRenderController' => 'applications/uiexample/controller/PhabricatorUIExampleRenderController.php', 1989 1990 'PhabricatorUIListFilterExample' => 'applications/uiexample/examples/PhabricatorUIListFilterExample.php', ··· 4527 4528 'PhabricatorTwoColumnExample' => 'PhabricatorUIExample', 4528 4529 'PhabricatorTypeaheadCommonDatasourceController' => 'PhabricatorTypeaheadDatasourceController', 4529 4530 'PhabricatorTypeaheadDatasourceController' => 'PhabricatorController', 4531 + 'PhabricatorUIConfigOptions' => 'PhabricatorApplicationConfigOptions', 4530 4532 'PhabricatorUIExampleRenderController' => 'PhabricatorController', 4531 4533 'PhabricatorUIListFilterExample' => 'PhabricatorUIExample', 4532 4534 'PhabricatorUINotificationExample' => 'PhabricatorUIExample',
+32
src/applications/config/option/PhabricatorUIConfigOptions.php
··· 1 + <?php 2 + 3 + final class PhabricatorUIConfigOptions 4 + extends PhabricatorApplicationConfigOptions { 5 + 6 + public function getName() { 7 + return pht("User Interface"); 8 + } 9 + 10 + public function getDescription() { 11 + return pht("Configure the Phabricator UI, including colors."); 12 + } 13 + 14 + public function getOptions() { 15 + $manifest = PHUIIconView::getSheetManifest('main-header'); 16 + 17 + $options = array(); 18 + foreach (array_keys($manifest) as $sprite_name) { 19 + $key = substr($sprite_name, strlen('main-header-')); 20 + $options[$key] = $key; 21 + } 22 + 23 + return array( 24 + $this->newOption('ui.header-color', 'enum', 'dark') 25 + ->setDescription( 26 + pht( 27 + 'Sets the color of the main header.')) 28 + ->setEnumOptions($options), 29 + ); 30 + } 31 + 32 + }
+1 -2
src/view/page/menu/PhabricatorMainMenuView.php
··· 68 68 $classes = array(); 69 69 $classes[] = 'phabricator-main-menu'; 70 70 $classes[] = 'sprite-main-header'; 71 - // TODO: Let admins or users set header 72 - $classes[] = 'main-header-dark'; 71 + $classes[] = 'main-header-'.PhabricatorEnv::getEnvConfig('ui.header-color'); 73 72 74 73 return phutil_tag( 75 74 'div',