mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
remove random colors
This commit is contained in:
parent
2f30d28138
commit
e662e43288
@ -27,22 +27,22 @@
|
|||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
buttonText: String,
|
buttonText: String,
|
||||||
value: String
|
value: String,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialog: false,
|
dialog: false,
|
||||||
themeName: "",
|
themeName: "",
|
||||||
rules: {
|
rules: {
|
||||||
required: val => !!val || "Required."
|
required: (val) => !!val || "Required.",
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
color() {
|
color() {
|
||||||
this.updateColor();
|
this.updateColor();
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
randomColor() {
|
randomColor() {
|
||||||
@ -52,20 +52,20 @@ export default {
|
|||||||
const newTheme = {
|
const newTheme = {
|
||||||
name: this.themeName,
|
name: this.themeName,
|
||||||
colors: {
|
colors: {
|
||||||
primary: this.randomColor(),
|
primary: "#E58325",
|
||||||
accent: this.randomColor(),
|
accent: "#00457A",
|
||||||
secondary: this.randomColor(),
|
secondary: "#973542",
|
||||||
success: this.randomColor(),
|
success: "#5AB1BB",
|
||||||
info: this.randomColor(),
|
info: "#4990BA",
|
||||||
warning: this.randomColor(),
|
warning: "#FF4081",
|
||||||
error: this.randomColor()
|
error: "#EF5350",
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$emit("new-theme", newTheme);
|
this.$emit("new-theme", newTheme);
|
||||||
this.dialog = false;
|
this.dialog = false;
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user