Skip to content

Commit 3270b81

Browse files
committed
ändrat chat interface
1 parent 05dae89 commit 3270b81

1 file changed

Lines changed: 98 additions & 65 deletions

File tree

Lines changed: 98 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,82 @@
1-
/* ===== Huvudcontainer ===== */
1+
/* ===== Huvudcontainer - RuneScape Classic ===== */
22
.chat-container {
3-
-fx-background-color: #f0f2f5; /* mjuk ljusgrå bakgrund */
4-
-fx-padding: 16;
5-
-fx-spacing: 12;
6-
-fx-font-family: "Segoe UI", Arial, sans-serif;
3+
-fx-background-color: linear-gradient(to bottom, #2d2416, #1a1510);
4+
-fx-padding: 20;
5+
-fx-spacing: 16;
6+
-fx-font-family: "Arial", sans-serif;
7+
-fx-border-color: #8b7355;
8+
-fx-border-width: 3;
79
}
810

911
/* ===== Header ===== */
1012
.chat-title {
11-
-fx-text-fill: #333333;
13+
-fx-text-fill: #ffff00;
1214
-fx-font-size: 28px;
1315
-fx-font-weight: bold;
16+
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.8), 2, 0, 1, 1);
1417
}
1518

1619
/* ===== Current room ===== */
1720
.topic-label {
18-
-fx-font-size: 16px;
21+
-fx-font-size: 15px;
1922
-fx-font-weight: bold;
20-
-fx-text-fill: #555555;
23+
-fx-text-fill: #00ffff;
24+
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.8), 1, 0, 1, 1);
2125
}
2226

2327
/* ===== Room changer ===== */
2428
.topic-container {
25-
-fx-background-color: #e3f2fd;
26-
-fx-padding: 6 10;
27-
-fx-background-radius: 10;
28-
-fx-spacing: 6;
29+
-fx-background-color: #3e3426;
30+
-fx-border-color: #8b7355;
31+
-fx-border-width: 2;
32+
-fx-padding: 8 14;
33+
-fx-background-radius: 3;
34+
-fx-border-radius: 3;
35+
-fx-spacing: 10;
2936
-fx-alignment: CENTER_RIGHT;
3037
}
3138

3239
.topic-input-label {
33-
-fx-font-size: 14px;
34-
-fx-text-fill: #212121;
40+
-fx-font-size: 13px;
41+
-fx-text-fill: #ffffff;
42+
-fx-font-weight: normal;
43+
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.8), 1, 0, 1, 1);
3544
}
3645

3746
.topic-input {
38-
-fx-background-color: white;
39-
-fx-border-color: #2196F3;
40-
-fx-border-width: 1;
41-
-fx-border-radius: 6;
42-
-fx-background-radius: 6;
43-
-fx-padding: 4 8;
44-
-fx-font-size: 14px;
47+
-fx-background-color: #1a1510;
48+
-fx-text-fill: #ffffff;
49+
-fx-border-color: #8b7355;
50+
-fx-border-width: 2;
51+
-fx-border-radius: 3;
52+
-fx-background-radius: 3;
53+
-fx-padding: 6 12;
54+
-fx-font-size: 13px;
55+
-fx-font-family: "Arial", sans-serif;
4556
}
4657

4758
.topic-input:focused {
48-
-fx-border-color: #1976D2;
59+
-fx-border-color: #c4a57b;
4960
-fx-border-width: 2;
5061
}
5162

5263
.topic-button {
53-
-fx-background-color: #4CAF50;
54-
-fx-text-fill: white;
55-
-fx-background-radius: 6;
56-
-fx-padding: 6 14;
64+
-fx-background-color: linear-gradient(to bottom, #6b5d4f, #4a3f33);
65+
-fx-text-fill: #ffff00;
66+
-fx-background-radius: 3;
67+
-fx-border-color: #8b7355;
68+
-fx-border-width: 2;
69+
-fx-padding: 8 20;
5770
-fx-font-size: 14px;
5871
-fx-font-weight: bold;
5972
-fx-cursor: hand;
73+
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.6), 2, 0, 1, 1);
6074
}
6175

6276
.topic-button:hover {
63-
-fx-background-color: #45a049;
77+
-fx-background-color: linear-gradient(to bottom, #8b7355, #6b5d4f);
78+
-fx-text-fill: #00ff00;
79+
-fx-border-color: #c4a57b;
6480
}
6581

6682
.topic-button:disabled {
@@ -69,16 +85,16 @@
6985

7086
/* ===== ListView styling ===== */
7187
.message-list {
72-
-fx-background-color: #ffffff;
73-
-fx-border-color: #d0d0d0;
74-
-fx-border-width: 1;
75-
-fx-border-radius: 10;
76-
-fx-background-radius: 10;
88+
-fx-background-color: #000000;
89+
-fx-border-color: #8b7355;
90+
-fx-border-width: 3;
91+
-fx-border-radius: 3;
92+
-fx-background-radius: 3;
7793
}
7894

7995
.message-list .list-cell {
8096
-fx-background-color: transparent;
81-
-fx-padding: 4 8;
97+
-fx-padding: 6 12;
8298
}
8399

84100
.message-list .list-cell:selected {
@@ -87,61 +103,75 @@
87103

88104
/* ===== Chat bubbles ===== */
89105
.chat-bubble {
90-
-fx-background-radius: 18;
91-
-fx-padding: 10 14;
92-
-fx-effect: dropshadow(gaussian, rgba(0,0,0,0.08), 3, 0, 0, 2);
93-
-fx-text-fill: black;
106+
-fx-background-radius: 3;
107+
-fx-padding: 8 14;
94108
-fx-wrap-text: true;
95-
-fx-max-width: 260px;
109+
-fx-max-width: 280px;
110+
-fx-font-family: "Arial", sans-serif;
111+
-fx-font-size: 13px;
112+
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.7), 2, 0, 1, 1);
96113
}
97114

98115
.chat-bubble-sent {
99-
-fx-background-color: #2196F3;
100-
-fx-text-fill: white;
101-
-fx-background-radius: 15 15 0 15;
116+
-fx-background-color: #1a4d1a;
117+
-fx-text-fill: #00ff00;
118+
-fx-background-radius: 3;
119+
-fx-border-color: #2d7a2d;
120+
-fx-border-width: 1;
121+
-fx-font-weight: normal;
102122
}
103123

104124
.chat-bubble-received {
105-
-fx-background-color: #e8e8e8;
106-
-fx-text-fill: #212121;
107-
-fx-background-radius: 15 15 15 0;
125+
-fx-background-color: #1a1a4d;
126+
-fx-text-fill: #00ffff;
127+
-fx-background-radius: 3;
128+
-fx-border-color: #2d2d7a;
129+
-fx-border-width: 1;
130+
-fx-font-weight: normal;
108131
}
109132

110133
/* ===== Input area ===== */
111134
.input-container {
112135
-fx-alignment: CENTER;
113-
-fx-spacing: 10;
136+
-fx-spacing: 12;
114137
}
115138

116139
.message-input {
117-
-fx-background-color: #ffffff;
118-
-fx-border-color: #d0d0d0;
119-
-fx-border-width: 1;
120-
-fx-border-radius: 20;
121-
-fx-background-radius: 20;
122-
-fx-padding: 8 16;
123-
-fx-font-size: 14;
140+
-fx-background-color: #000000;
141+
-fx-text-fill: #00ff00;
142+
-fx-border-color: #8b7355;
143+
-fx-border-width: 2;
144+
-fx-border-radius: 3;
145+
-fx-background-radius: 3;
146+
-fx-padding: 12 18;
147+
-fx-font-size: 13px;
148+
-fx-font-family: "Arial", sans-serif;
124149
}
125150

126151
.message-input:focused {
127-
-fx-border-color: #2196F3;
128-
-fx-border-width: 2;
152+
-fx-border-color: #c4a57b;
153+
-fx-border-width: 3;
129154
}
130155

131156
/* ===== Send button ===== */
132157
.send-button {
133-
-fx-background-color: #2196F3;
134-
-fx-text-fill: white;
135-
-fx-background-radius: 20;
136-
-fx-padding: 12 24;
158+
-fx-background-color: linear-gradient(to bottom, #6b5d4f, #4a3f33);
159+
-fx-text-fill: #ffff00;
160+
-fx-background-radius: 3;
161+
-fx-border-color: #8b7355;
162+
-fx-border-width: 2;
163+
-fx-padding: 14 30;
137164
-fx-font-weight: bold;
138-
-fx-font-size: 14;
165+
-fx-font-size: 15;
166+
-fx-font-family: "Arial", sans-serif;
139167
-fx-cursor: hand;
140-
-fx-effect: dropshadow(gaussian, rgba(0,0,0,0.1), 2, 0, 0, 1);
168+
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.6), 3, 0, 1, 1);
141169
}
142170

143171
.send-button:hover {
144-
-fx-background-color: #1976D2;
172+
-fx-background-color: linear-gradient(to bottom, #8b7355, #6b5d4f);
173+
-fx-text-fill: #00ff00;
174+
-fx-border-color: #c4a57b;
145175
}
146176

147177
.send-button:disabled {
@@ -150,14 +180,17 @@
150180

151181
/* ===== Scrollbar styling ===== */
152182
.list-view > .scroll-bar:vertical {
153-
-fx-background-color: transparent;
183+
-fx-background-color: #2d2416;
154184
}
155185

156186
.list-view > .scroll-bar:vertical .thumb {
157-
-fx-background-color: #bdbdbd;
158-
-fx-background-radius: 4;
187+
-fx-background-color: #6b5d4f;
188+
-fx-background-radius: 2;
189+
-fx-border-color: #8b7355;
190+
-fx-border-width: 1;
159191
}
160192

161193
.list-view > .scroll-bar:vertical .thumb:hover {
162-
-fx-background-color: #9e9e9e;
194+
-fx-background-color: #7d6b5a;
195+
-fx-border-color: #c4a57b;
163196
}

0 commit comments

Comments
 (0)