File tree Expand file tree Collapse file tree
entry_types/scrolled/package/src/contentElements/inlineAudio Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments