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

Add white as ActionHeader color, use on Dashboards

Summary: Trying to lessen the visual footprint of a heavy-widget dashboard. Adds a plain style.

Test Plan:
Tested my homepage and dashboards

{F164709}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9454
This commit is contained in:
Chad Little 2014-06-10 09:16:29 -07:00
parent c483877f57
commit 12f2ffd46a
4 changed files with 22 additions and 4 deletions

View file

@ -111,7 +111,7 @@ return array(
'rsrc/css/font/font-awesome.css' => '73d075c3', 'rsrc/css/font/font-awesome.css' => '73d075c3',
'rsrc/css/font/font-source-sans-pro.css' => '91d53463', 'rsrc/css/font/font-source-sans-pro.css' => '91d53463',
'rsrc/css/font/phui-font-icon-base.css' => 'eb84f033', 'rsrc/css/font/phui-font-icon-base.css' => 'eb84f033',
'rsrc/css/layout/phabricator-action-header-view.css' => 'ad0d8f42', 'rsrc/css/layout/phabricator-action-header-view.css' => 'e464b159',
'rsrc/css/layout/phabricator-action-list-view.css' => 'dcbfc854', 'rsrc/css/layout/phabricator-action-list-view.css' => 'dcbfc854',
'rsrc/css/layout/phabricator-crumbs-view.css' => '7fbf25b8', 'rsrc/css/layout/phabricator-crumbs-view.css' => '7fbf25b8',
'rsrc/css/layout/phabricator-filetree-view.css' => 'fccf9f82', 'rsrc/css/layout/phabricator-filetree-view.css' => 'fccf9f82',
@ -683,7 +683,7 @@ return array(
'paste-css' => 'aa1767d1', 'paste-css' => 'aa1767d1',
'path-typeahead' => 'f7fc67ec', 'path-typeahead' => 'f7fc67ec',
'people-profile-css' => 'ba7b2762', 'people-profile-css' => 'ba7b2762',
'phabricator-action-header-view-css' => 'ad0d8f42', 'phabricator-action-header-view-css' => 'e464b159',
'phabricator-action-list-view-css' => 'dcbfc854', 'phabricator-action-list-view-css' => 'dcbfc854',
'phabricator-application-launch-view-css' => '81bebcff', 'phabricator-application-launch-view-css' => '81bebcff',
'phabricator-busy' => '6453c869', 'phabricator-busy' => '6453c869',

View file

@ -206,14 +206,14 @@ final class PhabricatorDashboardPanelRenderingEngine extends Phobject {
case self::HEADER_MODE_EDIT: case self::HEADER_MODE_EDIT:
$header = id(new PhabricatorActionHeaderView()) $header = id(new PhabricatorActionHeaderView())
->setHeaderTitle($panel->getName()) ->setHeaderTitle($panel->getName())
->setHeaderColor(PhabricatorActionHeaderView::HEADER_LIGHTBLUE); ->setHeaderColor(PhabricatorActionHeaderView::HEADER_WHITE);
$header = $this->addPanelHeaderActions($header); $header = $this->addPanelHeaderActions($header);
break; break;
case self::HEADER_MODE_NORMAL: case self::HEADER_MODE_NORMAL:
default: default:
$header = id(new PhabricatorActionHeaderView()) $header = id(new PhabricatorActionHeaderView())
->setHeaderTitle($panel->getName()) ->setHeaderTitle($panel->getName())
->setHeaderColor(PhabricatorActionHeaderView::HEADER_LIGHTBLUE); ->setHeaderColor(PhabricatorActionHeaderView::HEADER_WHITE);
break; break;
} }
return $header; return $header;

View file

@ -9,6 +9,7 @@ final class PhabricatorActionHeaderView extends AphrontView {
const HEADER_RED = 'red'; const HEADER_RED = 'red';
const HEADER_YELLOW = 'yellow'; const HEADER_YELLOW = 'yellow';
const HEADER_LIGHTBLUE ='lightblue'; const HEADER_LIGHTBLUE ='lightblue';
const HEADER_WHITE = 'white';
private $headerTitle; private $headerTitle;
private $headerHref; private $headerHref;

View file

@ -64,6 +64,23 @@
background: {$red}; background: {$red};
} }
.phabricator-action-header.gradient-white-header {
background: #fff;
}
.dashboard-panel .phabricator-action-header.gradient-white-header {
border: 1px solid {$lightblueborder};
border-bottom: 1px solid {$thinblueborder};
border-top-right-radius: 3px;
border-top-left-radius: 3px;
}
.phabricator-action-header.gradient-white-header .phabricator-action-header-title {
color: {$darkbluetext};
padding: 12px 0 12px 4px;
}
.gradient-green-header .phabricator-action-header-title, .gradient-green-header .phabricator-action-header-title,
.gradient-red-header .phabricator-action-header-title, .gradient-red-header .phabricator-action-header-title,
.gradient-blue-header .phabricator-action-header-title, .gradient-blue-header .phabricator-action-header-title,