Page MenuHomePhabricator

D7740.diff

diff --git a/src/__celerity_resource_map__.php b/src/__celerity_resource_map__.php
--- a/src/__celerity_resource_map__.php
+++ b/src/__celerity_resource_map__.php
@@ -1790,6 +1790,20 @@
),
'disk' => '/rsrc/js/core/behavior-global-drag-and-drop.js',
),
+ 'javelin-behavior-harbormaster-reorder-steps' =>
+ array(
+ 'uri' => '/res/035fe63d/rsrc/js/application/harbormaster/behavior-reorder-steps.js',
+ 'type' => 'js',
+ 'requires' =>
+ array(
+ 0 => 'javelin-behavior',
+ 1 => 'javelin-stratcom',
+ 2 => 'javelin-workflow',
+ 3 => 'javelin-dom',
+ 4 => 'phabricator-draggable-list',
+ ),
+ 'disk' => '/rsrc/js/application/harbormaster/behavior-reorder-steps.js',
+ ),
'javelin-behavior-herald-rule-editor' =>
array(
'uri' => '/res/77a0c945/rsrc/js/application/herald/herald-rule-editor.js',
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -1984,6 +1984,7 @@
'PhabricatorTypeaheadCommonDatasourceController' => 'applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php',
'PhabricatorTypeaheadDatasourceController' => 'applications/typeahead/controller/PhabricatorTypeaheadDatasourceController.php',
'PhabricatorTypeaheadResult' => 'applications/typeahead/storage/PhabricatorTypeaheadResult.php',
+ 'PhabricatorUIConfigOptions' => 'applications/config/option/PhabricatorUIConfigOptions.php',
'PhabricatorUIExample' => 'applications/uiexample/examples/PhabricatorUIExample.php',
'PhabricatorUIExampleRenderController' => 'applications/uiexample/controller/PhabricatorUIExampleRenderController.php',
'PhabricatorUIListFilterExample' => 'applications/uiexample/examples/PhabricatorUIListFilterExample.php',
@@ -4527,6 +4528,7 @@
'PhabricatorTwoColumnExample' => 'PhabricatorUIExample',
'PhabricatorTypeaheadCommonDatasourceController' => 'PhabricatorTypeaheadDatasourceController',
'PhabricatorTypeaheadDatasourceController' => 'PhabricatorController',
+ 'PhabricatorUIConfigOptions' => 'PhabricatorApplicationConfigOptions',
'PhabricatorUIExampleRenderController' => 'PhabricatorController',
'PhabricatorUIListFilterExample' => 'PhabricatorUIExample',
'PhabricatorUINotificationExample' => 'PhabricatorUIExample',
diff --git a/src/applications/config/option/PhabricatorUIConfigOptions.php b/src/applications/config/option/PhabricatorUIConfigOptions.php
new file mode 100644
--- /dev/null
+++ b/src/applications/config/option/PhabricatorUIConfigOptions.php
@@ -0,0 +1,32 @@
+<?php
+
+final class PhabricatorUIConfigOptions
+ extends PhabricatorApplicationConfigOptions {
+
+ public function getName() {
+ return pht("User Interface");
+ }
+
+ public function getDescription() {
+ return pht("Configure the Phabricator UI, including colors.");
+ }
+
+ public function getOptions() {
+ $manifest = PHUIIconView::getSheetManifest('main-header');
+
+ $options = array();
+ foreach (array_keys($manifest) as $sprite_name) {
+ $key = substr($sprite_name, strlen('main-header-'));
+ $options[$key] = $key;
+ }
+
+ return array(
+ $this->newOption('ui.header-color', 'enum', 'dark')
+ ->setDescription(
+ pht(
+ 'Sets the color of the main header.'))
+ ->setEnumOptions($options),
+ );
+ }
+
+}
diff --git a/src/view/page/menu/PhabricatorMainMenuView.php b/src/view/page/menu/PhabricatorMainMenuView.php
--- a/src/view/page/menu/PhabricatorMainMenuView.php
+++ b/src/view/page/menu/PhabricatorMainMenuView.php
@@ -68,8 +68,7 @@
$classes = array();
$classes[] = 'phabricator-main-menu';
$classes[] = 'sprite-main-header';
- // TODO: Let admins or users set header
- $classes[] = 'main-header-dark';
+ $classes[] = 'main-header-'.PhabricatorEnv::getEnvConfig('ui.header-color');
return phutil_tag(
'div',

File Metadata

Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/wj/f2/qamv62i7myp3u4ox
Default Alt Text
D7740.diff (3 KB)

Event Timeline