First commit
This commit is contained in:
44
application/demo/pages/appearance/rows/os.selector.list.js
Normal file
44
application/demo/pages/appearance/rows/os.selector.list.js
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
import themeOSSelector from './os.selector.js'
|
||||
|
||||
import tools from '/unify/tools.js';
|
||||
|
||||
|
||||
export default class osSelectorList{
|
||||
|
||||
themeWindows = new themeOSSelector("Windows");
|
||||
|
||||
themeMacOS = new themeOSSelector("macOS");
|
||||
|
||||
//themeAndroid = new themeOSSelector("Android");
|
||||
|
||||
updateImages( tint ) {
|
||||
|
||||
var camelCaseTint = tools.CamelCase( tint );
|
||||
|
||||
this.themeWindows.setImage("/assets/images/themeSelectors/windows" + camelCaseTint + ".png");
|
||||
|
||||
this.themeMacOS.setImage("/assets/images/themeSelectors/macos" + camelCaseTint + ".png");
|
||||
|
||||
//this.themeAndroid.setImage("/assets/images/themeSelectors/macos" + camelCaseTint + ".png");
|
||||
|
||||
}
|
||||
|
||||
create() {
|
||||
|
||||
this.themeWindows.highlight();
|
||||
|
||||
this.themeWindows.setImage('/assets/images/themeSelectors/windowsLight.png');
|
||||
|
||||
this.themeMacOS.setImage('/assets/images/themeSelectors/macosLight.png');
|
||||
|
||||
//this.themeAndroid.setImage('/assets/images/themeSelectors/macosLight.png');
|
||||
}
|
||||
|
||||
layers = 1;
|
||||
|
||||
margin = 4;
|
||||
|
||||
marginLeft = "auto";
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user