diff --git a/src/app/appState.js b/src/app/appState.js index 96e13ff..e34c4de 100644 --- a/src/app/appState.js +++ b/src/app/appState.js @@ -6,8 +6,8 @@ export default class AppState { this.uiTheme = persistData.uiTheme || 'dark'; this.debugMode = false; - this.version = 1; - this.persistedVersion = persistData.version || 0.9; + this.version = 2; + this.persistedVersion = persistData.version || 0.1; this.wasOldVersion = persistData.version && this.version > this.persistedVersion; } diff --git a/src/app/commands.js b/src/app/commands.js index b4f3f8e..5e07e23 100644 --- a/src/app/commands.js +++ b/src/app/commands.js @@ -35,6 +35,9 @@ export default { 'light': function () { appState.setUiTheme('light'); }, + 'midnight': function() { + appState.setUiTheme('midnight'); + }, 'about': function(c) { appState.addCommandResult(new AboutResult(c.input)); }, diff --git a/src/app/components/AppRoot.jsx b/src/app/components/AppRoot.jsx index f7d3c55..fd1456a 100644 --- a/src/app/components/AppRoot.jsx +++ b/src/app/components/AppRoot.jsx @@ -28,7 +28,7 @@ export default class AppRoot extends React.Component { render() { return
-

BitwiseCmd

+

BitwiseCmd

diff --git a/src/app/components/results/WhatsnewResultView.jsx b/src/app/components/results/WhatsnewResultView.jsx index 7557975..9c1e360 100644 --- a/src/app/components/results/WhatsnewResultView.jsx +++ b/src/app/components/results/WhatsnewResultView.jsx @@ -1,11 +1,15 @@ import React from 'react' +import CommandLink from '../misc/CommandLink' export default class WhatsnewResultView extends React.Component { render() { return

BitwiseCmd Changelog

-

May 16th, 2017 Complete rewrite using React. Old implementation is available at http://bitwisecmd.com/old.

+

May 20th, 2017 New theme added.

+
+
+

May 16th, 2017 Complete rewrite using React. Old implementation is available at http://bitwisecmd.com/old.

Please let me know if you have problems with this release by creating issue in Github Repo.

; diff --git a/src/css/styles.css b/src/css/styles.css index 694c6bb..66757c5 100644 --- a/src/css/styles.css +++ b/src/css/styles.css @@ -4,6 +4,8 @@ html { height: 100% } .app-root { font-family: Verdana; font-size: 0.8em; margin: 0; padding: 20px 100px 0 100px; height: 100%; overflow: auto; } code { font-size: 1.2em; font-weight: bold; } +.header-cmd { color: #c5c5c5 } + .top-links { position: absolute; right: 10px; top: 10px; list-style-type: none; margin: 0 } .top-links li { float: left; } .top-links a { display: inline-block; padding: 10px 15px} @@ -43,6 +45,10 @@ code { font-size: 1.2em; font-weight: bold; } .indicator { padding: 2px 5px; font-family: monospace; font-size: 1.3em; background: transparent; border: none; cursor: pointer } .error { color: maroon; } +.soft { opacity: 0.7 } + +.changelog .item { margin-top: 2em; } + #view { padding: 10px} .cur { color: lightgray; } @@ -50,12 +56,15 @@ code { font-size: 1.2em; font-weight: bold; } .icon { width: 16px; height: 16px; display: inline-block; } .light .twitter { background: url('../img/twitter-light.png') } .dark .twitter { background: url('../img/twitter-dark.png') } +.midnight .twitter { background: url('../img/twitter-dark.png') } .light .feedback { background: url('../img/feedback-light.png') } .dark .feedback { background: url('../img/feedback-dark.png') } +.midnight .feedback { background: url('../img/feedback-dark.png') } -.dark .github { background: url('../img/github-dark.png') } .light .github { background: url('../img/github-light.png') } +.dark .github { background: url('../img/github-dark.png') } +.midnight .github { background: url('../img/github-dark.png') } /* Light */ .light { background: #fafafa; } @@ -69,6 +78,7 @@ code { font-size: 1.2em; font-weight: bold; } .light .hashLink, .light .hashLink:visited { color: #ddd } .light .hashLink:hover { color: #888 } .light ul.top-links li:hover { background: #ddd } +.light .error { color: #da586d } /* Dark */ .dark { background: #121212; color: white;} @@ -83,7 +93,25 @@ code { font-size: 1.2em; font-weight: bold; } .dark .hashLink, .dark .hashLink:visited { color: #333 } .dark .hashLink:hover { color: #999 } .dark ul.top-links li:hover { background: #333 } -.dark .error { color: mediumvioletred} +.dark .error { color: #da586d} + +/* + Midnight Theme +*/ +.midnight .header-cmd { color: #85a0ad } +.midnight { background: #2c3e50; color: white } +.midnight .expression { color: white;} +.midnight .expressionInput { background: #2c3e50; color: white; border-color: #85a0ad } +.midnight a, .dark a:visited { color: white; } +.midnight .indicator { color: #85a0ad; } +.midnight .on { color: white; } +.midnight .zero { color: #85a0ad;} +.midnight .prefix { color: #85a0ad} +.midnight .other { color: #9FBAC7;} +.midnight .hashLink, .dark .hashLink:visited { color: #333 } +.midnight .hashLink:hover { color: #85a0ad } +.midnight ul.top-links li:hover { background: #132537 } +.midnight .error { color:#da586d} /* Top Links Shrink */ @media (max-width: 800px) {