Switching between light/dark/auto in Custom Floating HTML prompt

I have the following macro, which neatly switches between light/dark/auto mode. Now I want the button to also switch and indicate the accent color. Is this possible?
Test.kmmacros (4.4 KB)
Scherm­afbeelding 2024-12-15 om 16.34.12
Scherm­afbeelding 2024-12-15 om 16.34.45