ls1intum / Artemis

Artemis - Interactive Learning with Automated Feedback
https://docs.artemis.cit.tum.de
MIT License
486 stars 288 forks source link

`Exam Mode`: Artemis switches to LightMode when downloading the exam pdf after assessment #8905

Open marlon-luca-bu opened 3 months ago

marlon-luca-bu commented 3 months ago

Describe the bug

If a student wants to download the pdf of the exam after the assessment Artemis switches to lightmode. This is not the case when the student downloads the exam after finishing but before assessment

To Reproduce

  1. Hand in an exam
  2. Assess the exam as an instructor
  3. Log in back as student and download the pdf of the exam
  4. See error

Expected behavior

Artemis should stay in darkmode

Screenshots

No response

Which version of Artemis are you seeing the problem on?

7.3.1

What browsers are you seeing the problem on?

Chrome

Additional context

No response

Relevant log output

No response

Strohgelaender commented 3 months ago

I believe the switch to light mode is the correct behavior here, we want to have a white background when creating a print version of the exam. The bug is that this switch is missing in the second case.