Skip to content

Commit

Permalink
Add mask tray toggle for JDK17+
Browse files Browse the repository at this point in the history
Closes qzind#817
  • Loading branch information
tresf committed Jun 2, 2021
1 parent 9eb4f05 commit fb94c97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ant/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ javafx.aarch64.version=17-ea+9_monocle
javafx.aarch64.mirror=https://download2.gluonhq.com/openjfx/17
javafx.aarch64.arch=aarch64

# Mask tray toggle (Apple only)
java.mask.tray=true

# Workaround to delay expansion of $${foo} (e.g. shell scripts)
dollar=$
2 changes: 1 addition & 1 deletion ant/unix/unix-launcher.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ if command -v java &>/dev/null; then
else
prefix="../../" # back two directories, e.g. postinstall
fi
java $LAUNCH_OPTS -Xdock:name="$ABOUT_TITLE" -Xdock:icon="$ICON_PATH" -jar -Dapple.awt.UIElement="true" -Dapple.awt.enableTemplateImages="true" "${prefix}$PROPS_FILE.jar" -NSRequiresAquaSystemAppearance False "$@"
java $LAUNCH_OPTS -Xdock:name="$ABOUT_TITLE" -Xdock:icon="$ICON_PATH" -jar -Dapple.awt.UIElement="true" -Dapple.awt.enableTemplateImages="${java.mask.tray}" "${prefix}$PROPS_FILE.jar" -NSRequiresAquaSystemAppearance False "$@"
else
java $LAUNCH_OPTS -jar "$PROPS_FILE.jar" "$@"
fi
Expand Down

0 comments on commit fb94c97

Please sign in to comment.