React = require 'react' _ = require 'underscore' {RetinaImg, Flexbox} = require 'nylas-component-kit' class AppearanceModeOption extends React.Component @propTypes: mode: React.PropTypes.string.isRequired active: React.PropTypes.bool onClick: React.PropTypes.func constructor: (@props) -> render: => classname = "appearance-mode" classname += " active" if @props.active
{@props.mode} View
class PreferencesAppearance extends React.Component @displayName: 'PreferencesAppearance' @propTypes: config: React.PropTypes.object render: =>
Layout and theme:
{['list', 'split'].map (mode) => @props.config.set('core.workspace.mode', mode)} /> }
@props.config.toggleContains('core.themes', 'ui-dark')} />
module.exports = PreferencesAppearance