I'd extract the Windows theme definition into a separate function too.
Keybinds are broken on Wayland (stable release 3.1.1)