gtk-sharp icon indicating copy to clipboard operation
gtk-sharp copied to clipboard

Mono Applications Ignore GTK Environment Variables for Appearance

Open jclds139 opened this issue 5 years ago • 2 comments

Steps to Reproduce

  1. Run a mono program, particularly with a dark GTK theme set - some elements do not obey the theme rules, leading to unreadable text.
  2. Manually set GTK_THEME and/or GTK2_RC_FILES to point to a theme other than the system default
  3. Re-Run the mono program, observing no difference
  4. For comparison, run a normal GTK program (such as gvim), and see how the theme has changed

Current Behavior

Nothing changes when GTK_THEME (for gtk3 themes) or GTK2_RC_FILES (for gtk2 themes) is set differently from the system gtk theme. This is essentially a re-post of mono/mono#9998 which was prematurely closed.

Expected Behavior

Setting one of those environment variables will override the GTK theme for the mono application being launched

On which platforms did you notice this

[ ] macOS [x] Linux [ ] Windows

Version Used: 5.20.1 (and older)

jclds139 avatar Sep 04 '19 14:09 jclds139

Any news on this bug? I have the same problem with Keepass2 on Mint 19.3.

blackthornedk avatar May 29 '20 05:05 blackthornedk

Same thing here, will be glad to hear a fix

maxsupermanhd avatar Jan 01 '21 21:01 maxsupermanhd