chore: review changes
This commit is contained in:
parent
baff4de406
commit
2da62b2e94
4 changed files with 9 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
export default (): "12" | "24" => {
|
||||
const format = settingsLoad().timeFormat ?? "Auto"
|
||||
const format = settingsLoad().timeFormat || "Auto"
|
||||
|
||||
if (format == "4:18 PM") {
|
||||
return "12"
|
||||
|
|
|
@ -6,13 +6,13 @@ export default () => {
|
|||
const runtimeConfig = useRuntimeConfig()
|
||||
const baseURL = runtimeConfig.app.baseURL;
|
||||
|
||||
let currentStyle = settingsLoad().selectedThemeStyle ?? (
|
||||
let currentStyle = settingsLoad().selectedThemeStyle || (
|
||||
prefersLight()
|
||||
? `${baseURL}themes/style/light.css`
|
||||
: `${baseURL}themes/style/dark.css`
|
||||
);
|
||||
|
||||
let currentLayout = settingsLoad().selectedThemeLayout ?? `${baseURL}themes/layout/gorb.css`
|
||||
let currentLayout = settingsLoad().selectedThemeLayout || `${baseURL}themes/layout/gorb.css`
|
||||
|
||||
if (styleLinkElement) {
|
||||
styleLinkElement.href = currentStyle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue