Skip to content

Commit

Permalink
GH-49 task bar icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Shay committed Apr 9, 2022
1 parent d88f5d6 commit bb7584a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main.htm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html window-frame="extended" window-blurbehind="dark" theme="dark" window-width="600">
<html window-frame="extended" window-blurbehind="dark" theme="dark" window-width="600" window-icon="window_icon.svg">

<head>
<title>Transmitic</title>
Expand Down Expand Up @@ -34,10 +34,10 @@
document.attributes["theme"] = "dark";

function replaceWindow() {
var [sx,sy,sw,sh] = Window.this.screenBox("workarea","xywh");
var [sx, sy, sw, sh] = Window.this.screenBox("workarea", "xywh");
const w = 1500 * devicePixelRatio;
const h = 900 * devicePixelRatio;
Window.this.move(sx + (sw - w)/2, sy + (sh - h)/2, w, h);
const h = 900 * devicePixelRatio;
Window.this.move(sx + (sw - w) / 2, sy + (sh - h) / 2, w, h);
}

let navLinks = [
Expand Down Expand Up @@ -130,8 +130,7 @@
}
}

document.ready = function ()
{
document.ready = function () {
replaceWindow();

let activeIndexStart = 0;
Expand All @@ -143,7 +142,7 @@
document.$("frame").src = navLinks[0].html;
}
document.$("div.nav-bar").content(<NavBar activeIndex={activeIndexStart} />);
}
}

</script>
</head>
Expand Down

0 comments on commit bb7584a

Please sign in to comment.