add new wallet, open wallet and import wallet hyperlinks to background text shown when no tabs are open

This commit is contained in:
Craig Raw 2024-03-25 14:25:31 +02:00
parent 210d52c001
commit 6ea6f4b5d2
3 changed files with 23 additions and 5 deletions

View file

@ -333,6 +333,8 @@ public class AppController implements Initializable {
EventManager.get().post(new OpenWalletsEvent(tabs.getScene().getWindow(), Collections.emptyList()));
});
tabs.setPickOnBounds(false);
registerShortcuts();
BitcoinUnit unit = Config.get().getBitcoinUnit();

View file

@ -16,6 +16,21 @@
-fx-font-size: 20;
}
.background-link {
-fx-padding: 0;
-fx-border-width: 0;
}
.background-link:visited,
.background-link:hover:armed {
-fx-text-fill: -fx-accent;
-fx-underline: false;
}
.background-link:hover:visited {
-fx-underline: true;
}
.drag-over > .background-text {
-fx-fill: #383a42;
}

View file

@ -156,12 +156,13 @@
</menus>
</MenuBar>
<DecorationPane fx:id="rootStack" VBox.vgrow="ALWAYS">
<Rectangle styleClass="background-box" width="450" height="170" />
<Rectangle styleClass="background-box" width="450" height="230" />
<HBox alignment="CENTER">
<VBox alignment="CENTER_LEFT" spacing="15">
<Text styleClass="background-text" text="File menu → New Wallet or" />
<Text styleClass="background-text" text="File menu → Import Wallet or" />
<Text styleClass="background-text" text="Drag files here to open" />
<VBox alignment="CENTER" spacing="15">
<HBox><Text styleClass="background-text" text="File menu → "/><Hyperlink onAction="#newWallet" styleClass="background-text,background-link" text="New Wallet"/><Text styleClass="background-text" text=" or"/></HBox>
<HBox><Text styleClass="background-text" text="File menu → "/><Hyperlink onAction="#openWallet" styleClass="background-text,background-link" text="Open Wallet"/><Text styleClass="background-text" text=" or"/></HBox>
<HBox><Text styleClass="background-text" text="File menu → "/><Hyperlink onAction="#importWallet" styleClass="background-text,background-link" text="Import Wallet"/><Text styleClass="background-text" text=" or"/></HBox>
<Text styleClass="background-text" text="drag files to open" />
</VBox>
</HBox>
<TabPane fx:id="tabs" />