marta-issues
marta-issues copied to clipboard
Allow different themes for macOS system dark mode enabled/disabled
Since macOS has dark mode, it would be nice to be able to specify a certain theme when dark mode is disabled and a different one when it is enabled, for instance Classic when light and Kon when dark, and have Marta automatically switch between the two when the Mac system theme changes.
I absolutely concur. This is a feature that nearly every macOS app has by now, and automatically switching between a dark and a light mode therefore even feels a bit like a bug to me.
For anyone coming ehre from Google, I wrote this shell script, which will toggle the dark & light mode of Marta in the meantime.
MARTA_CONFIG=~"/Library/Application Support/org.yanex.marta/conf.marco"
DARK_THEME=Kon
LIGHT_THEME=Classic
TARGET_MODE=$1
if [[ "$TARGET_MODE" == "dark" ]] ; then
grep -q "theme \"$DARK_THEME\"" "$MARTA_CONFIG" && return
sed -i '' "s/ theme \"$LIGHT_THEME\"/ theme \"$DARK_THEME\"/" "$MARTA_CONFIG"
else
grep -q "theme \"$LIGHT_THEME\"" "$MARTA_CONFIG" && return
sed -i '' "s/ theme \"$DARK_THEME\"/ theme \"$LIGHT_THEME\"/" "$MARTA_CONFIG"
fi
if pgrep "Marta" &> /dev/null ; then
IS_FRONT_MOST=$(osascript -e 'frontmost of application "Marta"')
killall "Marta"
sleep 0.2
if [[ "$IS_FRONT_MOST" == "false" ]] ; then
open -a "Marta" -j
else
open -a "Marta"
fi
fi
For anyone coming ehre from Google, I wrote this shell script, which will toggle the dark & light mode of Marta in the meantime.
Can you please provide some information on how to use this script?