Add accessible text and tooltips to no-graphics buttons in main window

This commit is contained in:
Tamara Cook
2025-11-23 22:24:31 +01:00
parent 7f4776a995
commit b6d0823c24
2 changed files with 12 additions and 4 deletions
+9 -3
View File
@@ -38,14 +38,17 @@
</VBox>
</StackPane>
<HBox styleClass="button-bar">
<Button fx:id="addVaultButton" onAction="#toggleMenu" styleClass="button-left" alignment="CENTER" minWidth="20" contentDisplay="GRAPHIC_ONLY">
<Button fx:id="addVaultButton" onAction="#toggleMenu" styleClass="button-left" alignment="CENTER" minWidth="20" contentDisplay="GRAPHIC_ONLY" accessibleText="%main.vaultlist.addVaultButton.tooltip">
<graphic>
<FontAwesome5IconView glyph="PLUS" glyphSize="16"/>
</graphic>
<tooltip>
<Tooltip text="%main.vaultlist.addVaultButton.tooltip"/>
</tooltip>
</Button>
<Region HBox.hgrow="ALWAYS"/>
<StackPane>
<Button onAction="#showEventViewer" styleClass="button-right" minWidth="20" contentDisplay="GRAPHIC_ONLY" mnemonicParsing="false">
<Button onAction="#showEventViewer" styleClass="button-right" minWidth="20" contentDisplay="GRAPHIC_ONLY" mnemonicParsing="false" accessibleText="%main.vaultlist.showEventsButton.tooltip">
<graphic>
<FontAwesome5IconView glyph="BELL" glyphSize="16"/>
</graphic>
@@ -57,10 +60,13 @@
<Circle radius="4" styleClass="icon-update-indicator" AnchorPane.topAnchor="-8" AnchorPane.rightAnchor="-6" visible="${controller.unreadEventsPresent}" />
</AnchorPane>
</StackPane>
<Button onAction="#showPreferences" styleClass="button-right" alignment="CENTER" minWidth="20" contentDisplay="GRAPHIC_ONLY">
<Button onAction="#showPreferences" styleClass="button-right" alignment="CENTER" minWidth="20" contentDisplay="GRAPHIC_ONLY" accessibleText="%main.vaultlist.showPreferencesButton.tooltip">
<graphic>
<FontAwesome5IconView glyph="COG" glyphSize="16"/>
</graphic>
<tooltip>
<Tooltip text="%main.vaultlist.showPreferencesButton.tooltip"/>
</tooltip>
</Button>
</HBox>
</VBox>