Lines Matching refs:DoxygenAwesomeDarkModeToggle
30 class DoxygenAwesomeDarkModeToggle extends HTMLElement { class
42 DoxygenAwesomeDarkModeToggle.enableDarkMode(DoxygenAwesomeDarkModeToggle.userPreference)
46 DoxygenAwesomeDarkModeToggle.onSystemPreferenceChanged()
53 DoxygenAwesomeDarkModeToggle.onSystemPreferenceChanged()
62 toggleButton.title = DoxygenAwesomeDarkModeToggle.title
100 …return (!DoxygenAwesomeDarkModeToggle.systemPreference && localStorage.getItem(DoxygenAwesomeDarkM…
101 …(DoxygenAwesomeDarkModeToggle.systemPreference && !localStorage.getItem(DoxygenAwesomeDarkModeTogg…
105 DoxygenAwesomeDarkModeToggle.darkModeEnabled = userPreference
107 if(DoxygenAwesomeDarkModeToggle.systemPreference) {
108 … localStorage.setItem(DoxygenAwesomeDarkModeToggle.prefersLightModeInDarkModeKey, true)
110 localStorage.removeItem(DoxygenAwesomeDarkModeToggle.prefersDarkModeInLightModeKey)
113 if(!DoxygenAwesomeDarkModeToggle.systemPreference) {
114 … localStorage.setItem(DoxygenAwesomeDarkModeToggle.prefersDarkModeInLightModeKey, true)
116 localStorage.removeItem(DoxygenAwesomeDarkModeToggle.prefersLightModeInDarkModeKey)
119 DoxygenAwesomeDarkModeToggle.onUserPreferenceChanged()
124 DoxygenAwesomeDarkModeToggle.darkModeEnabled = true
128 DoxygenAwesomeDarkModeToggle.darkModeEnabled = false
135 DoxygenAwesomeDarkModeToggle.darkModeEnabled = DoxygenAwesomeDarkModeToggle.userPreference
136 DoxygenAwesomeDarkModeToggle.enableDarkMode(DoxygenAwesomeDarkModeToggle.darkModeEnabled)
140 DoxygenAwesomeDarkModeToggle.enableDarkMode(DoxygenAwesomeDarkModeToggle.darkModeEnabled)
144 DoxygenAwesomeDarkModeToggle.userPreference = !DoxygenAwesomeDarkModeToggle.userPreference
149 if(DoxygenAwesomeDarkModeToggle.darkModeEnabled) {
150 this.innerHTML = DoxygenAwesomeDarkModeToggle.darkModeIcon
152 this.innerHTML = DoxygenAwesomeDarkModeToggle.lightModeIcon
157 customElements.define("doxygen-awesome-dark-mode-toggle", DoxygenAwesomeDarkModeToggle);