Skip to content

Commit 77c599a

Browse files
committed
Minor bugfixes: Update address bar theme color when changing color theme, hide mobile track editor selection outline in light theme, use correct hover box width in desktop track editor, various html tweaks.
1 parent af6a616 commit 77c599a

File tree

7 files changed

+11
-14
lines changed

7 files changed

+11
-14
lines changed

editor/ColorConfig.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ namespace beepbox {
225225

226226
public static setTheme(name: string): void {
227227
this._styleElement.textContent = this.themes[name];
228+
229+
const themeColor = <HTMLMetaElement> document.querySelector("meta[name='theme-color']");
230+
if (themeColor != null) {
231+
themeColor.setAttribute("content", getComputedStyle(document.documentElement).getPropertyValue('--ui-widget-background'));
232+
}
228233
}
229234
}
230235
}

editor/TrackEditor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace beepbox {
9696
this._downHighlight,
9797
this._playhead,
9898
);
99-
private readonly _select: HTMLSelectElement = HTML.select({className: "trackSelectBox", style: "background: none; border: none; appearance: none; color: transparent; position: absolute; touch-action: none;"});
99+
private readonly _select: HTMLSelectElement = HTML.select({className: "trackSelectBox", style: "background: none; border: none; appearance: none; border-radius: initial; box-shadow: none; color: transparent; position: absolute; touch-action: none;"});
100100
public readonly container: HTMLElement = HTML.div({class: "noSelection", style: "height: 128px; position: relative; overflow:hidden;"}, this._svg, this._select);
101101

102102

@@ -802,6 +802,7 @@ namespace beepbox {
802802
this._boxHighlight.setAttribute("x", "" + (1 + this._barWidth * bar));
803803
this._boxHighlight.setAttribute("y", "" + (1 + (this._channelHeight * channel)));
804804
this._boxHighlight.setAttribute("height", "" + (this._channelHeight - 2));
805+
this._boxHighlight.setAttribute("width", "" + (this._barWidth - 2));
805806
this._boxHighlight.style.visibility = "visible";
806807
} else {
807808
this._boxHighlight.style.visibility = "hidden";

website/2_3/index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
font-size: 30px;
2424
text-align: center;
2525
}
26-
.centerDiv {
27-
margin: 0px auto;
28-
}
2926
a {
3027
color: #98f;
3128
}

website/beepbox_offline_template.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
margin-bottom: 0.5em;
6060
-webkit-text-stroke-width: 0;
6161
}
62-
.centerDiv {
63-
margin: 0px auto;
64-
}
6562
a {
6663
color: var(--link-accent, #98f);
6764
}

website/competition/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>BeepBox Competition</title>
77
<meta name="mobile-web-app-capable" content="yes" />
88
<meta name="apple-mobile-web-app-capable" content="yes" />
9-
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
9+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
1010
<meta name="theme-color" content="#444" />
1111
<meta name="format-detection" content="telephone=no" />
1212
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" rel="stylesheet" media="none" onload="if (this.media != 'all') this.media='all';" /> <!-- this is a trick to load CSS asynchronously. -->

website/index.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<meta name="application-name" content="BeepBox" />
88
<meta name="apple-mobile-web-app-title" content="BeepBox">
99
<meta name="description" content="BeepBox is an online tool for sketching and sharing instrumental melodies." />
10-
<meta name="keywords" content="chiptune, instrumental, music, melody, composition, tool, square wave, NES, NSF, BeepBox" />
10+
<meta name="keywords" content="chiptune, instrumental, music, song, melody, composition, tool, free, BeepBox" />
1111
<meta name="mobile-web-app-capable" content="yes" />
1212
<meta name="apple-mobile-web-app-capable" content="yes" />
13-
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
13+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
1414
<meta name="theme-color" content="#444" />
1515
<meta name="msapplication-TileColor" content="#603cba" />
1616
<meta name="msapplication-config" content="/browserconfig.xml" />
@@ -67,9 +67,6 @@
6767
margin-bottom: 0.5em;
6868
-webkit-text-stroke-width: 0;
6969
}
70-
.centerDiv {
71-
margin: 0px auto;
72-
}
7370
a {
7471
color: var(--link-accent, #98f);
7572
}

website/index_debug.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>BeepBox DEBUG</title>
77
<meta name="mobile-web-app-capable" content="yes" />
88
<meta name="apple-mobile-web-app-capable" content="yes" />
9-
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
9+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
1010
<meta name="theme-color" content="#444" />
1111
<meta name="format-detection" content="telephone=no" />
1212
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" rel="stylesheet" media="none" onload="if (this.media != 'all') this.media='all';" /> <!-- this is a trick to load CSS asynchronously. -->

0 commit comments

Comments
 (0)