Skip to content

Commit

Permalink
bugs fixed & dark mode optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
RoderickQiu committed Feb 16, 2020
1 parent cf6ece6 commit 29c247e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wnr",
"version": "1.11.0",
"version": "1.11.1",
"description": "It's a timer app with strong expansibility for computers. The name is an abbr of \"Work and Rest\".",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ function isInDark() {
$('body').css('color', '#aaaaaa');
$('hr').css('border-color', '#666666');
$('#title').css('color', '#aaaaaa');
$('.settings-sidebar-block').css('color', '#fefefe');
$('.settings-sidebar-block').css('background-color', '#393939');
} else {
$('body').append('<style>::-webkit-scrollbar-track {background-color: #fefefe;}</style>');
$('body').append('<style>::-webkit-scrollbar-thumb {background-color: #5555558f;}</style>');
Expand Down
6 changes: 5 additions & 1 deletion res/builder/mac.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Platform = builder.Platform
const config = {
"mac": {
"target": [
"dir"
"dmg"
],
"icon": "res/icons/iconMac.icns",
"darkModeSupport": true,
Expand All @@ -14,6 +14,10 @@ const config = {
"!res/icons/*Win*",
"!res/icons/*.psd",
]
},
"dmg": {
icon: "res/icons/iconMac.icns",
backgroundColor: "#fefefe"
}
}

Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ li {
}

.settings-sidebar-block-highlighted {
color: #fefefe;
background-color: #5490eac2;
color: #fefefe !important;
background-color: #5490eac2 !important;
}

.underlined {
Expand Down
4 changes: 2 additions & 2 deletions timer.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ <h3>
$('#backindex2').attr('title', i18n.__('back-index'));
$('#backer').css('display', 'none');
$('#skipper').attr('title', i18n.__('skipper'));
if (systemName == "darwin") $("#controller").css("display", "none");
if (process.platform == "darwin") $("#controller").css("display", "none");
</script>
</div>
</div><!-- for things with 'work' mark, when it's resting, the color should be changed -->
<div id="bottom-bar">&nbsp;</div>
<script>
if (systemName == "darwin") {
if (process.platform == "darwin") {
$("#win-hider").css("display", "none");
$("#no-use-space").css("display", "none");
}
Expand Down

0 comments on commit 29c247e

Please sign in to comment.