/>
</Helmet>
);
- } else if (this.props.defaultTheme != "browser") {
+ } else if (
+ this.props.defaultTheme != "browser" &&
+ this.props.defaultTheme != "browser-compact"
+ ) {
return (
<Helmet>
<link
/>
</Helmet>
);
+ } else if (this.props.defaultTheme == "browser-compact") {
+ return (
+ <Helmet>
+ <link
+ rel="stylesheet"
+ type="text/css"
+ href="/css/themes/litely-compact.css"
+ id="default-light"
+ media="(prefers-color-scheme: light)"
+ />
+ <link
+ rel="stylesheet"
+ type="text/css"
+ href="/css/themes/darkly-compact.css"
+ id="default-dark"
+ media="(prefers-color-scheme: no-preference), (prefers-color-scheme: dark)"
+ />
+ </Helmet>
+ );
} else {
return (
<Helmet>
<option value="browser">
{I18NextService.i18n.t("browser_default")}
</option>
+ <option value="browser-compact">
+ {I18NextService.i18n.t("browser_default_compact")}
+ </option>
{this.props.themeList?.map(theme => (
<option key={theme} value={theme}>
{theme}
<option value="browser">
{I18NextService.i18n.t("browser_default")}
</option>
+ <option value="browser-compact">
+ {I18NextService.i18n.t("browser_default_compact")}
+ </option>
<option disabled aria-hidden="true">
──
</option>
<option value="browser">
{I18NextService.i18n.t("browser_default")}
</option>
+ <option value="browser-compact">
+ {I18NextService.i18n.t("browser_default_compact")}
+ </option>
{this.state.themeList.map(theme => (
<option key={theme} value={theme}>
{theme}