Smooth logo badge
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
<?import javafx.scene.image.ImageView?>
|
<?import javafx.scene.image.ImageView?>
|
||||||
<?import javafx.scene.layout.StackPane?>
|
<?import javafx.scene.layout.StackPane?>
|
||||||
<?import javafx.scene.layout.VBox?>
|
<?import javafx.scene.layout.VBox?>
|
||||||
<?import javafx.scene.shape.Circle?>
|
|
||||||
<?import javafx.scene.text.Font?>
|
<?import javafx.scene.text.Font?>
|
||||||
|
|
||||||
<VBox alignment="CENTER" prefHeight="420.0" prefWidth="380.0" spacing="16.0"
|
<VBox alignment="CENTER" prefHeight="420.0" prefWidth="380.0" spacing="16.0"
|
||||||
@@ -21,10 +20,9 @@
|
|||||||
<Insets bottom="40.0" left="50.0" right="50.0" top="40.0" />
|
<Insets bottom="40.0" left="50.0" right="50.0" top="40.0" />
|
||||||
</padding>
|
</padding>
|
||||||
<children>
|
<children>
|
||||||
<StackPane>
|
<StackPane style="-fx-background-color: #f8fafc; -fx-background-radius: 999; -fx-padding: 12; -fx-border-color: #d7dee8; -fx-border-radius: 999; -fx-border-width: 1;">
|
||||||
<children>
|
<children>
|
||||||
<Circle fill="#f8fafc" radius="94.0" stroke="#d7dee8" strokeWidth="1.5" />
|
<ImageView fitHeight="180.0" fitWidth="320.0" preserveRatio="true" smooth="true">
|
||||||
<ImageView fitHeight="180.0" fitWidth="320.0" preserveRatio="true">
|
|
||||||
<image>
|
<image>
|
||||||
<Image url="@images/leons-pet-store-badge-text.png" />
|
<Image url="@images/leons-pet-store-badge-text.png" />
|
||||||
</image>
|
</image>
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
<?import javafx.scene.layout.HBox?>
|
<?import javafx.scene.layout.HBox?>
|
||||||
<?import javafx.scene.layout.StackPane?>
|
<?import javafx.scene.layout.StackPane?>
|
||||||
<?import javafx.scene.layout.VBox?>
|
<?import javafx.scene.layout.VBox?>
|
||||||
<?import javafx.scene.shape.Circle?>
|
|
||||||
<?import javafx.scene.text.Font?>
|
<?import javafx.scene.text.Font?>
|
||||||
|
|
||||||
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="742.0" prefWidth="1069.0" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.petshopdesktop.controllers.MainLayoutController">
|
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="742.0" prefWidth="1069.0" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.petshopdesktop.controllers.MainLayoutController">
|
||||||
@@ -24,10 +23,9 @@
|
|||||||
</padding>
|
</padding>
|
||||||
<children>
|
<children>
|
||||||
<HBox alignment="CENTER">
|
<HBox alignment="CENTER">
|
||||||
<StackPane onMouseClicked="#logoClicked" style="-fx-cursor: hand; -fx-effect: dropshadow(gaussian, rgba(15,23,42,0.22), 18, 0.16, 0, 6);">
|
<StackPane onMouseClicked="#logoClicked" style="-fx-cursor: hand; -fx-effect: dropshadow(gaussian, rgba(15,23,42,0.22), 18, 0.16, 0, 6); -fx-background-color: #f8fafc; -fx-background-radius: 999; -fx-padding: 8; -fx-border-color: #d7dee8; -fx-border-radius: 999; -fx-border-width: 1;">
|
||||||
<children>
|
<children>
|
||||||
<Circle fill="#f8fafc" radius="52.0" stroke="#d7dee8" strokeWidth="1.2" />
|
<ImageView fx:id="imgLogo" fitHeight="90.0" fitWidth="90.0" preserveRatio="true" smooth="true">
|
||||||
<ImageView fx:id="imgLogo" fitHeight="90.0" fitWidth="90.0" preserveRatio="true">
|
|
||||||
<image>
|
<image>
|
||||||
<Image url="@images/leons-pet-store-badge.png" />
|
<Image url="@images/leons-pet-store-badge.png" />
|
||||||
</image>
|
</image>
|
||||||
|
|||||||
Reference in New Issue
Block a user