RCP 应用程序如何增加 ActionBarAdvisor 中 Cool bar 的默认高度
RCP Application how can we increase default height of Cool bar in ActionBarAdvisor
我正在对现有的 RCP 应用程序进行自定义。有没有办法增加酷栏的默认高度。我试过下面的代码但不起作用:
IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
ToolBarContributionItem item = new ToolBarContributionItem(toolbar, "main");
item.setCurrentHeight(5);
item.setCurrentWidth(5);
item.update(ICoolBarManager.SIZE);
有没有办法使用 CSS 来做到这一点?下面是客户想要的截图:
实现此目的的解决方法是添加更大尺寸的图标。我通过添加 64 x 64 像素的图标实现了我想要的效果
我正在对现有的 RCP 应用程序进行自定义。有没有办法增加酷栏的默认高度。我试过下面的代码但不起作用:
IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
ToolBarContributionItem item = new ToolBarContributionItem(toolbar, "main");
item.setCurrentHeight(5);
item.setCurrentWidth(5);
item.update(ICoolBarManager.SIZE);
有没有办法使用 CSS 来做到这一点?下面是客户想要的截图:
实现此目的的解决方法是添加更大尺寸的图标。我通过添加 64 x 64 像素的图标实现了我想要的效果