feat: add weather toggle to QuickSettings sidebar

Shows a per-view weather Eye/EyeOff toggle in the left sidebar panel,
only visible when a weather location is configured.

v1.81.4
This commit is contained in:
mARTin 2026-03-31 10:16:09 +02:00
parent 2586e3ce34
commit ef7fbf4a9c
2 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "my-weekly-todo-list",
"version": "1.81.3",
"version": "1.81.4",
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
"main": "index.js",
"scripts": {

View File

@ -5499,6 +5499,14 @@ export default function WeeklyView() {
{effectiveShowProjectIcons ? <Eye size={16} /> : <EyeOff size={16} />}
</button>
</div>
{(profile.weatherLat || profile.weatherLon) && (
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center" }}>
<span style={{ fontSize: "0.75rem", fontWeight: 600, color: darkMode ? "#9ca3af" : "#6b7280" }}>{profile.language === "de" ? "Wetter" : "Weather"}</span>
<button onClick={() => { const v = !effectiveWeatherEnabled; saveSetting("weatherEnabled", v); }} style={{ background: "none", border: "none", cursor: "pointer", padding: "2px", color: darkMode ? "#9ca3af" : "#6b7280" }}>
{effectiveWeatherEnabled ? <Eye size={16} /> : <EyeOff size={16} />}
</button>
</div>
)}
{/* Start on */}
<div style={{ display: "flex", flexDirection: "column", gap: "6px" }}>