mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +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:
parent
c483877f57
commit
12f2ffd46a
4 changed files with 22 additions and 4 deletions
|
@ -111,7 +111,7 @@ return array(
|
|||
'rsrc/css/font/font-awesome.css' => '73d075c3',
|
||||
'rsrc/css/font/font-source-sans-pro.css' => '91d53463',
|
||||
'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-crumbs-view.css' => '7fbf25b8',
|
||||
'rsrc/css/layout/phabricator-filetree-view.css' => 'fccf9f82',
|
||||
|
@ -683,7 +683,7 @@ return array(
|
|||
'paste-css' => 'aa1767d1',
|
||||
'path-typeahead' => 'f7fc67ec',
|
||||
'people-profile-css' => 'ba7b2762',
|
||||
'phabricator-action-header-view-css' => 'ad0d8f42',
|
||||
'phabricator-action-header-view-css' => 'e464b159',
|
||||
'phabricator-action-list-view-css' => 'dcbfc854',
|
||||
'phabricator-application-launch-view-css' => '81bebcff',
|
||||
'phabricator-busy' => '6453c869',
|
||||
|
|
|
@ -206,14 +206,14 @@ final class PhabricatorDashboardPanelRenderingEngine extends Phobject {
|
|||
case self::HEADER_MODE_EDIT:
|
||||
$header = id(new PhabricatorActionHeaderView())
|
||||
->setHeaderTitle($panel->getName())
|
||||
->setHeaderColor(PhabricatorActionHeaderView::HEADER_LIGHTBLUE);
|
||||
->setHeaderColor(PhabricatorActionHeaderView::HEADER_WHITE);
|
||||
$header = $this->addPanelHeaderActions($header);
|
||||
break;
|
||||
case self::HEADER_MODE_NORMAL:
|
||||
default:
|
||||
$header = id(new PhabricatorActionHeaderView())
|
||||
->setHeaderTitle($panel->getName())
|
||||
->setHeaderColor(PhabricatorActionHeaderView::HEADER_LIGHTBLUE);
|
||||
->setHeaderColor(PhabricatorActionHeaderView::HEADER_WHITE);
|
||||
break;
|
||||
}
|
||||
return $header;
|
||||
|
|
|
@ -9,6 +9,7 @@ final class PhabricatorActionHeaderView extends AphrontView {
|
|||
const HEADER_RED = 'red';
|
||||
const HEADER_YELLOW = 'yellow';
|
||||
const HEADER_LIGHTBLUE ='lightblue';
|
||||
const HEADER_WHITE = 'white';
|
||||
|
||||
private $headerTitle;
|
||||
private $headerHref;
|
||||
|
|
|
@ -64,6 +64,23 @@
|
|||
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-red-header .phabricator-action-header-title,
|
||||
.gradient-blue-header .phabricator-action-header-title,
|
||||
|
|
Loading…
Reference in a new issue