Skip to content

Commit

Permalink
Stop_button_red_on_keyboard_shortcut
Browse files Browse the repository at this point in the history
small_change

small_chang
  • Loading branch information
kaurjasleen240305 committed Jan 10, 2024
1 parent ed8f9ae commit 9992a21
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -2279,6 +2279,10 @@ class Activity {
break;
case 82: // 'R'
this.textMsg("Alt-R " + _("Play"));
let stopbtn = document.getElementById("stop");
if (stopbtn) {
stopbtn.style.color = platformColor.stopIconcolor;
}
this._doFastButton();
break;
case 83: // 'S'
Expand Down
4 changes: 2 additions & 2 deletions js/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

/*
global _, jQuery, _THIS_IS_MUSIC_BLOCKS_, docById, doSVG, fnBrowserDetect,
RECORDBUTTON
RECORDBUTTON, platformColor
*/

/* exported Toolbar */
Expand All @@ -24,7 +24,7 @@ class Toolbar {
* @constructor
*/
constructor() {
this.stopIconColorWhenPlaying = "#ea174c";
this.stopIconColorWhenPlaying = window.platformColor.stopIconcolor;
this.language = localStorage.languagePreference;
if (this.language === undefined) {
this.language = navigator.language;
Expand Down
1 change: 1 addition & 0 deletions js/utils/platformstyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ window.platformColor = {
pitchLabelBackground: "#77C428",
graphicsLabelBackground: "#728FF9",
rhythmcellcolor: "#c8c8c8",
stopIconcolor : "#ea174c",
hitAreaGraphicsBeginFill: "#FFF",
orange: "#e37a00", // 5YR
piemenuBasic: ["#3ea4a3", "#60bfbc", "#1d8989", "#60bfbc", "#1d8989"],
Expand Down
2 changes: 1 addition & 1 deletion planet/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Music Blocks is a collection of tools for exploring musical concepts.</title>
<title>Music Blocks</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--Import Google Icon Font-->
<link type="text/css" href="fonts/material-icons.css" rel="stylesheet">
Expand Down

0 comments on commit 9992a21

Please sign in to comment.