Use Material UI; improve Preferences Page

New principles for our UI:

- Components should use inline styles whenever possible
- Let's shrink the size of main.css to < 100 lines over time so it just
contains typography and basic styles
- Always require just the individual component that is needed from
Material UI so that the whole library doesn't get loaded (important for
startup perf)
This commit is contained in:
Feross Aboukhadijeh
2016-08-22 17:53:29 -07:00
parent b4976d27f2
commit 1a01d7ed92
14 changed files with 234 additions and 383 deletions

View File

@@ -5,9 +5,12 @@ crashReporter.init()
const dragDrop = require('drag-drop')
const electron = require('electron')
const fs = require('fs')
const React = require('react')
const ReactDOM = require('react-dom')
const fs = require('fs')
// Required by Material UI -- adds `onTouchTap` event
require('react-tap-event-plugin')()
const config = require('../config')
const App = require('./views/app')