Atom code editor interface goes dim automatically

My atom code editor interface goes dim gradually every time when I changed from other windows to atom, and when I switch application windows from Atom to other application, I can see it gradually become brighter again.

Not only the brightness changes from atom to another application but also from different functions in atom. For example, from focusing on editor to opening up the main menu or setting, the brightness change too.

I am using One Dark theme and I realize other dark theme have this issue too. How do I adjust the setting for this?

I could not provide screenshot for this as after I took the screenshot I realize they have no difference, that it could only be viewed from my screen for the brightness changes. Thanks in advance for providing the solution.