在Eclipse Kepler中渲染带图像的按钮已损坏 [英] Rendering of buttons with images in Eclipse Kepler is broken

查看:115
本文介绍了在Eclipse Kepler中渲染带图像的按钮已损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用开普勒,控制台视图中的按钮有时呈现如下:





应该如下所示:





在按钮上移动一次鼠标解决问题。任何想法可能导致这种情况?



版本:




  • Eclipse Kelper SR1 (20130919-0819)

  • Linux Kubuntu 13.04 raring

  • libgtk2.0-bin:2.24.17-0ubuntu2


解决方案

考虑到Kubuntu看到的各种问题,知道氧气是默认值,您可以考虑检查问题是否仍然存在切换到QtCurve



参见例如:






当我将其更改为QtCurve(未安装默认情况下)按钮正确绘制透明背景。只有在鼠标悬停按钮时才会出现灰色背景。







我也发现只有使用gtk主题( oxygen-gtk 才能确定)发生的一些错误,并且很久以前切换到 qtcurve







Kubuntu 11.10




  • 适用于11.04

    应用程序外观:GTK +外观:小部件样式:ox-gtk

  • 可以使用Raleigh(普通的丑陋)和QtCurve(默认情况下不安装)







但是, OP Aaron Digulla 指出了 in评论


SWT始终依赖于Gtk加载主题(您不能在外观prefs页面中选择QtCurve )。



$ b $另外请注意,您可能希望使用基于Gtk2的Eclipse主题(请参阅博客文章 GNOME(et al):Rotting In Threes 的原因)。


With Kepler, the buttons in the Console view are sometimes rendered like this:

when it should look like this:

Moving once over the buttons with the mouse fixes the problem. Any idea what could be causing this?

Versions:

  • Eclipse Kelper SR1 (20130919-0819)
  • Linux Kubuntu 13.04 raring
  • libgtk2.0-bin: 2.24.17-0ubuntu2

解决方案

Considering the various issues seen with Kubuntu, knowing that oxygen-gtk is the default, you could consider checking if the problem persists when switching to QtCurve.

See for instance:

When I change this to "QtCurve" (not installed by default) the buttons are correctly drawn with transparent background. Only during mouse-over a button is raised and gets a gray background.

I, too, found some bugs which happen only with the gtk theme (oxygen-gtk to be precise), and switched to qtcurve long ago. No complaints from this front since then.

Kubuntu 11.10

  • works OK with 11.04
    Application Appearance : GTK+ Appearance : Widget style: oxygen-gtk
  • works OK with Raleigh (plain ugly) and QtCurve (not installed by default)


However, the OP Aaron Digulla points out in the comments:

SWT always relies on Gtk to load the theme (you can't select QtCurve in the appearance prefs page).

Also note that you probably want the Gtk2 based theme for Eclipse (see the blog post "GNOME (et al): Rotting In Threes" for reasons).

这篇关于在Eclipse Kepler中渲染带图像的按钮已损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆