more css classes in side panel
dependencies hashes: openFrameworks d78075f4bca6be2a2533c6e51a75cc1f18404501 ofxMsdfgen e14da13d02c4dff04fb69d7923469f606924e6c3 ofxGPUFont d482bb7cbdf6b296fa4ab5abcf73fb5ff8c8b239 ofxVariableLab 0b5f9bdebc1e5550621957e73c040c258ec6317b ofxProfiler a868e34fa1a79189dd4fbdede2938e308535e5e8 theatre 86d3e07f6f2c75fd6e08fca8c97e3617c9e23b18
This commit is contained in:
parent
30c662f5a4
commit
77ffed0225
1 changed files with 20 additions and 0 deletions
|
@ -510,10 +510,26 @@ const Layer = function(tp, layerID, fontsAndAxes, autoInit = true) {
|
|||
panelPropContainer
|
||||
.classList
|
||||
.add(`${propKey}ContWrapper`);
|
||||
panelPropContainer
|
||||
.classList
|
||||
.add(`propContWrapper`);
|
||||
} else {
|
||||
panelPropContainer
|
||||
.classList
|
||||
.add(`${propKey}Wrapper`);
|
||||
panelPropContainer
|
||||
.classList
|
||||
.add(`propWrapper`);
|
||||
const inputElement = panelPropContainer
|
||||
.querySelector('input');
|
||||
if (inputElement !== null) {
|
||||
inputElement
|
||||
.classList
|
||||
.add(`${propKey}Input`);
|
||||
inputElement
|
||||
.classList
|
||||
.add(`propInput`);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log('Layer::findInjectPanel',
|
||||
|
@ -539,11 +555,15 @@ const Layer = function(tp, layerID, fontsAndAxes, autoInit = true) {
|
|||
const subFriendlyName = config.layer.friendlyNames[subUnfriendlyName];
|
||||
if (e.innerHTML === subUnfriendlyName) {
|
||||
e.innerHTML = subFriendlyName;
|
||||
e.classList.add('propTitle');
|
||||
e.classList.add(`${unfriendlyName}_${subUnfriendlyName}Title`);
|
||||
}
|
||||
});
|
||||
});
|
||||
} else {
|
||||
panelPropTitles[unfriendlyName].innerHTML = friendlyName;
|
||||
panelPropTitles[unfriendlyName].classList.add('propTitle');
|
||||
panelPropTitles[unfriendlyName].classList.add(`${unfriendlyName}Title`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue