wslg 应用白色边框问题(Jetbrains 系列白色边框)
wsl 启动Jetbrains 系列 IDE 白色边框问题
解决方案来源于github:https://github.com/microsoft/wslg/issues/530
解决方案
For IntelliJ
Add -Dawt.toolkit.name=WLToolkit
to your VM Options and you’ll have clean borders. This is still experimental.
See https://youtrack.jetbrains.com/issue/JBR-6223/jetbrains-products-look-ugly-in-wslg#focus=Comments-27-9814372.0-0
Set Wayland environment variables
REAL_PATH="$(readlink -f $0)"
GK_PATH="$(dirname "$(dirname "$(dirname "$REAL_PATH")")")"
CLI="$GK_PATH/resources/app.asar/src/main/static/cli.js"
GITKRAKEN="$GK_PATH/gitkraken"#Set Wayland environment variables
export XDG_SESSION_TYPE=wayland
export GDK_BACKEND=wayland
export QT_QPA_PLATFORM=wayland
export ELECTRON_OZONE_PLATFORM_HINT=waylandELECTRON_RUN_AS_NODE=1 "$GITKRAKEN" "$CLI" "$@"
exit $?
That works fine for me.
For Chrome
https://www.reddit.com/r/Fedora/comments/rkzp78/comment/hyvicuy/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
For some other apps
https://donfiguerres.com/posts/wsl2/dark-theme-in-wsl2/