Files
Unify/application/demo/pages/appearance/themeSelector.js

46 lines
683 B
JavaScript
Raw Normal View History

2025-12-25 11:16:59 +01:00
import themeSelectorImage from "./themeSelector.image.js";
import themeSelectorLabel from "./themeSelector.label.js";
export default class themeSelector{
flexDirection = "column";
marginBottom = 20;
constructor( name ) {
this.selectLabel.text = name;
}
highlight() {
var children = this.parent.getChildren();
for (var i = 0; i < children.length; i++) {
children[i].selectImage.lowLight();
}
this.selectImage.highlight();
}
setImage( image ) {
this.selectImage.backgroundImage = "url("+image+")";
}
selectImage = new themeSelectorImage();
selectLabel = new themeSelectorLabel();
}