PR: Custom Color Choice (#38)

This commit is contained in:
Jordan Vidrine
2025-03-11 14:45:04 -05:00
committed by GitHub
parent 664e3a5910
commit d1800ffd98
10 changed files with 183 additions and 3 deletions
@@ -0,0 +1,13 @@
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import Service from "@ember/service";
export default class customColor extends Service {
@tracked color = localStorage.getItem("d-customColor") || "horizon";
@action
setColor(color) {
this.color = color;
localStorage.setItem("d-customColor", color);
}
}