From 89fb24ffbc452eb91da1eb1767841ac98e0d75b6 Mon Sep 17 00:00:00 2001 From: fauxpark Date: Fri, 20 Dec 2024 13:07:43 +1100 Subject: [PATCH] Add more fontawesome icons for media keys --- src/components/colorways/index.js | 14 +++++++++++++- src/main.js | 22 +++++++++++++++++++++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/components/colorways/index.js b/src/components/colorways/index.js index ec3efa57c4..966716e16e 100644 --- a/src/components/colorways/index.js +++ b/src/components/colorways/index.js @@ -20,7 +20,19 @@ export default { KC_DOWN: 'arrow-down', KC_LEFT: 'arrow-left', KC_RGHT: 'arrow-right', - KC_APP: 'bars' + KC_APP: 'bars', + KC_PWR: 'power-off', + KC_SLEP: 'moon', + KC_EJCT: 'eject', + KC_MPLY: 'play', + KC_MSTP: 'stop', + KC_MRWD: 'backward', + KC_MFFD: 'forward', + KC_MPRV: 'fast-backward', + KC_MNXT: 'fast-forward', + KC_MUTE: 'volume-mute', + KC_VOLD: 'volume-down', + KC_VOLU: 'volume-up' }, /** * returns the correct icons for the identified platform diff --git a/src/main.js b/src/main.js index f765819446..b92c0c54a8 100644 --- a/src/main.js +++ b/src/main.js @@ -49,7 +49,17 @@ import { faChevronUp, faSearch, faQuestionCircle, + faPowerOff, + faMoon, + faEject, + faPlay, + faStop, + faBackward, + faForward, + faFastBackward, + faFastForward, faVolumeMute, + faVolumeDown, faVolumeUp, faBars } from '@fortawesome/free-solid-svg-icons'; @@ -105,7 +115,17 @@ const icons = [ faWindows, faQuestionCircle, faVolumeUp, - faVolumeMute + faVolumeDown, + faVolumeMute, + faPowerOff, + faMoon, + faEject, + faPlay, + faStop, + faBackward, + faForward, + faFastBackward, + faFastForward ]; library.add(...icons);