feat(daily-prep): replace Plan-My-Day header icon with a stroked sun icon

Renders the new SVG faithfully via a stroked Path (PathIcon fills, so a
line-art icon would vanish). Renamed the button to "Plan My Day".

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-06-04 10:18:43 +02:00
parent 53d897aff4
commit 52e3980cd1
4 changed files with 19 additions and 6 deletions

View File

@@ -67,7 +67,7 @@
"enterKey": "ENTER", "enterKey": "ENTER",
"notesPinnedRow": "Notizen (Tagesnotizen)", "notesPinnedRow": "Notizen (Tagesnotizen)",
"clearDayTip": "Tag leeren", "clearDayTip": "Tag leeren",
"prepLogTip": "Vorbereitungs-Log", "planMyDayTip": "Meinen Tag planen",
"overdue": "ÜBERFÄLLIG", "overdue": "ÜBERFÄLLIG",
"tasks": "AUFGABEN", "tasks": "AUFGABEN",
"clearCompletedTip": "Alle abgeschlossenen löschen", "clearCompletedTip": "Alle abgeschlossenen löschen",

View File

@@ -67,7 +67,7 @@
"enterKey": "ENTER", "enterKey": "ENTER",
"notesPinnedRow": "Notes (daily notes)", "notesPinnedRow": "Notes (daily notes)",
"clearDayTip": "Clear day", "clearDayTip": "Clear day",
"prepLogTip": "Prep log", "planMyDayTip": "Plan My Day",
"overdue": "OVERDUE", "overdue": "OVERDUE",
"tasks": "TASKS", "tasks": "TASKS",
"clearCompletedTip": "Clear all completed", "clearCompletedTip": "Clear all completed",

View File

@@ -73,8 +73,8 @@
<!-- Icon.Broom (filled: handle + binding band + flared bristles) --> <!-- Icon.Broom (filled: handle + binding band + flared bristles) -->
<StreamGeometry x:Key="Icon.Broom">M11 3 H13 V10 H11 Z M8.5 10 H15.5 V12 H8.5 Z M9 12 H15 L17 21 H7 Z</StreamGeometry> <StreamGeometry x:Key="Icon.Broom">M11 3 H13 V10 H11 Z M8.5 10 H15.5 V12 H8.5 Z M9 12 H15 L17 21 H7 Z</StreamGeometry>
<!-- Icon.List (filled: square bullets + lines) --> <!-- Icon.PlanDay (stroke-rendered via Path.plan-icon — sun over horizon) -->
<StreamGeometry x:Key="Icon.List">M4 5 H6 V7 H4 Z M8 5 H20 V7 H8 Z M4 11 H6 V13 H4 Z M8 11 H20 V13 H8 Z M4 17 H6 V19 H4 Z M8 17 H20 V19 H8 Z</StreamGeometry> <StreamGeometry x:Key="Icon.PlanDay">M3,20 L21,20 M8.4,11 a3.6,3.6 0 1,0 7.2,0 a3.6,3.6 0 1,0 -7.2,0 M12,4.5 L12,3 M6,11 L4.5,11 M18,11 L19.5,11 M7.5,6.5 L6.4,5.4 M16.5,6.5 L17.6,5.4</StreamGeometry>
<!-- Icon.X --> <!-- Icon.X -->
<StreamGeometry x:Key="Icon.X">M6 6l12 12M18 6L6 18</StreamGeometry> <StreamGeometry x:Key="Icon.X">M6 6l12 12M18 6L6 18</StreamGeometry>
@@ -247,6 +247,17 @@
<Setter Property="TextElement.Foreground" Value="{StaticResource TextBrush}" /> <Setter Property="TextElement.Foreground" Value="{StaticResource TextBrush}" />
</Style> </Style>
<!-- Stroke-rendered icon (for line-art geometries that PathIcon would fill away) -->
<Style Selector="Button.icon-btn Path.plan-icon">
<Setter Property="Stroke" Value="{StaticResource TextMuteBrush}" />
<Setter Property="StrokeThickness" Value="1.7" />
<Setter Property="StrokeLineCap" Value="Round" />
<Setter Property="StrokeJoin" Value="Round" />
</Style>
<Style Selector="Button.icon-btn:pointerover Path.plan-icon">
<Setter Property="Stroke" Value="{StaticResource TextBrush}" />
</Style>
<!-- ============================================================ --> <!-- ============================================================ -->
<!-- INPUTS --> <!-- INPUTS -->
<!-- ============================================================ --> <!-- ============================================================ -->

View File

@@ -38,8 +38,10 @@
<PathIcon Width="15" Height="15" Data="{StaticResource Icon.Broom}"/> <PathIcon Width="15" Height="15" Data="{StaticResource Icon.Broom}"/>
</Button> </Button>
<Button Classes="icon-btn" IsVisible="{Binding IsMyDayList}" <Button Classes="icon-btn" IsVisible="{Binding IsMyDayList}"
Command="{Binding ShowPrepLogCommand}" ToolTip.Tip="{loc:Tr tasks.prepLogTip}"> Command="{Binding ShowPrepLogCommand}" ToolTip.Tip="{loc:Tr tasks.planMyDayTip}">
<PathIcon Width="15" Height="15" Data="{StaticResource Icon.List}"/> <Viewbox Width="15" Height="15">
<Path Classes="plan-icon" Data="{StaticResource Icon.PlanDay}"/>
</Viewbox>
</Button> </Button>
<Button Classes="icon-btn" Command="{Binding OpenListSettingsCommand}" ToolTip.Tip="{loc:Tr tasks.listSettingsTip}"> <Button Classes="icon-btn" Command="{Binding OpenListSettingsCommand}" ToolTip.Tip="{loc:Tr tasks.listSettingsTip}">
<PathIcon Width="15" Height="15" Data="{StaticResource Icon.Settings}"/> <PathIcon Width="15" Height="15" Data="{StaticResource Icon.Settings}"/>