Skip to content

Commit

Permalink
Change Button Text Color
Browse files Browse the repository at this point in the history
  • Loading branch information
haophuc-tonthat committed Feb 27, 2022
1 parent 2a9685e commit 2a1f2f5
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 18 deletions.
14 changes: 10 additions & 4 deletions out/production/ProjectJava15/resources/views/Profile.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,15 @@
</cursor>
</Button>
<ImageView fx:id="imgAvatar" fitHeight="226.771" fitWidth="151.181" layoutX="396.0" layoutY="162.0" pickOnBounds="true" preserveRatio="true" AnchorPane.rightAnchor="102.81900024414062" />
<Button fx:id="btnCancel" layoutX="612.0" layoutY="527.0" mnemonicParsing="false" prefHeight="26.0" prefWidth="100.0" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Cancel" AnchorPane.bottomAnchor="20.0" AnchorPane.rightAnchor="20.0">
<Button fx:id="btnCancel" layoutX="612.0" layoutY="527.0" mnemonicParsing="false" prefHeight="26.0" prefWidth="100.0" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Close" AnchorPane.bottomAnchor="20.0" AnchorPane.rightAnchor="20.0">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
<graphic>
<FontIcon iconColor="#111111" iconLiteral="gmi-close" iconSize="17" />
</graphic>
</Button>
<Button fx:id="btnLoadAvatar" layoutX="417.0" layoutY="398.0" mnemonicParsing="false" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Upload Avatar">
<Button fx:id="btnLoadAvatar" layoutX="406.0" layoutY="398.0" mnemonicParsing="false" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Upload Avatar">
<textFill>
<LinearGradient endX="1.0" endY="1.0">
<stops>
Expand All @@ -164,12 +167,15 @@
</Stop>
<Stop offset="1.0">
<color>
<Color red="1.0" green="1.0" blue="1.0" />
<Color red="0.99210524559021" green="0.99210524559021" blue="0.99210524559021" />
</color>
</Stop>
</stops>
</LinearGradient>
</textFill></Button>
</textFill>
<graphic>
<FontIcon iconColor="WHITE" iconLiteral="gmi-upload-file" iconSize="17" />
</graphic></Button>
</children>
<opaqueInsets>
<Insets />
Expand Down
4 changes: 2 additions & 2 deletions src/resources/views/AddCustomer.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
</HBox>
<ButtonBar layoutX="565.0" layoutY="286.0" prefHeight="40.0" prefWidth="200.0">
<buttons>
<Button fx:id="btnAdd" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Add">
<Button fx:id="btnAdd" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Add" textFill="WHITE">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</Button>
<Button fx:id="btnCancel" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Cancel">
<Button fx:id="btnCancel" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Cancel" textFill="WHITE">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
Expand Down
4 changes: 2 additions & 2 deletions src/resources/views/AddEmployee.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
</HBox>
<ButtonBar layoutX="564.0" layoutY="529.0" prefHeight="40.0" prefWidth="200.0">
<buttons>
<Button fx:id="btnAdd" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Add">
<Button fx:id="btnAdd" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Add" textFill="WHITE">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</Button>
<Button fx:id="btnCancel" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Cancel">
<Button fx:id="btnCancel" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Cancel" textFill="WHITE">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
Expand Down
4 changes: 2 additions & 2 deletions src/resources/views/ChangePassword.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
</HBox>
<ButtonBar layoutX="243.0" layoutY="217.0" nodeOrientation="LEFT_TO_RIGHT" prefHeight="40.0" prefWidth="200.0">
<buttons>
<Button fx:id="btnSave" mnemonicParsing="false" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Save">
<Button fx:id="btnSave" mnemonicParsing="false" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Save" textFill="WHITE">
<cursor>
<Cursor fx:constant="HAND" />
</cursor></Button>
<Button fx:id="btnCancel" mnemonicParsing="false" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Cancel">
<Button fx:id="btnCancel" mnemonicParsing="false" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Cancel" textFill="WHITE">
<cursor>
<Cursor fx:constant="HAND" />
</cursor></Button>
Expand Down
4 changes: 2 additions & 2 deletions src/resources/views/EditCustomer.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
</HBox>
<ButtonBar layoutX="565.0" layoutY="286.0" prefHeight="40.0" prefWidth="200.0">
<buttons>
<Button fx:id="btnSave" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Save">
<Button fx:id="btnSave" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Save" textFill="WHITE">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</Button>
<Button fx:id="btnCancel" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Cancel">
<Button fx:id="btnCancel" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Cancel" textFill="WHITE">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
Expand Down
4 changes: 2 additions & 2 deletions src/resources/views/EditEmployee.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@
</GridPane>
<ButtonBar layoutX="561.0" layoutY="355.0" prefHeight="40.0" prefWidth="200.0">
<buttons>
<Button fx:id="btnSave" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Edit">
<Button fx:id="btnSave" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Edit" textFill="WHITE">
<cursor>
<Cursor fx:constant="HAND" />
</cursor></Button>
<Button fx:id="btnCancel" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Cancel">
<Button fx:id="btnCancel" mnemonicParsing="false" prefHeight="26.0" prefWidth="73.0" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Cancel" textFill="WHITE">
<cursor>
<Cursor fx:constant="HAND" />
</cursor></Button>
Expand Down
14 changes: 10 additions & 4 deletions src/resources/views/Profile.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,15 @@
</cursor>
</Button>
<ImageView fx:id="imgAvatar" fitHeight="226.771" fitWidth="151.181" layoutX="396.0" layoutY="162.0" pickOnBounds="true" preserveRatio="true" AnchorPane.rightAnchor="102.81900024414062" />
<Button fx:id="btnCancel" layoutX="612.0" layoutY="527.0" mnemonicParsing="false" prefHeight="26.0" prefWidth="100.0" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Cancel" AnchorPane.bottomAnchor="20.0" AnchorPane.rightAnchor="20.0">
<Button fx:id="btnCancel" layoutX="612.0" layoutY="527.0" mnemonicParsing="false" prefHeight="26.0" prefWidth="100.0" styleClass="set-btn" stylesheets="@../styles/setButton.css" text="Close" textFill="WHITE" AnchorPane.bottomAnchor="20.0" AnchorPane.rightAnchor="20.0">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
<graphic>
<FontIcon iconColor="WHITE" iconLiteral="gmi-close" iconSize="17" />
</graphic>
</Button>
<Button fx:id="btnLoadAvatar" layoutX="417.0" layoutY="398.0" mnemonicParsing="false" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Upload Avatar">
<Button fx:id="btnLoadAvatar" layoutX="406.0" layoutY="398.0" mnemonicParsing="false" styleClass="set-type2-btn" stylesheets="@../styles/setButton.css" text="Upload Avatar">
<textFill>
<LinearGradient endX="1.0" endY="1.0">
<stops>
Expand All @@ -164,12 +167,15 @@
</Stop>
<Stop offset="1.0">
<color>
<Color red="1.0" green="1.0" blue="1.0" />
<Color red="0.99210524559021" green="0.99210524559021" blue="0.99210524559021" />
</color>
</Stop>
</stops>
</LinearGradient>
</textFill></Button>
</textFill>
<graphic>
<FontIcon iconColor="WHITE" iconLiteral="gmi-upload-file" iconSize="17" />
</graphic></Button>
</children>
<opaqueInsets>
<Insets />
Expand Down

0 comments on commit 2a1f2f5

Please sign in to comment.