From b58e8131a2c47d8b7ed31b42054d72a4e25fad1f Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Wed, 7 Jun 2017 11:49:19 +0900 Subject: [PATCH] Polish compact Bravery panel (#9078) --- app/renderer/components/main/braveryPanel.js | 246 ++++++++++++------- app/renderer/components/styles/global.js | 5 +- img/toolbar/braveryPanel_btn.svg | 1 + 3 files changed, 158 insertions(+), 94 deletions(-) create mode 100644 img/toolbar/braveryPanel_btn.svg diff --git a/app/renderer/components/main/braveryPanel.js b/app/renderer/components/main/braveryPanel.js index 43f3c3a21ea..55cf870b497 100644 --- a/app/renderer/components/main/braveryPanel.js +++ b/app/renderer/components/main/braveryPanel.js @@ -8,6 +8,7 @@ const Immutable = require('immutable') // Components const ImmutableComponent = require('../immutableComponent') const Dialog = require('../common/dialog') +const BrowserButton = require('../common/browserButton') const SwitchControl = require('../common/switchControl') const {BraveryPanelDropdown} = require('../common/dropdown') @@ -29,6 +30,8 @@ const {StyleSheet, css} = require('aphrodite/no-important') const globalStyles = require('../styles/global') const commonStyles = require('../styles/commonStyles') +const closeButton = require('../../../../img/toolbar/braveryPanel_btn.svg') + class BraveryPanel extends ImmutableComponent { constructor () { super() @@ -181,40 +184,46 @@ class BraveryPanel extends ImmutableComponent { styles.braveryPanel__header, styles.braveryPanel_compact__header )}> -
-
-
{this.displayHost}
-
- + +
+ +
+
+
+
{this.displayHost}
+
} get defaultBraveryPanelHeader () { const shieldsUp = this.props.braverySettings.shieldsUp return
-
+
-
{this.displayHost}
+
{this.displayHost}
-
+
-
{adsBlockedStat}
- -
{httpsUpgradedResourceStat}
- -
{scriptsBlockedStat}
- -
{fpBlockedStat}
+
+ {adsBlockedStat} +
+ +
+ {httpsUpgradedResourceStat} +
+ +
+ {scriptsBlockedStat} +
+ +
+ {fpBlockedStat} +
+ + + -
+
stoploading_btn \ No newline at end of file