Skip to content

Commit 2efd93a

Browse files
committed
Consider theme customizations for displayed default waveform color
1 parent 706e0ec commit 2efd93a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • entry_types/scrolled/package/src/contentElements/inlineAudio

entry_types/scrolled/package/src/contentElements/inlineAudio/editor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ editor.contentElementTypes.register('inlineAudio', {
2828
},
2929

3030
configurationEditor({entry, contentElement}) {
31-
const themeOptions = entry.getTheme().get('options');
31+
const themeProperties = entry.getThemeProperties();
3232
const invert = contentElement.section.configuration.get('invert');
3333

3434
this.tab('general', function() {
@@ -66,8 +66,8 @@ editor.contentElementTypes.register('inlineAudio', {
6666
alpha: true,
6767
visibleBinding: 'playerControlVariant',
6868
visible: variant => variant?.startsWith('waveform'),
69-
defaultValue: themeOptions.properties?.root?.accent_color ||
70-
themeOptions.colors?.accent,
69+
defaultValue: themeProperties.root?.accentColor ||
70+
themeProperties.colors?.accent,
7171
swatches: entry.getUsedContentElementColors('waveformColor')
7272
});
7373

0 commit comments

Comments
 (0)