gsalmon commited on
Commit
046879b
·
1 Parent(s): 9bdda05

fixed ui issues and presaved station issue

Browse files
reachy_mini_radio/alarm_manager.py CHANGED
@@ -25,6 +25,10 @@ class AlarmManager:
25
  self.settings.update(data)
26
  except Exception as e:
27
  print(f"[AlarmManager] Error loading settings: {e}")
 
 
 
 
28
 
29
  def save_settings(self, new_settings=None):
30
  if new_settings:
 
25
  self.settings.update(data)
26
  except Exception as e:
27
  print(f"[AlarmManager] Error loading settings: {e}")
28
+
29
+ # Force alarm to be disabled on startup
30
+ self.settings["enabled"] = False
31
+ self.settings["alarm_mode"] = False
32
 
33
  def save_settings(self, new_settings=None):
34
  if new_settings:
reachy_mini_radio/alarm_settings.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
- "enabled": true,
3
  "alarm_mode": false,
4
- "time": "01:25",
5
  "station_url": "https://streaming.smartradio.ch:9502/stream",
6
  "station_name": "A Fine Jazz Gumbo Radio",
7
  "timezone": "America/Los_Angeles"
 
1
  {
2
+ "enabled": false,
3
  "alarm_mode": false,
4
+ "time": "01:50",
5
  "station_url": "https://streaming.smartradio.ch:9502/stream",
6
  "station_name": "A Fine Jazz Gumbo Radio",
7
  "timezone": "America/Los_Angeles"
reachy_mini_radio/static/style.css CHANGED
@@ -139,30 +139,30 @@ button:active {
139
  }
140
 
141
  @media (max-width: 768px) {
142
- .hero {
143
- padding: 2rem 1rem;
144
- }
145
 
146
- .hero h1 {
147
- font-size: 2rem;
148
- }
149
 
150
- .container {
151
- padding: 0 1rem;
152
- }
153
 
154
- .app-details,
155
- .download-card {
156
- padding: 2rem;
157
- }
158
 
159
- .features-grid {
160
- grid-template-columns: 1fr;
161
- }
162
 
163
- .download-options {
164
- grid-template-columns: 1fr;
165
- }
166
  }
167
 
168
  .alarm-box {
@@ -186,9 +186,12 @@ button:active {
186
 
187
  .form-row input[type="time"],
188
  .form-row select {
189
- padding: 0.5rem;
190
- border: 1px solid #cbd5e1;
191
- border-radius: 4px;
 
 
 
192
  font-size: 0.9rem;
193
  }
194
 
@@ -218,4 +221,14 @@ button:active {
218
  .badge {
219
  font-size: 11px;
220
  color: #9ca3c7;
 
 
 
 
 
 
 
 
 
 
221
  }
 
139
  }
140
 
141
  @media (max-width: 768px) {
142
+ .hero {
143
+ padding: 2rem 1rem;
144
+ }
145
 
146
+ .hero h1 {
147
+ font-size: 2rem;
148
+ }
149
 
150
+ .container {
151
+ padding: 0 1rem;
152
+ }
153
 
154
+ .app-details,
155
+ .download-card {
156
+ padding: 2rem;
157
+ }
158
 
159
+ .features-grid {
160
+ grid-template-columns: 1fr;
161
+ }
162
 
163
+ .download-options {
164
+ grid-template-columns: 1fr;
165
+ }
166
  }
167
 
168
  .alarm-box {
 
186
 
187
  .form-row input[type="time"],
188
  .form-row select {
189
+ background: #080c1a;
190
+ color: #f5f5f8;
191
+ border: 1px solid #272f4a;
192
+ border-radius: 8px;
193
+ padding: 8px 10px;
194
+ outline: none;
195
  font-size: 0.9rem;
196
  }
197
 
 
221
  .badge {
222
  font-size: 11px;
223
  color: #9ca3c7;
224
+ }
225
+
226
+ input:disabled,
227
+ select:disabled {
228
+ opacity: 1 !important;
229
+ color: #ffffff !important;
230
+ -webkit-text-fill-color: #ffffff !important;
231
+ background: #262c45 !important;
232
+ border-color: #475569 !important;
233
+ cursor: not-allowed;
234
  }