I’d like to add toggle to let user change theme for ios from light to dark and vice versa. Will save in cookies. I also have photo browser and need to change theme same time.
What will be the right way to do that?
Thanks
I’d like to add toggle to let user change theme for ios from light to dark and vice versa. Will save in cookies. I also have photo browser and need to change theme same time.
What will be the right way to do that?
Thanks
this - это app.
//Если Cordova, то нужно добавить:
if (type != 'light') {
this.statusbar.setTextColor('white');
this.statusbar.setBackgroundColor('#1B1B1B');
} else {
this.statusbar.setTextColor('black');
this.statusbar.setBackgroundColor('');
}
//Код ниже - обязателен:
this.root.removeClass('theme-dark theme-light').addClass('theme-' + type);