Skip to content

Commit

Permalink
Add more fontawesome icons for media keys (#1381)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Jan 10, 2025
1 parent f0eb9fe commit ea4e23d
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 23 deletions.
14 changes: 13 additions & 1 deletion src/components/colorways/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
64 changes: 42 additions & 22 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,37 +28,47 @@ const i18n = new VueI18n({

import { library } from '@fortawesome/fontawesome-svg-core';
import {
faDownload,
faUpload,
faArrowUp,
faArrowDown,
faArrowLeft,
faArrowRight,
faExclamationTriangle,
faCog,
faCloudUploadAlt,
faKeyboard,
faArrowUp,
faBackward,
faBars,
faChevronLeft,
faChevronRight,
faPrint,
faUndo,
faTrash,
faTimes,
faChevronUp,
faCloudUploadAlt,
faCog,
faDownload,
faEject,
faExclamationTriangle,
faFastBackward,
faFastForward,
faForward,
faHatWizard,
faKeyboard,
faMagic,
faStar,
faChevronUp,
faSearch,
faMoon,
faPlay,
faPowerOff,
faPrint,
faQuestionCircle,
faSearch,
faStar,
faStop,
faTimes,
faTrash,
faUndo,
faUpload,
faVolumeDown,
faVolumeMute,
faVolumeUp,
faBars
faVolumeUp
} from '@fortawesome/free-solid-svg-icons';
import {
faApple,
faWindows,
faGithub,
faLinux,
faGithub
faWindows
} from '@fortawesome/free-brands-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import isObject from 'lodash/isObject';
Expand All @@ -84,30 +94,40 @@ const icons = [
faArrowLeft,
faArrowRight,
faArrowUp,
faBackward,
faBars,
faChevronLeft,
faChevronRight,
faChevronUp,
faCloudUploadAlt,
faCog,
faDownload,
faEject,
faExclamationTriangle,
faFastBackward,
faFastForward,
faForward,
faGithub,
faHatWizard,
faKeyboard,
faLinux,
faMagic,
faMoon,
faPlay,
faPowerOff,
faPrint,
faQuestionCircle,
faSearch,
faStar,
faTrash,
faStop,
faTimes,
faTrash,
faUndo,
faUpload,
faWindows,
faQuestionCircle,
faVolumeDown,
faVolumeMute,
faVolumeUp,
faVolumeMute
faWindows
];
library.add(...icons);

Expand Down

0 comments on commit ea4e23d

Please sign in to comment.