mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
* Theme Switch: Refactor and add system option Before, we had no way to reset the theme option to the system default. This introduces that option and refactors the theme switch to work in a simpler manner. * Prevent account menu close on click inside Context: #5476
10 lines
550 B
Text
10 lines
550 B
Text
@model BTCPayServer.Components.ThemeSwitch.ThemeSwitchViewModel
|
|
|
|
<div class="btcpay-theme-switch @Model.CssClass">
|
|
<span class="btcpay-theme-switch-label">Theme</span>
|
|
<div class="btcpay-theme-switch-themes">
|
|
<button type="button" title="System" data-theme="system"><vc:icon symbol="themes-system"/></button>
|
|
<button type="button" title="Light" data-theme="light"><vc:icon symbol="themes-light"/></button>
|
|
<button type="button" title="Dark" data-theme="dark"><vc:icon symbol="themes-dark"/></button>
|
|
</div>
|
|
</div>
|