Dark theme unreadable

Dark theme unreadable - Messages

#1 Posted: 4/21/2025 4:31:37 AM
Arron

Arron

0 likes in 2 posts.

Group: User

I'm using the mono version on Manjaro linux with a dark KDE theme. Smath seems to be matching my desktop theme but the dark version of SMath is very hard to read. Is there a way to edit the theme, override it to light theme or something like that?
#2 Posted: 4/21/2025 4:53:13 PM
overlord

overlord

554 likes in 1333 posts.

Group: Moderator

#!/bin/sh

HERE="$(dirname "$(readlink -f "${0}"""

cd "${HERE}"
export MONO_WINFORMS_XIM_STYLE=disabled; GTK2_RC_FILES=/usr/share/themes/Raleigh/gtk-2.0/gtkrc exec mono "${HERE}//Solver.exe" "$@"

I use this for smathstudio_desktop_mono shell script. It makes smath open in light theme.
Script also prevents for some debian based systems force crashing while smath is opening.
Edited 4/23/2025 12:33:10 AM
2 users liked this post
Andrey Ivashov 4/22/2025 2:28:54 AM, Arron 4/22/2025 10:47:39 AM
#3 Posted: 4/22/2025 10:48:46 AM
Arron

Arron

0 likes in 2 posts.

Group: User

Thankyou. That didn't work exactly but it put me in the right direction. I have the below mostly working, just need to get it working with my .desktop file for it.

#!/bin/sh
HERE="$(dirname "$(readlink -f "$0")")"
cd "$HERE"

# Completely isolate from system GTK settings
unset GTK_MODULES
unset GTK2_RC_FILES
unset GTK_RC_FILES
unset GTK3_MODULES
unset GTK_DATA_PREFIX
unset XDG_DATA_DIRS
unset XDG_CONFIG_DIRS

# Force a light theme
export GTK_THEME="Adwaita"
export GTK2_RC_FILES="/usr/share/themes/Adwaita/gtk-2.0/gtkrc"
export MONO_WINFORMS_XIM_STYLE=disabled

exec mono "$HERE/Solver.exe" "$@"
  • New Posts New Posts
  • No New Posts No New Posts