diff --git a/README.md b/README.md index 2cc2550..1bbaa02 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,9 @@ - re-fetches everything automatically every minute - balances are fetched via etherscan.io API - spot prices are fetched from coingecko.com API +- detects system locale for number formatting +- detects dark appearance setting and switches to dark theme automatically (macOS only) +- detects system accent color and uses it as primary color (macOS & Windows only) - currently highly optimized for macOS, your mileage on Windows or Linux may vary ## Download diff --git a/package.json b/package.json index 553ea54..7d27087 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "blowfish", "productName": "Blowfish", - "version": "1.0.0", + "version": "1.0.1", "description": "🐡 Simple Electron-based desktop app to retrieve and display your total Ocean Token balances.", "main": "./src/main.js", "scripts": { @@ -42,7 +42,7 @@ "babel-loader": "^8.0.6", "copy-webpack-plugin": "^5.0.3", "css-loader": "^2.1.1", - "electron": "^5.0.1", + "electron": "^6.0.0-beta.3", "electron-builder": "^20.40.2", "electron-devtools-installer": "^2.2.4", "electron-store": "^3.2.0", diff --git a/src/app/App.css b/src/app/App.css index f2dc3f0..85dd15f 100644 --- a/src/app/App.css +++ b/src/app/App.css @@ -58,9 +58,10 @@ h5 { font-weight: 700; } -a { - color: #f6388a; +a, +button { text-decoration: none; + cursor: default; } a h1 { diff --git a/src/app/components/Ticker.css b/src/app/components/Ticker.css index 033e2db..11807f2 100644 --- a/src/app/components/Ticker.css +++ b/src/app/components/Ticker.css @@ -31,24 +31,6 @@ border-color: #303030; } -.ticker button:not(:disabled):hover { - border-color: #f6388a; - color: #f6388a; -} - -.ticker button.active, -.ticker button.active:hover { - border-color: #e2e2e2; - background: #f6388a; - color: #fff; -} - -.dark .ticker button.active, -.dark .ticker button.active:hover { - border-color: #303030; - color: #fff !important; -} - .label--price { display: inline-block; font-size: .95rem; diff --git a/src/app/components/Ticker.jsx b/src/app/components/Ticker.jsx index e790286..2cbefb8 100644 --- a/src/app/components/Ticker.jsx +++ b/src/app/components/Ticker.jsx @@ -12,7 +12,19 @@ export default class Ticker extends PureComponent { static contextType = AppContext render() { - const { toggleCurrencies, needsConfig, currency, prices } = this.context + const { + toggleCurrencies, + needsConfig, + currency, + prices, + accentColor + } = this.context + + const activeStyle = { + backgroundColor: accentColor, + color: '#fff', + borderColor: accentColor + } return (