final polishes for first release

This commit is contained in:
Nathan Parikh 2017-09-01 08:50:49 -05:00
parent 3f08d93fb0
commit 570209a141
3 changed files with 35 additions and 14 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
node_modules node_modules
out/

View File

@ -42,13 +42,21 @@
height: 16px; height: 16px;
width: 16px; width: 16px;
border-radius: 100%; border-radius: 100%;
background: none;
border: 2px solid #000;
} }
#close-btn { #close-btn {
background: #ff0000; border-color: #ff2626;
} }
#close-btn:hover {
background: #ff2626;
}
#min-btn { #min-btn {
background: #ffa500; border-color: #ffbd45;
} }
#min-btn:hover {
background: #ffbd45;
}
#settings-btn { #settings-btn {
padding: 0; padding: 0;
@ -202,7 +210,7 @@
overflow-y: scroll; overflow-y: scroll;
} }
#tips { #tips {
font-size: 14px; font-size: 12px;
} }
#tips li { #tips li {
@ -220,13 +228,14 @@
/*Scrollbar*/ /*Scrollbar*/
::-webkit-scrollbar-corner { ::-webkit-scrollbar-corner {
background-color: rgba(0, 0, 0, 0); background-color: #000;
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
background-color: rgba(0, 0, 0, 100); background-color: rgba(0, 0, 0, 100);
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
width: .5em; width: .5em;
height: .5em;
} }
::-webkit-scrollbar-thumb:window-inactive, ::-webkit-scrollbar-thumb:window-inactive,
@ -285,8 +294,8 @@
<body> <body>
<header style="-webkit-app-region: drag" class="titlebar"> <header style="-webkit-app-region: drag" class="titlebar">
<div class="controls"> <div class="controls">
<button id="min-btn" onclick="close()">minimize</button> <button id="min-btn">-</button>
<button id="close-btn" onclick="close()">close</button> <button id="close-btn">x</button>
</div> </div>
<button id="settings-btn" onclick="toggleSettings()"><img src="images/icons8-Settings.png"></button> <button id="settings-btn" onclick="toggleSettings()"><img src="images/icons8-Settings.png"></button>
</header> </header>
@ -305,7 +314,8 @@
<ul id="coinlist"> <ul id="coinlist">
</ul> </ul>
</div><!-- #coinsearch --> </div><!-- #coinsearch -->
<!-- this stopped working for some reason
<h3>Choose Your Base Currency</h3> <h3>Choose Your Base Currency</h3>
<label class="custom-select"> <label class="custom-select">
<select id="base" onchange="setBase()"> <select id="base" onchange="setBase()">
@ -317,12 +327,13 @@
<option value="ETH">ETH</option> <option value="ETH">ETH</option>
</select> </select>
</label> </label>
-->
<h3>Tip Jar</h3> <h3>Tip Jar</h3>
<ul id="tips"> <ul id="tips">
<li>BTC: 17iENfaJkEpxGXW7mgdFh9hGMZV65R2zVL</li> <li>BTC: 17iENfaJkEpxGXW7mgdFh9hGMZV65R2zVL</li>
<li>ETH: 0x68b99868700b33A248de4A62a038a9e3b03DCA21</li> <li>ETH: 0x68b99868700b33A248de4A62a038a9e3b03DCA21</li>
<li>LTC: </li> <li>LTC: La8eCVjzLq8zrJV3LgyU6WtnyQnjs76LFY</li>
</ul> </ul>
<div class="creds"> <div class="creds">
@ -412,10 +423,19 @@
//user settings //user settings
const settings = require('electron-settings'); const settings = require('electron-settings');
settings.set('name', { settings.set('developer', {
first: 'Nathan', first: 'Nathan',
last: 'Parikh' last: 'Parikh'
}); });
//default coins
if(settings.has('user.coins')) {
//do nothing because coins already set
}
else {
settings.set('user', {
coins: 'BTC,ETH,LTC'
});
}
// Returns an array with values of the selected (checked) checkboxes in "frm" // Returns an array with values of the selected (checked) checkboxes in "frm"
function getSelectedChbox(frm) { function getSelectedChbox(frm) {
@ -581,7 +601,7 @@
}); });
} }
) )
setTimeout(function(){updateData()}, 500000); // run this once every 5 seconds setTimeout(function(){updateData()}, 5000); // run this once every 5 seconds
} }
// Let's do this thing! // Let's do this thing!

View File

@ -19,8 +19,8 @@ let mainWindow
function createWindow () { function createWindow () {
// Load the previous state with fallback to defaults // Load the previous state with fallback to defaults
let mainWindowState = windowStateKeeper({ let mainWindowState = windowStateKeeper({
defaultWidth: 360, defaultWidth: 320,
defaultHeight: 420 defaultHeight: 240
}); });
// Create the browser window. // Create the browser window.
mainWindow = new electron.BrowserWindow({ mainWindow = new electron.BrowserWindow({
@ -89,5 +89,4 @@ app.on('activate', function () {
}) })
// In this file you can include the rest of your app's specific main process // In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here. // code. You can also put them in separate files and require them here.