Move gettext initialization to main and handle errors.
Adapt to new color theme names.
Use 'foreground_rgba' if available.
Fix window size calculations.