|
|
|
@ -1,11 +1,13 @@
|
|
|
|
|
@using System
|
|
|
|
|
|
|
|
|
|
@namespace DiscordChatExporter.Core.Exporting.Writers.Html
|
|
|
|
|
@inherits MiniRazor.TemplateBase<DiscordChatExporter.Core.Exporting.Writers.Html.PreambleTemplateContext>
|
|
|
|
|
@inherits MiniRazor.TemplateBase<PreambleTemplateContext>
|
|
|
|
|
|
|
|
|
|
@{
|
|
|
|
|
var isDarkTheme = string.Equals(Model.ThemeName, "Dark", StringComparison.OrdinalIgnoreCase);
|
|
|
|
|
|
|
|
|
|
string Themed(string darkVariant, string lightVariant) => isDarkTheme ? darkVariant : lightVariant;
|
|
|
|
|
string Themed(string darkVariant, string lightVariant) =>
|
|
|
|
|
string.Equals(Model.ThemeName, "Dark", StringComparison.OrdinalIgnoreCase)
|
|
|
|
|
? darkVariant
|
|
|
|
|
: lightVariant;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|