matt HOFFNER commited on
Commit
d83366a
β€’
1 Parent(s): b5f3726

tweak hours

Browse files
Files changed (1) hide show
  1. app/util.ts +2 -2
app/util.ts CHANGED
@@ -16,13 +16,13 @@ export function updateBackground(): void {
16
  color1 = 'rgba(255, 140, 0, 0.6)'; // Dark orange (sunrise)
17
  color2 = 'rgba(135, 206, 250, 0.6)'; // Sky blue (light sky)
18
  color3 = '#F0E68C'; // Light khaki (morning light)
19
- } else if (hour >= 7 && hour < 17) {
20
  // Daylight
21
  color1 = 'rgba(135, 206, 250, 0.6)'; // Light sky blue (high sky)
22
  color2 = 'rgba(255, 255, 255, 0.6)'; // White (sun)
23
  color3 = '#87CEEB'; // Sky blue (clear day)
24
  cloudStyle = ', radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.8), transparent 80%), radial-gradient(circle at 90% 40%, rgba(255, 255, 255, 0.8), transparent 80%)';
25
- } else if (hour >= 17 && hour < 20) {
26
  // Dusk
27
  color1 = 'rgba(250, 128, 114, 0.6)'; // Salmon (sunset)
28
  color2 = 'rgba(100, 149, 237, 0.6)'; // Cornflower blue (evening sky)
 
16
  color1 = 'rgba(255, 140, 0, 0.6)'; // Dark orange (sunrise)
17
  color2 = 'rgba(135, 206, 250, 0.6)'; // Sky blue (light sky)
18
  color3 = '#F0E68C'; // Light khaki (morning light)
19
+ } else if (hour >= 7 && hour < 16) {
20
  // Daylight
21
  color1 = 'rgba(135, 206, 250, 0.6)'; // Light sky blue (high sky)
22
  color2 = 'rgba(255, 255, 255, 0.6)'; // White (sun)
23
  color3 = '#87CEEB'; // Sky blue (clear day)
24
  cloudStyle = ', radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.8), transparent 80%), radial-gradient(circle at 90% 40%, rgba(255, 255, 255, 0.8), transparent 80%)';
25
+ } else if (hour >= 16 && hour < 20) {
26
  // Dusk
27
  color1 = 'rgba(250, 128, 114, 0.6)'; // Salmon (sunset)
28
  color2 = 'rgba(100, 149, 237, 0.6)'; // Cornflower blue (evening sky)