mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 13:16:44 +00:00
add new wallet, open wallet and import wallet hyperlinks to background text shown when no tabs are open
This commit is contained in:
parent
210d52c001
commit
6ea6f4b5d2
3 changed files with 23 additions and 5 deletions
|
@ -333,6 +333,8 @@ public class AppController implements Initializable {
|
||||||
EventManager.get().post(new OpenWalletsEvent(tabs.getScene().getWindow(), Collections.emptyList()));
|
EventManager.get().post(new OpenWalletsEvent(tabs.getScene().getWindow(), Collections.emptyList()));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
tabs.setPickOnBounds(false);
|
||||||
|
|
||||||
registerShortcuts();
|
registerShortcuts();
|
||||||
|
|
||||||
BitcoinUnit unit = Config.get().getBitcoinUnit();
|
BitcoinUnit unit = Config.get().getBitcoinUnit();
|
||||||
|
|
|
@ -16,6 +16,21 @@
|
||||||
-fx-font-size: 20;
|
-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 {
|
.drag-over > .background-text {
|
||||||
-fx-fill: #383a42;
|
-fx-fill: #383a42;
|
||||||
}
|
}
|
||||||
|
|
|
@ -156,12 +156,13 @@
|
||||||
</menus>
|
</menus>
|
||||||
</MenuBar>
|
</MenuBar>
|
||||||
<DecorationPane fx:id="rootStack" VBox.vgrow="ALWAYS">
|
<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">
|
<HBox alignment="CENTER">
|
||||||
<VBox alignment="CENTER_LEFT" spacing="15">
|
<VBox alignment="CENTER" spacing="15">
|
||||||
<Text styleClass="background-text" text="File menu → New Wallet or" />
|
<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>
|
||||||
<Text styleClass="background-text" text="File menu → Import Wallet or" />
|
<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>
|
||||||
<Text styleClass="background-text" text="Drag files here to open" />
|
<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>
|
</VBox>
|
||||||
</HBox>
|
</HBox>
|
||||||
<TabPane fx:id="tabs" />
|
<TabPane fx:id="tabs" />
|
||||||
|
|
Loading…
Reference in a new issue