I'm using Opera on Zorin OS 17.3 (based on Ubuntu) and trying to programmatically switch between dark/light themes for Opera globally. Since Opera doesn't use system theme settings (e.g., GTK), I attempted solutions like xdotool to automate UI interactions and checked for DBus or API options, but none seem to work reliably.
Has anyone found a way to send messages to the Opera process or use an extension/API to toggle themes? Alternatively, is there a native way in Ubuntu/Zorin to control Opera's theme? I know, them in setting can change theme, but I would like integrate them with system theme.
Details:
OS: Zorin OS 17.3 (Ubuntu-based)
Opera version: 119.0.5497.29
Tools tried: xdotool, gsettings, DBus (no relevant interfaces found)
Any help or pointers to relevant documentation would be appreciated!