Skip to content

Commit

Permalink
为新的课程表视图增加了尺寸调节设置(直接调整原来的课程表字号设置即可)
Browse files Browse the repository at this point in the history
  • Loading branch information
STBBRD committed Jul 26, 2024
1 parent 755ac32 commit c39b0ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ZongziTEK_Blackboard_Sticker/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,12 @@ private void LoadTimetable()
}

lessonIndex = -1;

double scale = (0.5 / 16) * Settings.TimetableSettings.FontSize + (1 - (0.5 / 16) * 24);
if (scale < 0.5) scale = 0.5;
else if (scale > 1.6) scale = 1.6;
ScaleTimetable.ScaleX = scale;
ScaleTimetable.ScaleY = scale;
}

private int lessonIndex = -1; // 第几节课
Expand Down

0 comments on commit c39b0ca

Please sign in to comment.