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

[Redesign] Darken things when dark header is used

Summary: Ref T8099, uses original bgcolor when dark headers are used.

Test Plan: Switch between light and dark Phabricator, see new colors.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T8099

Differential Revision: https://secure.phabricator.com/D13361
This commit is contained in:
Chad Little 2015-06-20 13:16:47 +01:00
parent 77725782c1
commit b942075205
4 changed files with 28 additions and 4 deletions

View file

@ -36,7 +36,7 @@ return array(
'rsrc/css/application/base/main-menu-view.css' => '44b4a289',
'rsrc/css/application/base/notification-menu.css' => 'f31c0bde',
'rsrc/css/application/base/phabricator-application-launch-view.css' => '9a233ed6',
'rsrc/css/application/base/phui-theme.css' => '1ccdcc84',
'rsrc/css/application/base/phui-theme.css' => 'd4a49411',
'rsrc/css/application/base/standard-page-view.css' => '43045fb4',
'rsrc/css/application/calendar/calendar-icon.css' => '98ce946d',
'rsrc/css/application/chatlog/chatlog.css' => 'f1971c1c',
@ -792,7 +792,7 @@ return array(
'phui-status-list-view-css' => '888cedb8',
'phui-tag-view-css' => '402691cc',
'phui-text-css' => 'cf019f54',
'phui-theme-css' => '1ccdcc84',
'phui-theme-css' => 'd4a49411',
'phui-timeline-view-css' => '2d181f3f',
'phui-workboard-view-css' => '0cac51a4',
'phui-workpanel-view-css' => '4bdc2562',

View file

@ -47,7 +47,7 @@ final class PhabricatorUIConfigOptions
EOJSON;
return array(
$this->newOption('ui.header-color', 'enum', 'light')
$this->newOption('ui.header-color', 'enum', 'blindigo')
->setDescription(
pht('Sets the color of the main header.'))
->setEnumOptions($options),

View file

@ -351,7 +351,6 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView {
$classes = array();
$classes[] = 'main-page-frame';
$classes[] = 'phui-theme-'.PhabricatorEnv::getEnvConfig('ui.header-color');
$developer_warning = null;
if (PhabricatorEnv::getEnvConfig('phabricator.developer-mode') &&
DarkConsoleErrorLogPluginAPI::getErrors()) {
@ -511,6 +510,9 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView {
$classes[] = 'audible';
}
$classes[] = 'phui-theme-'.PhabricatorEnv::getEnvConfig('ui.header-color');
return implode(' ', $classes);
}

View file

@ -71,3 +71,25 @@
border-left: 1px solid {$lightblueborder};
border-right: 1px solid {$lightblueborder};
}
/*--- Dark "Classic" ---------------------------------------------------------*/
.phui-theme-dark {
background-color: #ebecee;
}
.phui-theme-dark .phui-box-border {
border-color: {$lightblueborder};
border-bottom-color: {$blueborder};
}
/*--- Blindigo "Phacility" ---------------------------------------------------*/
.phui-theme-blindigo {
background-color: #F1F1F4;
}
.phui-theme-blindigo .phui-box-border {
border-color: {$lightblueborder};
border-bottom-color: {$blueborder};
}