Skip to content

Commit

Permalink
feat(theme): add icons to the switch (sun and moon) and use accent-te…
Browse files Browse the repository at this point in the history
…xt color
  • Loading branch information
Joxit committed Mar 10, 2023
1 parent 8c3189b commit 8b377ae
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/components/docker-registry-ui.riot
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<a href="https://github.com/Joxit/docker-registry-ui/blob/main/LICENSE">License AGPL-3.0</a>
</li>
<li if="{ props.theme === 'auto' }">
<material-switch on-change="{ onThemeChange }" checked="{ state.themeSwitch }"></material-switch>
<material-switch
on-change="{ onThemeChange }"
checked="{ state.themeSwitch }"
track-selected-color="var(--accent-text)"
outline-selected-color="var(--accent-text)"
>
<i slot="thumb-icon" class="material-icons" style="color: white; font-size: 0.75em">wb_sunny</i>
<i slot="thumb-selected-icon" class="material-icons" style="color: #79747e; font-size: 0.75em">
brightness_2
</i>
</material-switch>
</li>
</ul>
</material-footer>
Expand Down Expand Up @@ -254,5 +264,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
material-footer .material-footer-logo {
color: var(--footer-text);
}
material-switch i {
user-select: none;
}
</style>
</docker-registry-ui>

0 comments on commit 8b377ae

Please sign in to comment.