Skip to content

Commit

Permalink
added OMV theme
Browse files Browse the repository at this point in the history
  • Loading branch information
SelfhostedPro committed Oct 30, 2020
1 parent fd8f1ed commit b4a8921
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions backend/api/db/crud/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ def refresh_template(db: Session, template_id: id):
)
items.append(template_content)
except Exception as exc:
if hasattr(exc, 'code') and exc.code == 404:
if hasattr(exc, "code") and exc.code == 404:
raise HTTPException(status_code=exc.code, detail=exc.url)
else:
else:
print("Template update failed. ERR_001", exc)
raise HTTPException(status_code=exc.status_code, detail=exc.explanation)
else:
Expand Down
36 changes: 18 additions & 18 deletions frontend/src/plugins/vuetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ function theme() {
secondary: "#424242",
background: "#000000",
tabs: "#1E1E1E",
foreground: "#1E1E1E"
foreground: "#1E1E1E",
},
light: {
primary: "#41b883",
secondary: "#c4c4c4",
background: "#FFFFFF",
tabs: "#FFFFFF",
foreground: "#FFFFFF"
}
foreground: "#FFFFFF",
},
},
dark: true,
options: {
customProperties: true
}
}
customProperties: true,
},
},
},
DigitalOcean: {
theme: {
Expand All @@ -38,20 +38,20 @@ function theme() {
secondary: "#F3F5F9",
background: "#FFFFFF",
tabs: "#FFFFFF",
foreground: "#FFFFFF"
foreground: "#FFFFFF",
},
dark: {
primary: "#008bcf",
secondary: "#424242",
background: "#000000",
tabs: "#1E1E1E",
foreground: "#1E1E1E"
}
foreground: "#1E1E1E",
},
},
options: {
customProperties: true
}
}
customProperties: true,
},
},
},
OMV: {
theme: {
Expand All @@ -62,20 +62,20 @@ function theme() {
secondary: "#5DACDF",
background: "#FFFFFF",
tabs: "#5DACDF",
foreground: "#ECEFF1"
foreground: "#ECEFF1",
},
dark: {
primary: "#3A6D9C",
secondary: "#2B5174",
background: "#132433",
tabs: "#333B53",
foreground: "#333B53"
}
foreground: "#333B53",
},
},
options: {
customProperties: true
}
}
customProperties: true,
},
},
},
};
return presetThemes[process.env.VUE_APP_THEME || "Default"];
Expand Down

0 comments on commit b4a8921

Please sign in to comment.