26 lines
453 B
JavaScript
26 lines
453 B
JavaScript
|
|
|
||
|
|
|
||
|
|
import themeSelector from "../themeSelector.js";
|
||
|
|
|
||
|
|
import tools from '/unify/tools.js';
|
||
|
|
|
||
|
|
export default class themeOSSelectorItem extends themeSelector{
|
||
|
|
|
||
|
|
click() {
|
||
|
|
|
||
|
|
var osName = tools.CamelCase( this.selectLabel.text );
|
||
|
|
|
||
|
|
this.getRoot().os = osName;
|
||
|
|
|
||
|
|
|
||
|
|
this.parent.updateImages( this.getRoot().tint );
|
||
|
|
|
||
|
|
this.parents("appearancePanel").tint.themeTintSelectors.updateImages( osName )
|
||
|
|
|
||
|
|
this.highlight();
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
propegateEvent = false;
|
||
|
|
|
||
|
|
}
|