Java SWT部分-can和x27;设置标题背景梯度
我正在使用Java SWT部分-can和x27;设置标题背景梯度,java,user-interface,swt,jface,sections,Java,User Interface,Swt,Jface,Sections,我正在使用FormToolkit创建部分 为什么setTitleBarGradientBackgroundAPI对标题栏的颜色没有任何影响?有一个错误报告。不幸的是,这看起来不像你可以期待这是固定的任何时间很快 Section#setTitleBarBackground正在工作-设置部分背景渐变的顶部颜色,如RCP中所示 Section#setTitleBarGradientBackground设置从未在Section类中使用的颜色(Section#color_GBG) 部分#setTitleB
FormToolkit
创建部分
为什么setTitleBarGradientBackground
API对标题栏的颜色没有任何影响?有一个错误报告。不幸的是,这看起来不像你可以期待这是固定的任何时间很快
Section#setTitleBarBackground
正在工作-设置部分背景渐变的顶部颜色,如RCP中所示
Section#setTitleBarGradientBackground
设置从未在Section类中使用的颜色(Section#color_GBG
)
部分#setTitleBarBorderColor
-无效
有一个bug报告。不幸的是,这看起来不像你可以期待这是固定的任何时间很快
Section#setTitleBarBackground
正在工作-设置部分背景渐变的顶部颜色,如RCP中所示
Section#setTitleBarGradientBackground
设置从未在Section类中使用的颜色(Section#color_GBG
)
部分#setTitleBarBorderColor
-无效
检查
部分
源代码显示,该代码以以下方式实现:
/**
* Sets the color of the title bar gradient background when TITLE_BAR style
* is used. This color is used at the height where title controls end
* (toggle, tool bar).
*
* @param color
* the title bar gradient background
*/
public void setTitleBarGradientBackground(Color color) {
putTitleBarColor(COLOR_GBG, color);
}
但是如果您查看
部分#onPaint(PaintEvent e)
您将不会发现颜色的任何用法GBG
检查部分
源代码显示,代码是以以下方式实现的:
/**
* Sets the color of the title bar gradient background when TITLE_BAR style
* is used. This color is used at the height where title controls end
* (toggle, tool bar).
*
* @param color
* the title bar gradient background
*/
public void setTitleBarGradientBackground(Color color) {
putTitleBarColor(COLOR_GBG, color);
}
但是如果你看一下部分#onPaint(PaintEvent e)
你就不会发现COLOR\u GBG的任何用法