After I installed KDE desktop environment in Ubuntu and changed a dark color scheme, my opera brower uses this color scheme automatically! People discuss around how to make Opera using the current KDE theme, but no one wants to leave Opera alone. The reason why I want to do this, or must do this is because some website seems to set font color to be dark or black. As in my KDE color scheme all the background are black, and the foreground is white (I like this high contrast), I can’t see much in this color scheme. See the screenshot:
I searched around and found no answer in opera community, kde, ubuntu, kubuntu forums… Then I played around all the opera settings, nothing to configure this. Then I found there is one file that is the key to this problem. That is “~/.qt/qtrc“. It seems opera will read the color scheme from this file every time it launches. I found this because when I launch opear as root, the color scheme would become default, same as the root color scheme. Then I make my hotkey “Win+O” to run this command “mv ~/.qt/qtrc ~/.qt/qtrcc & opera“. By doing so, this qtrc is renamed as qtrcc, Opera will use the default color scheme if this qtrc file is not found in the ~/.qt folder. I’ve been doing this for weeks, nothing bad happened to any of my other KDE programs. So I guess this will resolve this problem before I found an “official” way. By the way, this qtrc file will be created every time I logged in Xwindows, I rename it to qtrcc just in case some day somehow this file is not created.