2016-05-19 6 views
0

を働いていない私はこのように、ネオンバージョンM5のカスタムカラーでボタンを持っている:私はM6に更新したときEclipseのスカウトネオンM6は、ボタンの色

public class MyButton extends AbstractLinkButton { 


    @Override 
    protected String getConfiguredForegroundColor() { 

     return "00B200"; 
    } 

    .... 
} 

は今、私は黒ですべての私のボタンがあります。 Button now Button before

これはバグですか?私はボタンの色を設定するための代替方法を見つけませんでした...

答えて

0

はい、これはバグです、それはRC2で修正されます。

getConfiguredForegroundColorの代わりにgetConfiguredCssClassを使用できます。これにより、アクティブまたはホバーカラーの設定など、スタイリングの可能性がさらに広がります。また、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

関連する問題