JavaFx:添加顶部菜单 Microsoft Ribbon For JavaFX
Microsoft Ribbon For JavaFX:Ribbon control for Java, implemented using JavaFX, based on the Microsoft Ribbon.
Github FXRibbon
FXRibbon-master 导入运行
运行ChangeAccentColorSample:更多内容查看Microsoft Ribbon For JavaFX
导入使用
implementation 'com.pixelduke:fxribbon:1.2.2'
<QuickAccessBar>
<buttons>
<Button fx:id="newScreenShot">
<graphic>
<FontIcon iconLiteral="win10-crop" iconColor="red" iconSize="24"/>
</graphic>
<text>截图</text>
</Button>
<Button fx:id="openImage">
<graphic>
<FontIcon iconLiteral="antf-folder-open" iconSize="24"/>
</graphic>
</Button>
<Button fx:id="saveScreenShot">
<graphic>
<FontIcon iconLiteral="antf-save" iconSize="24"/>
</graphic>
</Button>
<Button fx:id="pencil">
<graphic>
<FontIcon fx:id="pencilIcon" iconLiteral="win10-pencil" iconColor="red"
iconSize="24"/>
</graphic>
<text>画笔</text>
</Button>
</buttons>
</QuickAccessBar>