How to control mac default icon size 128x128 display through Install4j settings - install4j

We have a installer image with 48X48 for our App but in MAC its stretching up to 128X128 due mac default icon size and that causing image blurring.
we have tried with an image 128X128 and there is no stretching/blurring but it looks too big. so we are looking for some settings to control the MAC default icon size thorough install4j or any other solution.
in the past, with install4j 6.x we have used the default image that comes with install4j and never noticed this issue.
Blurry image
Image 128X128 - with out blurr
Another image with both on side by side (Default in 6.x Vs nonDefault in 7.x)

To control the visual aspects of the folder when the DMG is mounted, you can include a .DS_Store file on the "Installer options->Additional files in the DMG" step of the media wizard. The .DS_Store file is taken from a folder where you have adjusted the settings accordingly.
The help chapter on styling DMGs shows you the list of steps.

Related

Eclipse 4.14 font size issue

We are using Eclipse 4.14 version for development purpose. Using laptop as well as an extended monitor, if I use laptop screen the font size and other menu size (Project explorer and other menu) looks fine with normal size.
Shows a little big font and menu than normal
Shows a normal font and menu
But if I move my eclipse to extended monitor, my text area font size as well as Project explorer menu size also gets increased. If someone faced such issues, can you provide some inputs related to this on how to resolve ? Thanks !

Eclipse IDE scaling on Multi-Monitor with different resolutions

I current have 3 monitors and was looking for a solution to fix the scaling between a 4K monitor and a 1080p monitor.
Most applications scale when switching monitors but Eclipse doesn't. The font is either large in 1080p or small in 4k. The zoom function sets the size for the whole application and not a single window.
Edit : I am using Eclipse Oxyen on Windows 10
I can think of two ways to go about this.
Windows 10
Customize the scaling of each monitor.
Go to Windows Settings > System > Display page.
Select the display to customize.
Scroll to the Scale and layout section.
Choose the % of the Change the size of text, apps, and other items option.
Repeat for each monitor as desired.
Eclipse IDE
Customize the CSS of themes.
Close Eclipse.
Edit the desired theme: $ECLIPSE_HOME/plugins/org.eclipse.ui.themes_XXX/css/**/*.css
Restart Eclipse.
CSS has multiple ways of specifying font size. Supposedly there is even a means to size fonts relative to screen resolution. You'll have to play with Eclipse's CSS engine to see what it supports.

very small fonts and icons on 4k screens

I'm using CFeclipse on Windows 10 OS.
With the adaptation of new 4k resolution laptops. Eclipse displays small icons and fonts. Its also reported as a bug in https://bugs.eclipse.org/bugs/show_bug.cgi?id=451693.
The mentioned bug has been fixed, Eclipse automatically scales images on high-DPI monitors on Windows since Eclipse Neon (4.6). So, make sure your Eclipse IDE is up to date.
If upgrading does not fix your issue, in eclipse.ini add the following line below the line -vmargs (see Tweaking SWT's auto-scaling):
-Dswt.autoScale=200
(In contrast to the compatibility mode of Windows, this is the way to get the double-resolution icons.)
To solve the problem in Windows 10.
Right click Eclipse Icon
Select Properties
Compatibility Tab
Under Settings Section check
Override High DPI scaling behaviour. Scaling performed by.
Select System.
Then Apply or Ok
I haven't encountered it yet in other application but this solution might also work for other apps that displays small icons and fonts.
This solution also works in Ultraedit,FastStone capture
The steps also helps for Coldfusion installer that appears too tiny to be readable or other Application installer in a 4k screen that shows everything too small.
I was having problems with a Windows 10 RDP connection using a Surface Pro machine. A recent update made Eclipse virtually unusable.
This solution worked perfectly :
Right click Eclipse Desktop Icon
Select Properties
Compatibility Tab
Change high DPI settings
Override High DPI scaling behaviour. Scaling performed by. Select
System.
Then Apply or OK
I then had to slightly adjust the font size within Eclipse itself. I found I could use a slightly smaller font

Can't configure background image for DMG installation using CMake

I am working with CMake 2.8.10.2 on Mac OS X 10.7.5.
I've configured CMake to build a simple application with Xcode that creates an empty window. I then tried to configure CMake to build a DMG installation of the program specifying a background image using:
set(CPACK_DMG_BACKGROUND_IMAGE /path/to/image)
and custom .DS_Store to set windows size and icon placement using:
set(CPACK_DMG_DS_STORE /path/to/DS_Store file)
Xcode will successfully build the application and create the disk image. When I mount the image it comes up with the correct size and icon placement, however the background is always set to white instead of specified background image.
What is needed to get the background to display properly in the disk image?
Unfortunately no one has responded this question. This has been a frustrating experience, however, it looks like I finally solved it so I'm posting a description here to save someone else the grief if they ever have to deal with this.
In order for a background to work on an installation image, basically two things must happen; the background file must exist within the installation image, and the .DS_Store at the root of the image must be configured to use that background.
The .DS_Store file can be configured by mounting the install image in a writable state and then selecting Show View Options from the Finder's View menu. From there someone will select the Picture option for the Background and drag the background file to the placeholder in the Show View Options panel.
When working with CPack, the trick is to be able to drag the image. When someone sets the background for the installation, builds, and mounts the image it will not look like there is any background to drag to the Show View Options panel. If someone goes into the Terminal and does
ls -a
on the root of the mounted install, that command will list, among other things, a file called background.png. This file does not display in the Finder.
The reason this file displays in the Terminal and not the Finder is because it has an extended attributes that makes it hidden for the Finder. Since the file is hidden from the Finder it is not possible to drag the file to the Show View Options panel. Doing
ls -l#
will reveal what extended attributes are applied to the file. There should be only one called com.apple.FinderInfo. Removing this attribute should make the file visible in the Finder. The attribute can be removed using this command from the Terminal
xattr -d com.apple.FinderInfo background.png
After removing the attribute the background file still will not show up in the Finder right away. Someone will have to eject and remount the install image. Once this has happened, the background file should appear in the Finder and someone can drag it to the Show View Options panel, which will cause the background image to display in the Finder window for the install image. After that, someone can copy the .DS_Store file from the root of the install image and apply it to the CPACK_DMG_DS_STORE attribute, and the background image should appear whenever an install image is built.
#TronThomas response helped me out dramatically. Not to supplant his answer, here's some additional information about the process that I just worked through. For reference, this is with MacOS Sierra and CMake 3.6.2.
Set a background image with set(CPACK_DMG_BACKGROUND_IMAGE /path/to/image)
Create the DMG file using the CPack generator DragNDrop
Mount the image in read/write mode using a shadow file hdiutil attach mypackage.dmg -shadow junk.dmg
At this point, we don't see a background image, but one exists in the folder .background in the DMG file. Our strategy will be to use Finder to make the window exactly how we want, then copy out the .DS_Store file.
On the Finder menu, click View->Show View Options
Under Background:, click the Picture radio button. Then, click the image above the text Drag Image Here. Note, the current view must be as Icons otherwise this dialog will not be there.
In the file dialog, go back to the mounted DMG image. Then, press cmd-shift-. This should show the hidden folders. From here, go into the .background folder and select the background image.
If everything has worked properly, the background image should now be visible.
Adjust the windows size and view or hide toolbars as desired on the View menu. The exact settings will be replicated by the installer.
Copy off the the hidden .DS_Store file in the root directory of the volume to another location. The cmd-shift-. trick can be used view the file or just use the Terminal at this point to copy everything. Note, we can change the name of this file to DS_Store, so that it's not hidden when we store it.
Eject the DMG file from Finder. Delete junk.dmg or any shadow files remaining.
Back in the CMakeLists.txt, set the variable set(CPACK_DMG_DS_STORE /path/to/DS_Store) This is the file that we just created and moved off of the volume.
Rebuild the DMG file with CPack. Everything should be as viewed before.
As a warning, there's a lot of information that gets stored in the .DS_Store file such as file locations, user names, and the like. At the moment, I don't know how to control this information, so be a little careful when distributing the final DMG file. If you're curious as to what's in there, use a hex editor like xxd.
As a brief comment, this process is very obtuse. That said, I don't think it's Kitware's fault. Though, they could document the process better. From what I can tell, the .DS_Store file format is not well documented or disclosed, so we're basically forced to use Finder to make one for us. This is a MacOS issue that probably should be fixed.

Eclipse: large toolbar icons

Does anybody know how to use large toolbar icons? Edit: How do I do it?
At first, close eclipse and be sure it is closed.
Than edit eclipse.ini and add the following lines:
-Dswt.enable.autoScale=true
-Dswt.autoScale=150
-Dswt.autoScale.method=nearest
The -Dswt.autoScale=150 will increase your Icons, 150 will say 150%. If it is not enough, increase it or decrease it otherwise.
Here is what to do for an easy solution:
Go to the start icon of your eclipse or PLCXpressoand
Click your right mouse bottom
Go to down and click properties
Click compartibility
Check overwrite high DPI scaling
Select system (enhanced)
Click OK at the bottom
Start Eclipse and enjoy
There is no support in Eclipse for large/small icons in the toolbar.
As this bug describes:
The other issue though is really that the GNOME toolbar style, similar to Mac OS X, is for a small number of large icons, while the Eclipse toolbar style is for a large number of quick-access buttons.
This means that the recommendations for, say, icons vs icons+text don't really apply to the Eclipse toolbar.
Update 2016 (5 years later)
Since 2011, you have some workarounds, like this answer referring to davidglevy/eclipse-icon-enlarger, which double the size of the icon in the eclipse main jar.
You have more instructions at PhantomYdn/eclipse-icon-enlarger.
You have the same idea (double the size of icons) implemented as a script (here is an gene1wood/scale_eclipse.sh)
But if the issue is poor (too small) resolution on HiDPI / Retina displays, try also the actual official Microsoft workaround (as illustrated here)
regedit:
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > SideBySide: create a DWORD PreferExternalManifest set to 1.
Beside eclipse.exe, create an eclipse.manifest file with, as content, one similar to this article.
CLICK HERE TO VIEW SCREENSHOT
I have searched and searched for weeks for a solution to this problem If you want to solve it go to your eclipse folder and *.png search. Resize all the icons from 16x16 to 32x32 Then do the same for *.gif.
As you can see in the image I have not finished the task but it does work if you want to put in the time. I am sure there is an easier batch method of doing it I am sorry I have not found that yet. Just in case anyone is still using eclipse (which I prefer) and wanted larger toolbar icons there you go.
EDIT: I found an easy to use batch tool called Fotosizer. It remembers all the icons file locations when you drag and drop your *.png *.gif found files into the image selection area. Just set up the options for sizing and set the output like the image I just uploaded. If 32x32 is too big for you just make them a little smaller. Fotosizer Click Here I used the free version.
Screenshot Click Here
Be sure when you do your search to right click and sort the images by dimensions to make it easy for you to find all the 16x16 files in a group. This is in windows 7 64 bit version and RapidClipse Version: 2.3.1.201607130701
Take care,
Barry
I solved it on Linux by appending this line to eclipse.ini:
-Dswt.autoScale=200
See the original answer on reddit: https://www.reddit.com/r/archlinux/comments/61zsds/eclipse_neon_on_hidpi_screen_and_plasmaa_5/
In 2022 on linux with an UltraHD display:
set your system as zoom 100% (forget 200% or fractional hacks, it's slow and buggy)
only use font scaling : gsettings set org.gnome.desktop.interface text-scaling-factor 1.5
To launch Eclipse (with perfect text and icon size) from terminal, use :
GDK_SCALE=2 GDK_DPI_SCALE=0.5 ./eclipse
I can't comment, because <50 reputation points.
I refer to the method of resizing the images to let's say 32x32.
I wrote a little python script, in case someone might be interested.
It changes the size of all .gif and .png to 32x32.
Use on your own risk :)
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
from PIL import Image
for path,dirs,files in os.walk(r"D:\win7\apps\renesas_e2_studio\eclipse"):
for f in files:
uri = os.path.join(path,f)
for t in ".gif .png".split(" "):
if uri[-4:] == t:
img = Image.open(uri)
img = img.resize((32,32))
img.save(uri)
print(uri)
print("FINISHED")
add -Dswt.autoScale=150 in eclipse.ini, is working for my hybrid win10 12.3"
Thanks to Markus B
Running Eclipse 2020-09 R (i.e, v4.17) on Linux (openSUSE Tumbleweed with XFCE session) on an HP Spectre x360 with 283 dpi, I found that out of the box the fonts were fine but the icons were unreadably tiny. Also, setting -Dswt.autoscale=300 in the eclipse.ini made the icons look perfect but completely disrupted the layout and functionality of SWT (couldn't click on tabs, many texts were unreadably clipped). So I had to resort to the method of scaling all of the icon files. Here's one way to automate it.
After running eclipse for the first time (since that first run unpacks a lot of icons), go to the top-level eclipse directory (the one in which the eclipse executable resides), and enter xonsh (the python-based shell) in that directory. Then you can execute the following commands (at your own risk), for example by copy-pasting them at the prompt:
pngl = $(find . -name "*.png").strip().split("\n")
for png in pngl:
if not ('#2x' in png):
print(f"Found icon {png}, moving...")
pngo = png.replace('.png','-orig.png')
mv #(png) #(pngo)
pngbig = png.replace('.png','#2x.png')
if pngbig in pngl:
print(" ...has enlarged, scaling that by 150")
convert #(pngbig) -resize 150% #(png)
else:
print(" ...no enlargement, scaling orig by 300")
convert #(pngo) -resize 300% #(png)
Of course if you wanted a different basic scaling factor, say 250%, you would change the 150% scaling of the double size icon in the pngbig branch to 125% and the 300% scaling of the original-size icons in the other branch to 250%.
In case you use STS 4, edit SpringToolSuite4.ini instead with the properties suggested by #Frank
-Dswt.enable.autoScale=true
-Dswt.autoScale=150
-Dswt.autoScale.method=nearest