-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7a1b60
commit d60e8ba
Showing
7 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// @ts-ignore | ||
import '@mux/mux-player/themes/daniel'; | ||
export default 'daniel'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ux-player/src/themes/classic/classic.html → .../mux-player/src/themes/daniel/daniel.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...es/mux-player/src/themes/classic/index.ts → ...ges/mux-player/src/themes/daniel/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
// @ts-ignore | ||
import theme from './classic.html'; | ||
import theme from './daniel.html'; | ||
import { document, globalThis } from '../../polyfills'; | ||
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js'; | ||
|
||
const template = document.createElement('template'); | ||
if ('innerHTML' in template) template.innerHTML = theme; | ||
|
||
class MediaThemeClassic extends MediaThemeElement { | ||
class MediaThemeDaniel extends MediaThemeElement { | ||
static template = template.content?.children?.[0]; | ||
} | ||
|
||
if (!globalThis.customElements.get('media-theme-classic')) { | ||
globalThis.customElements.define('media-theme-classic', MediaThemeClassic); | ||
if (!globalThis.customElements.get('media-theme-daniel')) { | ||
globalThis.customElements.define('media-theme-daniel', MediaThemeDaniel); | ||
} | ||
|
||
export default MediaThemeClassic; | ||
export default MediaThemeDaniel; |