Skip to content

Commit

Permalink
add support for font icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Zimmermann committed Mar 4, 2015
1 parent b76df7a commit 7141fb3
Show file tree
Hide file tree
Showing 13 changed files with 1,806 additions and 11 deletions.
Expand Up @@ -24,7 +24,6 @@
import org.eclipsescout.demo.widgets.client.old.ui.desktop.outlines.WidgetsOutline;
import org.eclipsescout.demo.widgets.client.old.ui.forms.ToolButton1Form;
import org.eclipsescout.demo.widgets.client.old.ui.forms.ToolButton2Form;
import org.eclipsescout.demo.widgets.shared.Icons;

public class DesktopExtension extends AbstractDesktopExtension {
public DesktopExtension() {
Expand Down Expand Up @@ -62,7 +61,8 @@ protected String getConfiguredText() {

@Override
protected String getConfiguredIconId() {
return Icons.StarYellow;
// return Icons.StarYellow;
return "font:search!16";
}

@Override
Expand All @@ -79,7 +79,8 @@ public class ToolButton2Tool extends AbstractFormToolButton<ToolButton2Form> {

@Override
protected String getConfiguredIconId() {
return Icons.StarRed;
// return Icons.StarRed;
return "font:gear!16";
}

@Override
Expand Down
6 changes: 6 additions & 0 deletions code/widgets/org.eclipsescout.demo.widgets.client/plugin.xml
Expand Up @@ -18,6 +18,12 @@
class="org.eclipsescout.demo.widgets.client.services.LocalAccessControlService"
session="org.eclipsescout.demo.widgets.client.ClientSession">
</service>
<service
factory="org.eclipse.scout.rt.client.services.ClientServiceFactory"
class="org.eclipsescout.demo.widgets.client.services.FontIconProviderService"
session="org.eclipsescout.demo.widgets.client.ClientSession">
</service>

</extension>

</plugin>
Binary file not shown.
Binary file not shown.

0 comments on commit 7141fb3

Please sign in to comment.