feat(core): change theme color and stars count
This commit is contained in:
@@ -323,17 +323,17 @@ export const Theme = definePreset(Aura, {
|
||||
transitionDuration: "{transition.duration}"
|
||||
},
|
||||
primary: {
|
||||
50: "#fffdea",
|
||||
100: "#fff7c2",
|
||||
200: "#ffef85",
|
||||
300: "#ffe24d",
|
||||
400: "#ffd700",
|
||||
500: "#e6c200",
|
||||
600: "#bfa100",
|
||||
700: "#997f00",
|
||||
800: "#735f00",
|
||||
900: "#4d3f00",
|
||||
950: "#1f1600"
|
||||
50: "#fff9ec",
|
||||
100: "#fff3d4",
|
||||
200: "#ffe7a8",
|
||||
300: "#ffdb70", // deine gewünschte Farbe als Kern
|
||||
400: "#ffcf38",
|
||||
500: "#ffdb70", // Hauptfarbe
|
||||
600: "#e6c35f",
|
||||
700: "#bf9e4a",
|
||||
800: "#997a36",
|
||||
900: "#735625",
|
||||
950: "#4d3817"
|
||||
},
|
||||
colorScheme: {
|
||||
light: {
|
||||
|
||||
@@ -16,7 +16,7 @@ export class Background {
|
||||
@ViewChild('canvas', { static: true }) canvasRef!: ElementRef<HTMLCanvasElement>;
|
||||
|
||||
// Config
|
||||
private numStars = 150;
|
||||
private numStars = 300;
|
||||
private minBlink = 0.2;
|
||||
private maxBlink = 1;
|
||||
private blinkSpeed = 0.002; // Stern blinkt langsamer oder schneller
|
||||
@@ -96,8 +96,8 @@ export class Background {
|
||||
ctx.beginPath();
|
||||
ctx.arc(star.x, star.y - this.scrollY * this.parallaxFactor, star.radius, 0, Math.PI * 2);
|
||||
ctx.fillStyle = this.themeSwitchService.darkMode()
|
||||
? `rgba(255, 215, 0, ${star.alpha})`
|
||||
: `rgba(184, 134, 11, ${star.alpha})`;
|
||||
? `rgba(191, 158, 74, ${star.alpha})`
|
||||
: `rgba(255, 219, 112, ${star.alpha})`;
|
||||
ctx.fill();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user