硬汉嵌入式论坛

 找回密码
 立即注册
查看: 1436|回复: 4
收起左侧

[其它] Eclipse支持设置缩放比例功能,困扰高分屏的问题终于解决了

[复制链接]

210

主题

1045

回帖

1685

积分

至尊会员

More we do, more we can do.

积分
1685
发表于 2021-12-11 17:37:46 | 显示全部楼层 |阅读模式
比如我这个2K屏,再也不是密密麻麻的小图标了,使用方法:

1. 可能会自动识别(版本4.6+)
2. 觉得不够或者像我的Windows11不正常的,修改程序根目录下的eclipse.ini文件:

比如我的设为125%
  1. -Dswt.autoScale=quarter
复制代码

可选参数说明:
false: scale factor is set to 100% (no scaling)
integer: scale factor depends on the current display resolution, but only uses integer multiples of 100%. The detected native zoom is generally rounded down (e.g. at 150%, will use 100%), unless close to the next integer multiple (currently at 175%, will use 200%).
quarter: scale factor depends on the current display resolution, but only uses integer multiples of 25%. The detected native zoom is rounded to the closest permissible value. (This used to be the default in the last two pre-release milestones.)
exact: scale factor is set to the native zoom (with 1% as minimal step).
<value>: scale factor uses the given integer value in percent as zoom level.

回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
107077
QQ
发表于 2021-12-11 21:28:28 | 显示全部楼层
谢谢楼主分享。
回复

使用道具 举报

4

主题

143

回帖

155

积分

初级会员

积分
155
发表于 2021-12-13 11:45:26 | 显示全部楼层
感谢楼主,stm32cube IDE高分屏这个方法也适用,但是添加后图标确实大了,但是有的字体变模糊了,还是官方对高分屏适配不行
回复

使用道具 举报

210

主题

1045

回帖

1685

积分

至尊会员

More we do, more we can do.

积分
1685
 楼主| 发表于 2021-12-13 16:28:46 | 显示全部楼层
浴火重生 发表于 2021-12-13 11:45
感谢楼主,stm32cube IDE高分屏这个方法也适用,但是添加后图标确实大了,但是有的字体变模糊了,还是官方 ...

我的台式机上也有变模糊的问题,我选的这个选项就正常了:
-Dswt.autoScale=exact
回复

使用道具 举报

0

主题

100

回帖

100

积分

初级会员

积分
100
发表于 2021-12-14 09:23:48 | 显示全部楼层
之前在macOS上用过Eclipse也是因为高分屏适配问题很难调到顺眼,有空试试楼上的办法。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-16 22:51 , Processed in 0.265515 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表