This fixes issues with Ctrl+T and the switch not reflecting correct state when starting up -- previously, darkmode_switch was initialized in construct_toolbar() as a local variable.