diff --git a/app/renderer/components/checkDefaultBrowserDialog.js b/app/renderer/components/checkDefaultBrowserDialog.js index 911d1cb9563..9cb9d5efc02 100644 --- a/app/renderer/components/checkDefaultBrowserDialog.js +++ b/app/renderer/components/checkDefaultBrowserDialog.js @@ -3,14 +3,31 @@ * You can obtain one at http://mozilla.org/MPL/2.0/. */ const React = require('react') + +// Components const ImmutableComponent = require('./immutableComponent') const Dialog = require('../../../js/components/dialog') const Button = require('../../../js/components/button') const SwitchControl = require('../../../js/components/switchControl') + +// Actions const appActions = require('../../../js/actions/appActions') const windowActions = require('../../../js/actions/windowActions') + +// Constants const settings = require('../../../js/constants/settings') +const {StyleSheet, css} = require('aphrodite/no-important') +const globalStyles = require('./styles/global') + +const braveAbout = require('../../extensions/brave/img/braveAbout.png') + +const { + CommonFormMedium, + CommonFormSection, + CommonFormButtonWrapper +} = require('./commonForm') + class CheckDefaultBrowserDialog extends ImmutableComponent { constructor () { super() @@ -35,19 +52,58 @@ class CheckDefaultBrowserDialog extends ImmutableComponent { this.props.onHide() } render () { - return -
e.stopPropagation()}> -
-
- -
-
-
+ return + e.stopPropagation()}> + +
+
+
+
+ +
+
+ + +
} } +const styles = StyleSheet.create({ + flexAlignCenter: { + display: 'flex', + alignItems: 'center' + }, + + section__braveIcon: { + backgroundImage: `image-set(url(${braveAbout}) 2x)`, + backgroundRepeat: 'no-repeat', + height: '64px', + width: '64px', + minWidth: '64px', + marginRight: globalStyles.spacing.dialogInsideMargin + }, + section__title: { + fontWeight: 'bold' + }, + section__switchControl: { + paddingLeft: 0, + marginTop: `calc(${globalStyles.spacing.dialogInsideMargin} / 2)` + } +}) + module.exports = CheckDefaultBrowserDialog diff --git a/app/renderer/components/commonForm.js b/app/renderer/components/commonForm.js index 604e0fb0729..1528b310f7f 100644 --- a/app/renderer/components/commonForm.js +++ b/app/renderer/components/commonForm.js @@ -21,6 +21,16 @@ class CommonForm extends ImmutableComponent { } } +class CommonFormMedium extends ImmutableComponent { + render () { + return
+ } +} + class CommonFormLarge extends ImmutableComponent { render () { return