From 59c0da51bbbbb25e741805f1b7b745593e4c6b80 Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Thu, 2 Feb 2017 00:55:56 +0900 Subject: [PATCH] Improve appearance of tray icon theme selection --- src/browser/components/SettingsPage.jsx | 41 ++++++++++++++++--------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/src/browser/components/SettingsPage.jsx b/src/browser/components/SettingsPage.jsx index 8d57df30..faaa991d 100644 --- a/src/browser/components/SettingsPage.jsx +++ b/src/browser/components/SettingsPage.jsx @@ -1,6 +1,6 @@ const React = require('react'); const ReactDOM = require('react-dom'); -const {Button, Checkbox, Col, FormGroup, FormControl, ControlLabel, Grid, HelpBlock, Navbar, Row} = require('react-bootstrap'); +const {Button, Checkbox, Col, FormGroup, FormControl, ControlLabel, Grid, HelpBlock, Navbar, Radio, Row} = require('react-bootstrap'); const {ipcRenderer, remote} = require('electron'); const AutoLaunch = require('auto-launch'); @@ -280,19 +280,32 @@ const SettingsPage = React.createClass({ } if (process.platform === 'linux') { options.push( - - {'Icon theme (Need to restart the application)'} - - - - - ); + + {'Icon theme: '} + { + this.setState({trayIconTheme: 'light'}); + }} + >{'Light'} + {' '} + { + this.setState({trayIconTheme: 'dark'}); + }} + >{'Dark'} + + ); } if (process.platform === 'linux') {