Skip to content

Commit

Permalink
Add classes for green flag, pause, and stop all buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Aug 16, 2023
1 parent f38a147 commit 363134e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/packager/packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ cd "$(dirname "$0")"
${this.options.controls.greenFlag.enabled ? `
const greenFlagButton = document.createElement('img');
greenFlagButton.src = 'data:image/svg+xml,' + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16.63 17.5"><path d="M.75 2a6.44 6.44 0 017.69 0h0a6.44 6.44 0 007.69 0v10.4a6.44 6.44 0 01-7.69 0h0a6.44 6.44 0 00-7.69 0" fill="#4cbf56" stroke="#45993d" stroke-linecap="round" stroke-linejoin="round"/><path stroke-width="1.5" fill="#4cbf56" stroke="#45993d" stroke-linecap="round" stroke-linejoin="round" d="M.75 16.75v-16"/></svg>');
greenFlagButton.className = 'control-button';
greenFlagButton.className = 'control-button green-flag-button';
greenFlagButton.draggable = false;
greenFlagButton.addEventListener('click', () => {
scaffolding.greenFlag();
Expand All @@ -1300,7 +1300,7 @@ cd "$(dirname "$0")"
${this.options.controls.pause.enabled ? `
const pauseButton = document.createElement('img');
pauseButton.className = 'control-button';
pauseButton.className = 'control-button pause-button';
pauseButton.draggable = false;
let isPaused = false;
pauseButton.addEventListener('click', () => {
Expand All @@ -1324,7 +1324,7 @@ cd "$(dirname "$0")"
${this.options.controls.stopAll.enabled ? `
const stopAllButton = document.createElement('img');
stopAllButton.src = 'data:image/svg+xml,' + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill="#ec5959" stroke="#b84848" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M4.3.5h5.4l3.8 3.8v5.4l-3.8 3.8H4.3L.5 9.7V4.3z"/></svg>');
stopAllButton.className = 'control-button';
stopAllButton.className = 'control-button stop-all-button';
stopAllButton.draggable = false;
stopAllButton.addEventListener('click', () => {
scaffolding.stopAll();
Expand Down

0 comments on commit 363134e

Please sign in to comment.