Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
More minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xeniarose committed Mar 8, 2017
1 parent f1b0e02 commit 29bc7b8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DomUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,11 +557,11 @@ class DomUtils {
if(cb) setTimeout(cb, 500);
}
try {
nw.Window.get().capturePage(function(res){
/*nw.Window.get().capturePage(function(res){
if(!bg.parentElement.classList.contains("active"))
bg.style.backgroundImage = "url(" + res + ")";
complete();
});
});*/complete();
} catch(e){
// nw sometimes fails to capture with "unknown error"
// so we ignore it and open the dialog anyway
Expand Down
1 change: 1 addition & 0 deletions default-widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ class Meter extends Widget {
this.root.appendChild(el);
this._valLabel = document.createElement("label");
this._valLabel.style.width = this._valLabel.style.minWidth = "4em";
this._valLabel.style.display = "flex";
this.root.appendChild(this._valLabel);
}

Expand Down
3 changes: 1 addition & 2 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,6 @@ body.vfx-allowed .dialog-screen {
width: 100%;
height: 100%;
z-index: 99999;
background: white;
}

.dialog-bg-inner {
Expand All @@ -646,7 +645,7 @@ body.vfx-allowed .dialog-bg {
}

body.vfx-allowed .dialog-bg-inner {
-webkit-filter: blur(10px);
/*-webkit-filter: blur(3px);*/
}

.dialog-bg.active {
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,9 @@ SmartDashboard.loadWidgets = function(){

if(widgets.length > 20) {
DomUtils.openBlurredDialog("#update-screen", function() {
next(i, widgets, progress, status);
setTimeout(function() {
next(i, widgets, progress, status);
}, 1000);
});
} else {
next(i, widgets, progress, status);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"main": "launcher.html",
"name": "SmartDashboard.js",
"description": "Unofficial FRC SmartDashboard in nw.js",
"version": "0.1.12a",
"version": "0.1.12b",
"keywords": [
"frc",
"smartdashboard"
Expand Down
2 changes: 1 addition & 1 deletion themes/DriverStation.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Automatically copied, do not edit */

body, .container, .dialog-bg {
body, .container {
background: #2A2A2A;
color: white;
}
Expand Down

0 comments on commit 29bc7b8

Please sign in to comment.