Feat/chat visual improvement #315
@@ -3,13 +3,14 @@
|
|||||||
<?import javafx.scene.control.*?>
|
<?import javafx.scene.control.*?>
|
||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.layout.*?>
|
||||||
|
|
||||||
|
<?import javafx.scene.control.skin.TabPaneSkin.TabContentRegion?>
|
||||||
<VBox xmlns="http://javafx.com/javafx/21"
|
<VBox xmlns="http://javafx.com/javafx/21"
|
||||||
xmlns:fx="http://javafx.com/fxml/1"
|
xmlns:fx="http://javafx.com/fxml/1"
|
||||||
fx:id="chatBox"
|
fx:id="chatBox"
|
||||||
VBox.vgrow="ALWAYS"
|
VBox.vgrow="ALWAYS"
|
||||||
stylesheets="@chatui.css"
|
stylesheets="@chatui.css"
|
||||||
styleClass="chat-box"
|
styleClass="chat-box"
|
||||||
spacing="10"
|
spacing="20"
|
||||||
maxWidth="Infinity">
|
maxWidth="Infinity">
|
||||||
|
|
||||||
<HBox spacing="10"
|
<HBox spacing="10"
|
||||||
@@ -17,14 +18,14 @@
|
|||||||
|
|
||||||
<Label text="== CHAT ==" styleClass="chat-header" alignment="CENTER" maxWidth="Infinity"/>
|
<Label text="== CHAT ==" styleClass="chat-header" alignment="CENTER" maxWidth="Infinity"/>
|
||||||
<Region HBox.hgrow="ALWAYS"/>
|
<Region HBox.hgrow="ALWAYS"/>
|
||||||
<MenuButton fx:id="addWhisperChatButton" styleClass="yellow-button" text="WHISPER CHAT"
|
<MenuButton fx:id="addWhisperChatButton" styleClass="menu-button" text="WHISPER CHAT"
|
||||||
alignment="CENTER_RIGHT">
|
alignment="CENTER_RIGHT">
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
</HBox>
|
</HBox>
|
||||||
|
|
||||||
<TabPane fx:id="chatTabPane"
|
<TabPane fx:id="chatTabPane"
|
||||||
VBox.vgrow="ALWAYS"
|
VBox.vgrow="ALWAYS"
|
||||||
styleClass="tab-header-area">
|
styleClass="tab-pane">
|
||||||
|
|
||||||
</TabPane>
|
</TabPane>
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<VBox fx:id="chatInterfaceVBox"
|
<VBox fx:id="chatInterfaceVBox"
|
||||||
maxWidth="Infinity"
|
maxWidth="Infinity"
|
||||||
spacing="10"
|
spacing="10"
|
||||||
styleClass="chat-box"
|
styleClass="tab-chat-box"
|
||||||
stylesheets="@chatui.css"
|
stylesheets="@chatui.css"
|
||||||
VBox.vgrow="ALWAYS"
|
VBox.vgrow="ALWAYS"
|
||||||
xmlns="http://javafx.com/javafx/17.0.12"
|
xmlns="http://javafx.com/javafx/17.0.12"
|
||||||
|
|||||||
@@ -5,7 +5,17 @@
|
|||||||
-fx-border-color: #5c3d10 #3d260a #3d260a #5c3d10;
|
-fx-border-color: #5c3d10 #3d260a #3d260a #5c3d10;
|
||||||
-fx-border-width: 12;
|
-fx-border-width: 12;
|
||||||
-fx-padding: 20;
|
-fx-padding: 20;
|
||||||
/*-fx-effect: dropshadow(one-pass-box, rgba(0,0,0,1), 0, 0, 15, 15);*/
|
-fx-effect: dropshadow(one-pass-box, rgba(0,0,0,1), 0, 0, 15, 15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-chat-box {
|
||||||
|
|
||||||
|
-fx-background-color: #0d9e3b;
|
||||||
|
-fx-background-radius: 58;
|
||||||
|
-fx-border-radius: 50;
|
||||||
|
-fx-border-color: #0d763b #0d623b #0d623b #0d763b;
|
||||||
|
-fx-border-width: 12;
|
||||||
|
-fx-padding: 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-header {
|
.chat-header {
|
||||||
@@ -163,25 +173,25 @@
|
|||||||
-fx-border-width: 5;
|
-fx-border-width: 5;
|
||||||
-fx-padding: 10;
|
-fx-padding: 10;
|
||||||
-fx-effect: dropshadow(one-pass-box, rgba(0,0,0,1), 0, 0, 15, 15);
|
-fx-effect: dropshadow(one-pass-box, rgba(0,0,0,1), 0, 0, 15, 15);
|
||||||
-fx-max-height: 10;
|
-fx-min-height: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-pane .tab {
|
.tab-pane .tab {
|
||||||
-fx-background-color: #0d9e3b;
|
-fx-background-color: #0d983b;
|
||||||
-fx-background-radius: 18;
|
-fx-background-radius: 28;
|
||||||
-fx-border-radius: 10;
|
-fx-border-radius: 10;
|
||||||
-fx-border-color: #5c3d10 #3d260a #3d260a #5c3d10;
|
-fx-border-color: #0d873b #0d733b #0d733b #0d873b;
|
||||||
-fx-border-width: 5;
|
-fx-border-width: 5;
|
||||||
-fx-padding: 10;
|
-fx-padding: 6 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-pane .tab:selected {
|
.tab-pane .tab:selected {
|
||||||
-fx-background-color: #0d763b;
|
-fx-background-color: #0d873b;
|
||||||
-fx-background-radius: 18;
|
-fx-background-radius: 18;
|
||||||
-fx-border-radius: 10;
|
-fx-border-radius: 10;
|
||||||
-fx-border-color: #5c3d10 #3d260a #3d260a #5c3d10;
|
-fx-border-color: #0d763b #0d623b #0d623b #0d763b;
|
||||||
-fx-border-width: 5;
|
-fx-border-width: 5;
|
||||||
-fx-padding: 10;
|
-fx-padding: 6 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-pane .tab .tab-close-button {
|
.tab-pane .tab .tab-close-button {
|
||||||
@@ -192,7 +202,6 @@
|
|||||||
-fx-background-color: #0d9e3b;
|
-fx-background-color: #0d9e3b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.tab .tab-label {
|
.tab .tab-label {
|
||||||
-fx-alignment: CENTER;
|
-fx-alignment: CENTER;
|
||||||
-fx-text-fill: #ffffff;
|
-fx-text-fill: #ffffff;
|
||||||
@@ -204,3 +213,36 @@
|
|||||||
-fx-alignment: CENTER;
|
-fx-alignment: CENTER;
|
||||||
-fx-text-fill: #ffffff;
|
-fx-text-fill: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu-button {
|
||||||
|
-fx-background-color: #b8860b;
|
||||||
|
-fx-border-color: #ffd700;
|
||||||
|
-fx-text-fill: #ffffff;
|
||||||
|
-fx-background-radius: 12;
|
||||||
|
-fx-border-radius: 12;
|
||||||
|
-fx-font-family: "Courier New";
|
||||||
|
-fx-font-weight: bold;
|
||||||
|
-fx-border-width: 2;
|
||||||
|
-fx-padding: 6 15;
|
||||||
|
-fx-cursor: hand;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-button .context-menu {
|
||||||
|
-fx-background-color: #b8860b;
|
||||||
|
-fx-background-radius: 4;
|
||||||
|
-fx-padding: 6 15;
|
||||||
|
-fx-cursor: hand;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-button:hover {
|
||||||
|
-fx-translate-y: -3;
|
||||||
|
-fx-effect: dropshadow(one-pass-box, rgba(0, 0, 0, 0.8), 0, 0, 3, 3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-button .menu-item {
|
||||||
|
-fx-background-color: #b8860b;
|
||||||
|
-fx-border-color: #ffd700;
|
||||||
|
-fx-text-fill: #ffffff
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user