style: use PascalCase for enums
This commit is contained in:
parent
8178a1db6b
commit
184be67ccc
1 changed files with 7 additions and 7 deletions
|
@ -9,7 +9,7 @@
|
||||||
<div v-for="style of styles" class="theme-preview-container">
|
<div v-for="style of styles" class="theme-preview-container">
|
||||||
<span class="theme-instance"
|
<span class="theme-instance"
|
||||||
:title="style.displayName"
|
:title="style.displayName"
|
||||||
@click="changeTheme(styleLayout.style, style)">
|
@click="changeTheme(StyleLayout.Style, style)">
|
||||||
<div class="theme-content-container">
|
<div class="theme-content-container">
|
||||||
<span class="style-background"
|
<span class="style-background"
|
||||||
:style="{background:`linear-gradient(${style.previewGradient})`}"
|
:style="{background:`linear-gradient(${style.previewGradient})`}"
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
<div v-for="layout of layouts" class="theme-preview-container">
|
<div v-for="layout of layouts" class="theme-preview-container">
|
||||||
<div class="theme-instance"
|
<div class="theme-instance"
|
||||||
:title="layout.displayName"
|
:title="layout.displayName"
|
||||||
@click="changeTheme(styleLayout.layout, layout)">
|
@click="changeTheme(StyleLayout.Layout, layout)">
|
||||||
<div class="theme-content-container">
|
<div class="theme-content-container">
|
||||||
<span class="layout-background"
|
<span class="layout-background"
|
||||||
:style="{backgroundImage:`url(${layout.previewImageUrl})`}"
|
:style="{backgroundImage:`url(${layout.previewImageUrl})`}"
|
||||||
|
@ -65,9 +65,9 @@ const layoutFolder = `${baseURL}themes/layout`
|
||||||
|
|
||||||
const timeFormatTextStrings = ["Auto", "12-Hour", "24-Hour"]
|
const timeFormatTextStrings = ["Auto", "12-Hour", "24-Hour"]
|
||||||
|
|
||||||
enum styleLayout {
|
enum StyleLayout {
|
||||||
style,
|
Style,
|
||||||
layout
|
Layout
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Theme {
|
interface Theme {
|
||||||
|
@ -161,8 +161,8 @@ if (Array.isArray(layoutList)) {
|
||||||
await parseThemeLayout(layoutFolder, layoutList, layouts)
|
await parseThemeLayout(layoutFolder, layoutList, layouts)
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeTheme(themeType: styleLayout, theme: Theme) {
|
function changeTheme(themeType: StyleLayout, theme: Theme) {
|
||||||
if (themeType == styleLayout.style) {
|
if (themeType == StyleLayout.Style) {
|
||||||
settingSave("selectedThemeStyle", theme.themeUrl)
|
settingSave("selectedThemeStyle", theme.themeUrl)
|
||||||
} else {
|
} else {
|
||||||
settingSave("selectedThemeLayout", theme.themeUrl)
|
settingSave("selectedThemeLayout", theme.themeUrl)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue