Eclipse RCP 中的初始屏幕进度条有“脏”问题角落

发布于 2024-09-02 10:20:38 字数 521 浏览 1 评论 0原文

我正在使用 RCP 启动屏幕以及内置 ProgressBar (AbsolutePositionProgressMonitorPart)。启动图像的背景色是蓝色的,但进度条的背景似乎是白色的,这导致了一些白色的角点。

替代文本
(来源:iachelini.de

没有“setBackground”在 BasicSplashHandler 上 getContent().setBackground(Color) 也没有任何明显的效果。 我不想太挑剔,但由于飞溅是您从应用程序中看到的第一件事,因此我认为整洁非常重要。 那么,您知道如何消除这些角落吗?

I am using the RCP Splash Screen along with the built-in ProgressBar (AbsolutePositionProgressMonitorPart). The splash image has a blue background color, but the background of the progressbar seems to be white, which leads to some white corners.

alt text
(source: iachelini.de)

There is no "setBackground" on BasicSplashHandler nor does getContent().setBackground(Color) has any noticeable effect.
I don't want to be too picky, but since the splash is the first thing you see from the application, I think its very important to be tidy.
So, do you have any idea how to get rid of these corners?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

謸气贵蔟 2024-09-09 10:20:38

也许不是进度条的颜色。也许是进度条后面组件的颜色?您是否尝试过设置栏父组件的颜色?你尝试过吗:

setBackgroundMode(SWT.INHERIT_FORCE);

Maybe it's not the color of the progress bar. Maybe it is the color of a component behind the progress bar? Have you tried to set the color of the parent components of the bar? Have you tried:

setBackgroundMode(SWT.INHERIT_FORCE);

?

戏剧牡丹亭 2024-09-09 10:20:38

您可能不想尝试通过本机组件破解您的方式,而是更改背景图像。拍摄一张白色像素不会干扰第一印象的图像。

Instead of trying to hack your way through the native component you might want to change the background image. Take an image where the white pixels do not disturb the first impression.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文