Closed denzndhauz closed 5 years ago
I check the li class attribute and it seems that the other buttons are hidden. (See Image Below)
@denzndhauz
Have you set blackTheme
to options.includeUI.theme
correctly?
const blackTheme = {
// main icons
'menu.normalIcon.path': '../assets/svg/icon-d.svg',
'menu.activeIcon.path': '../assets/svg/icon-b.svg',
'menu.disabledIcon.path': '../assets/svg/icon-a.svg',
'menu.hoverIcon.path': '../assets/svg/icon-c.svg',
// submenu icons
'submenu.normalIcon.path': '../assets/svg/icon-d.svg',
'submenu.activeIcon.path': '../assets/svg/icon-c.svg',
};
const imageEditor = new tui.ImageEditor('#tui-image-editor-container', {
includeUI: {
loadImage: {
path: 'img/sampleImage2.png',
name: 'SampleImage'
},
theme: blackTheme,
initMenu: 'filter',
menuBarPosition: 'bottom'
}
});
@junghwan-park I just missed the disabledIcon and hoverIcon path. Sorry my bad.
const blackTheme = {
// main icons
'menu.normalIcon.path': '../assets/svg/icon-a.svg',
'menu.activeIcon.path': '../assets/svg/icon-b.svg',
'menu.disabledIcon.path': '../assets/svg/icon-c.svg',
'menu.hoverIcon.path': '../assets/svg/icon-d.svg',
};
Thanks by the way. I'm going to close this issue now.
Version
"tui-image-editor": "^3.5.1"
Development Environment
Platform: Windows 10 Browser: Chrome 73.0.3683.75
Current Behavior
I already copied the SVG generated from tui-image-editor/dist/svg/ folder to a custom path ./assets/svg/ folder. then edit the theme config. Here's the them config code.
But there are still images are not found. (See image below)
and got this error.
Expected Behavior
It should load all the svg images based on the theme config above.