function changeTheme() {

  let cid = document.getElementById('myTheme');

  console.log('app change_theme ready');

  //console.log(cid.children.length)

  //console.log(cid.children[0].innerText)

  if(cid.children[0].innerText=='moon_stars') {

    set_localstorage('theme','dark');

    $$('.switch-theme i')['text']('sun_max');

    $$('body')['toggleClass']('dark');    

  } else {

    set_localstorage('theme','');

    document.body.classList.remove('dark');

    $$('.switch-theme i')['text']('moon_stars');

  }

}