【问题标题】:Eclipse Scout Neon M6 button color not workingEclipse Scout Neon M6 按钮颜色不起作用
【发布时间】:2016-09-15 21:50:32
【问题描述】:

我在 Neon 版本 M5 中有自定义颜色的按钮,如下所示:

public class MyButton extends AbstractLinkButton {


    @Override
    protected String getConfiguredForegroundColor() {

      return "00B200";
    }

    ....
}

现在当我更新到 M6 时,我的所有按钮都是黑色的。

这是一个错误吗?我没有找到任何设置按钮颜色的替代方法...

【问题讨论】:

    标签: button colors eclipse-scout eclipse-neon


    【解决方案1】:

    是的,这是一个错误,它将在 RC2 中修复。

    您可以使用getConfiguredCssClass,而不是使用getConfiguredForegroundColor。这为您提供了更多样式的可能性,例如设置活动或悬停颜色。您可以使用 colors.css 中定义的调色板中的颜色。

    有关示例,请参见以下链接:

    https://github.com/BSI-Business-Systems-Integration-AG/org.eclipse.scout.docs/blob/releases/6.0.x/code/widgets/org.eclipse.scout.widgets.client/src/main/java/org/eclipse/scout/widgets/client/ui/forms/ButtonForm.java

    https://github.com/BSI-Business-Systems-Integration-AG/org.eclipse.scout.docs/blob/releases/6.0.x/code/widgets/org.eclipse.scout.widgets.ui.html/src/main/js/widgets/forms/ButtonForm.css

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-07-27
      • 2018-04-17
      • 2016-06-29
      • 2016-07-24
      • 2016-04-24
      • 2016-09-22
      • 2016-07-08
      相关资源
      最近更新 更多