diff --git a/src/main/resources/org/to/telegramfinalproject/CSS/dark_theme.css b/src/main/resources/org/to/telegramfinalproject/CSS/dark_theme.css index cdb4235..91ecc12 100644 --- a/src/main/resources/org/to/telegramfinalproject/CSS/dark_theme.css +++ b/src/main/resources/org/to/telegramfinalproject/CSS/dark_theme.css @@ -124,17 +124,17 @@ /* Input bubble */ .msg-input { - -fx-background-color: white; + -fx-background-color: #1b2b39; /* dark bluish background */ + -fx-control-inner-background: #1b2b39; + -fx-text-fill: #e8f1f8; + -fx-prompt-text-fill: #8ea1b2; -fx-background-radius: 18; -fx-padding: 6 12 6 12; - -fx-text-fill: #0f141a; - -fx-prompt-text-fill: #9aa6b2; -fx-border-color: transparent; - - -fx-control-inner-background: white; -fx-focus-color: transparent; -fx-faint-focus-color: transparent; } + .msg-input .scroll-pane { -fx-vbar-policy: never; -fx-hbar-policy: never; @@ -144,6 +144,7 @@ -fx-background-color: transparent; } +/* Context menu */ .context-menu { -fx-background-color: #1b2735; -fx-background-radius: 6; @@ -162,17 +163,140 @@ -fx-background-radius: 4; } -/* ===== Search panel ===== */ -.chat-search-pane { - -fx-background-color: #1b2735; /* matches sidebar */ + +/* ===== Search panel (dark) ===== */ +.chat-search-pane { -fx-background-color: #1b2735; } +.chat-search-bar { -fx-background-color: transparent; -fx-padding: 8 10; } +.search-placeholder { -fx-text-fill: #8ea1b2; -fx-font-size: 13px; } + +/* ===== Global search bar ===== */ +.global-search { + -fx-background-color: #1b2b39; + -fx-background-radius: 15; + -fx-text-fill: #e8f1f8; + -fx-prompt-text-fill: #8ea1b2; } -.chat-search-bar { +/* ===== Chat list ===== */ +.chat-list { -fx-background-color: #0f1c26; } +.chat-list .label { -fx-text-fill: #e8f1f8; } + +/* ===== Sidebar / Left Pane ===== */ +.sidebar-pane { + -fx-background-color: #1b2735; /* Telegram dark */ +} + +.sidebar-topbar { -fx-background-color: transparent; - -fx-padding: 8 10; } -.search-placeholder { +.menu-btn { + -fx-background-color: transparent; + -fx-cursor: hand; +} + +.global-search { + -fx-background-color: #2a3a4a; + -fx-background-radius: 15; + -fx-text-fill: #e8f1f8; + -fx-prompt-text-fill: #8ea1b2; + -fx-border-color: transparent; +} + +/* Chat list */ +.chat-list { + -fx-background-color: #0f1c26; +} + +.chat-scroll { + -fx-background-color: transparent; +} + +/* ===== Search Panel ===== */ +.chat-search-pane { + -fx-background-color: #1b2735; +} + +.search-label { -fx-text-fill: #8ea1b2; - -fx-font-size: 13px; + -fx-font-size: 11px; + -fx-padding: 10 0 5 10; +} + +.search-separator { + -fx-background-color: #2e3948; +} + +.search-scope-bar { + -fx-padding: 8 10; + -fx-border-color: #2e3948; + -fx-border-width: 0 0 1 0; +} + +.search-scope { + -fx-text-fill: #8ea1b2; + -fx-font-size: 11px; +} + +.close-btn { + -fx-background-color: transparent; + -fx-cursor: hand; + -fx-text-fill: #e8f1f8; +} + +/* ===== Right Chat Panel ===== */ +.chat-display { + -fx-background-color: #0f1c26; +} + +/* ===== Overlay ===== */ +.overlay { + -fx-background-color: rgba(0,0,0,0.3); +} + +/* Chat item container */ +.chat-item { + -fx-background-color: #0f1c26; + -fx-padding: 10; + -fx-border-color: #2e3948; + -fx-border-width: 0 0 1 0; +} + +.chat-item:hover { + -fx-background-color: #223446; + -fx-cursor: hand; +} + +/* Avatar */ +.chat-avatar { + -fx-background-radius: 50; + -fx-border-radius: 50; +} + +/* Chat details */ +.chat-name { + -fx-font-size: 14; + -fx-font-weight: bold; + -fx-text-fill: #e8f1f8; +} + +.chat-last-message { + -fx-text-fill: #8ea1b2; + -fx-font-size: 12; +} + +/* Time + unread */ +.chat-time { + -fx-font-size: 11; + -fx-text-fill: #8ea1b2; +} + +/* Unread counter (same for both modes) */ +.unread-count { + -fx-background-color: #2196f3; /* blue bubble */ + -fx-text-fill: white !important; /* always white */ + -fx-font-size: 10px; + -fx-padding: 3 6; + -fx-background-radius: 10; + -fx-font-weight: bold; } diff --git a/src/main/resources/org/to/telegramfinalproject/CSS/light_theme.css b/src/main/resources/org/to/telegramfinalproject/CSS/light_theme.css index c98942f..edeb0ee 100644 --- a/src/main/resources/org/to/telegramfinalproject/CSS/light_theme.css +++ b/src/main/resources/org/to/telegramfinalproject/CSS/light_theme.css @@ -51,12 +51,12 @@ -fx-text-fill: black; } -/* Thin Telegram-like SplitPane divider (light) */ +/* SplitPane divider */ .split-pane:horizontal > .split-pane-divider { - -fx-background-color: transparent; /* no big solid block */ - -fx-border-color: #cccccc; /* the visible thin line */ - -fx-border-width: 0 1px 0 1px; /* 1px vertical line */ - -fx-padding: 0 0 0 0.5px; /* big invisible hitbox for the mouse */ + -fx-background-color: transparent; + -fx-border-color: #cccccc; + -fx-border-width: 0 1px 0 1px; + -fx-padding: 0 0 0 0.5px; } .placeholder-label { @@ -144,6 +144,7 @@ -fx-background-color: transparent; } +/* Context menu */ .context-menu { -fx-background-color: white; -fx-background-radius: 6; @@ -162,17 +163,139 @@ -fx-background-radius: 4; } -/* ===== Search panel ===== */ + +/* ===== Search panel (light) ===== */ +.chat-search-pane { -fx-background-color: #f5f5f5; } +.chat-search-bar { -fx-background-color: transparent; -fx-padding: 8 10; } +.search-placeholder { -fx-text-fill: #7e8a97; -fx-font-size: 13px; } + +/* ===== Global search bar ===== */ +.global-search { + -fx-background-color: #f5f5f5; + -fx-background-radius: 15; + -fx-text-fill: #0f141a; + -fx-prompt-text-fill: #9aa6b2; +} + +/* ===== Chat list ===== */ +.chat-list { -fx-background-color: #ffffff; } +.chat-list .label { -fx-text-fill: #0f141a; } + +/* ===== Sidebar / Left Pane ===== */ +.sidebar-pane { + -fx-background-color: #ffffff; +} + +.sidebar-topbar { + -fx-background-color: transparent; +} + +.menu-btn { + -fx-background-color: transparent; + -fx-cursor: hand; +} + +.global-search { + -fx-background-color: #f5f5f5; + -fx-background-radius: 15; + -fx-text-fill: #0f141a; + -fx-prompt-text-fill: #7e8a97; + -fx-border-color: transparent; +} + +/* Chat list */ +.chat-list { + -fx-background-color: transparent; +} + +.chat-scroll { + -fx-background-color: transparent; +} + +/* ===== Search Panel ===== */ .chat-search-pane { -fx-background-color: #f5f5f5; } -.chat-search-bar { - -fx-background-color: transparent; - -fx-padding: 8 10; +.search-label { + -fx-text-fill: #7e8a97; + -fx-font-size: 11px; + -fx-padding: 10 0 5 10; } -.search-placeholder { +.search-separator { + -fx-background-color: #e6e6e6; +} + +.search-scope-bar { + -fx-padding: 8 10; + -fx-border-color: #e6e6e6; + -fx-border-width: 0 0 1 0; +} + +.search-scope { -fx-text-fill: #7e8a97; - -fx-font-size: 13px; + -fx-font-size: 11px; +} + +.close-btn { + -fx-background-color: transparent; + -fx-cursor: hand; +} + +/* ===== Right Chat Panel ===== */ +.chat-display { + -fx-background-color: #fafafa; +} + +/* ===== Overlay ===== */ +.overlay { + -fx-background-color: rgba(0,0,0,0.3); +} + +/* Chat item container */ +.chat-item { + -fx-background-color: #ffffff; + -fx-padding: 10; + -fx-border-color: #ddd; + -fx-border-width: 0 0 1 0; +} + +.chat-item:hover { + -fx-background-color: #f5f5f5; + -fx-cursor: hand; +} + +/* Avatar */ +.chat-avatar { + -fx-background-radius: 50; + -fx-border-radius: 50; +} + +/* Chat details */ +.chat-name { + -fx-font-size: 14; + -fx-font-weight: bold; + -fx-text-fill: #0f141a; +} + +.chat-last-message { + -fx-text-fill: #7e8a97; + -fx-font-size: 12; +} + +/* Time + unread */ +.chat-time { + -fx-font-size: 11; + -fx-text-fill: #7e8a97; +} + +/* Unread counter (same for both modes) */ +.unread-count { + -fx-background-color: #2196f3; /* blue bubble */ + -fx-text-fill: white !important; /* always white */ + -fx-font-size: 10px; + -fx-padding: 3 6; + -fx-background-radius: 10; + -fx-font-weight: bold; } diff --git a/src/main/resources/org/to/telegramfinalproject/Fxml/chat_item.fxml b/src/main/resources/org/to/telegramfinalproject/Fxml/chat_item.fxml index 2d94145..821b74e 100644 --- a/src/main/resources/org/to/telegramfinalproject/Fxml/chat_item.fxml +++ b/src/main/resources/org/to/telegramfinalproject/Fxml/chat_item.fxml @@ -8,23 +8,23 @@ + styleClass="chat-item"> - + - - - \ No newline at end of file + diff --git a/src/main/resources/org/to/telegramfinalproject/Fxml/main.fxml b/src/main/resources/org/to/telegramfinalproject/Fxml/main.fxml index 0461623..d6db77f 100644 --- a/src/main/resources/org/to/telegramfinalproject/Fxml/main.fxml +++ b/src/main/resources/org/to/telegramfinalproject/Fxml/main.fxml @@ -21,18 +21,19 @@ - + - + -