Merge pull request #490 from feross/smaller-ui

UI tweaks: Reduce font size, list item height, single torrent status line
This commit is contained in:
Feross Aboukhadijeh
2016-05-12 16:51:20 -07:00
3 changed files with 44 additions and 38 deletions

View File

@@ -80,7 +80,7 @@ function createWebTorrentHiddenWindow () {
}
var HEADER_HEIGHT = 37
var TORRENT_HEIGHT = 120
var TORRENT_HEIGHT = 100
function createMainWindow () {
if (windows.main) {
@@ -97,7 +97,7 @@ function createMainWindow () {
titleBarStyle: 'hidden-inset', // Hide OS chrome, except traffic light buttons (OS X)
useContentSize: true, // Specify web page size without OS chrome
width: 500,
height: HEADER_HEIGHT + (TORRENT_HEIGHT * 5) // header height + 4 torrents
height: HEADER_HEIGHT + (TORRENT_HEIGHT * 6) // header height + 5 torrents
})
win.loadURL(config.WINDOW_MAIN)
if (process.platform === 'darwin') {