Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hidden file affects the position of the icon and cause layout confusion #237

Open
cdwmhcc opened this issue Dec 10, 2023 · 1 comment
Open

Comments

@cdwmhcc
Copy link

cdwmhcc commented Dec 10, 2023

{
  "title": "Test Application",
  "icon": "test-app.icns",
  "background": "test-background.png",
  "contents": [
    { "x": 448, "y": 344, "type": "link", "path": "/Applications" },
    { "x": 192, "y": 344, "type": "file", "path": "/Applications/TestApp.app" },
    { "x": 5000, "y": 0, "type": "position", "path": ".VolumeIcon.icns" },
    { "x": 5000, "y": 0, "type": "position", "path": ".background" },
    { "x": 5000, "y": 0, "type": "position", "path": ".DS_Store"}
  ]
}

If contents contains items with "type": "position"

  1. Will affect the x and y values in "type": "file" and "type": "link".
  2. When the user uses the shortcut keys command + shift + . to show/hide files, it will cause layout confusion. (If it doesn’t happen again, you can exit dmg and reopen it)
@cdwmhcc
Copy link
Author

cdwmhcc commented Dec 10, 2023

In addition, when you open the dmg for the first time, the icon will flash. I used dropdmg as well as dmg canvas for testing and they have no such side effects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant