- add Roboto.ttf, just because it was requested

This commit is contained in:
leander19961
2025-11-16 04:34:34 +01:00
parent 7c34192b18
commit 9b3688feca
6 changed files with 23 additions and 10 deletions

View File

@@ -11,6 +11,7 @@ using Avalonia.Threading;
using LeanderShiftPlannerV2.FileIO;
using LeanderShiftPlannerV2.Model;
using LeanderShiftPlannerV2.Service;
using LeanderShiftPlannerV2.Util;
using LeanderShiftPlannerV2.View.ErrorView;
using LeanderShiftPlannerV2.View.LeanderControls;
@@ -164,8 +165,11 @@ public partial class LeanderShiftPlannerMainWindow : Window
private void ButtonSaveShiftPlans_Click(object? sender, RoutedEventArgs e)
{
foreach (ShiftPlan shiftPlan in _appService.ShiftPlanService.GetShiftPlans())
ShiftPlanIO.ExportShiftPlan(ShiftPlanIO.GenerateShiftPlanPng(shiftPlan),
_appService.ShiftPlanService.GetNextID());
{
int currentId = _appService.ShiftPlanService.GetNextID();
ShiftPlanIO.ExportShiftPlan(ShiftPlanIO.GenerateShiftPlanPng(shiftPlan, Constants.FontEmblem), currentId, Constants.FontEmblem);
ShiftPlanIO.ExportShiftPlan(ShiftPlanIO.GenerateShiftPlanPng(shiftPlan ,Constants.FontRoboto), currentId, Constants.FontRoboto);
}
}
private void ButtonStartCalculation_Click(object? sender, RoutedEventArgs e)