Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15389665
D7740.id17488.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D7740.id17488.diff
View Options
Index: src/__celerity_resource_map__.php
===================================================================
--- src/__celerity_resource_map__.php
+++ 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',
Index: src/__phutil_library_map__.php
===================================================================
--- src/__phutil_library_map__.php
+++ 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',
Index: src/applications/config/option/PhabricatorUIConfigOptions.php
===================================================================
--- /dev/null
+++ 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),
+ );
+ }
+
+}
Index: src/view/page/menu/PhabricatorMainMenuView.php
===================================================================
--- src/view/page/menu/PhabricatorMainMenuView.php
+++ 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
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 5:33 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223152
Default Alt Text
D7740.id17488.diff (3 KB)
Attached To
Mode
D7740: Add UI for choosing header color
Attached
Detach File
Event Timeline
Log In to Comment