Commit f5bf88b
Theme and UI Improvements (#86)
* Theme and UI Improvements
This PR updates the application's UI color scheme and background styling to improve visual consistency and create a more modern, polished look. Key changes include:
Replaced hard-coded color values with rgba() values for better opacity control and consistent transparency effects
Updated background patterns and gradients for a more subtle, professional appearance
Standardized background colors across components using a new rgba(23,35,52,0.45) base color
Enhanced hover and glow effects for interactive elements
Improved modal styling with softer borders and shadows
Updated component backgrounds (Console, Controller, SerialLoader) to match the new color scheme
Optimized background layering and z-index handling
Fixed ESLint dependency warnings in useEffect
The changes maintain the dark theme while providing better visual hierarchy and a more cohesive look across the application. All components have been tested for proper rendering and interaction.
* Variables added instead of in-line
# UI Theme and Code Quality Improvements
## Changes Made
- Moved all inline rgba/hex colors to Tailwind theme variables for better maintainability
- Created new color variables in tailwind.config.ts:
- component-bg: rgba(23, 35, 52, 0.45)
- modal-bg: rgba(23, 35, 52, 0.45)
- modal-border: rgb(17, 24, 39)
- overlay: rgba(0, 0, 0, 0.5)
- Replaced inline colors with theme variables across components:
- Console.tsx: Replaced bg-[rgba(23,35,52,0.45)] with bg-component-bg
- Controller.tsx: Standardized all component backgrounds
- Modal.tsx: Updated borders and background styling
- SerialLoader.tsx: Consistent theme application
- Fixed ESLint dependency warnings in useEffect hooks
- Standardized fraction widths (w-[80%] to w-4/5)
- Added rounded-md for consistent border radius
- Improved button hover states
- Removed duplicate className props
- Added proper export defaults where missing
## Code Quality
- Removed eslint-disable comments
- Cleaned up code comments
- Improved type safety
- Better component organization
## Visual Consistency
- All overlaid components now use the same background opacity
- Consistent border and shadow styling
- Uniform component spacing
- Standardized rounding on corners
This PR aims to improve maintainability and establish a consistent visual language throughout the application while following Tailwind best practices.
* Update SerialLoader.tsx
Found another element needing to match theme in ErrorMessage.
* Update Modal.tsx
Forgot this file 🫣
* Further UI improvements
# Unified Component Styling & Visual Improvements
This PR implements a consistent styling system across the application's components, focusing on transparency, blur effects, and interactive elements.
## Changes
### Global Styling
- Consolidated background styles into two main classes: `bg-component` and `bg-alert`
- Standardized blur effects and transparency levels
- Added consistent hover state transitions
### Component Updates
- Modal: Updated to use unified background styling with blur effects
- Console: Improved readability with standardized transparency
- Controller Section: Refined background opacity and blur
- Device Buttons: Updated to match the new design system
- Replaced specific color classes with unified component styling
- Added smooth hover transitions
- Improved visual consistency across all control buttons
### Visual Improvements
- Live Screen controls now have better visual hierarchy
- Improved contrast and readability across all interactive elements
- Standardized blur effects (5px) for consistent depth perception
- Added subtle hover animations for better user feedback
## Technical Details
- Removed redundant background classes
- Added `-webkit-backdrop-filter` for better browser compatibility
- Consolidated similar styles to reduce CSS repetition
- Maintained accessibility with appropriate contrast ratios
## Testing
Please verify:
- Modal transparency and blur effects
- Button hover states and transitions
- Console readability
- Overall visual consistency
These changes improve the UI's cohesiveness while maintaining functionality and usability.
* Update Modal.tsx
* Update SerialLoader.tsx
Matching theme here.
* UI Improvements
# UI Improvements for Better User Experience
This PR includes several UI improvements to enhance the user experience:
## 1. Fixed Button Background Issues
- Removed the background color from the container holding the DFU and REBOOT buttons
- This resolves an issue where those buttons weren't properly displaying their disabled state
- The buttons now visually match the rest of the control buttons when disabled
## 2. Enhanced Command Input Field Visibility
- Added a subtle glow effect to the command input field to draw user attention
- The input now features:
- A constant soft white glow around the edges
- Enhanced glow effect when focused
- Smooth transition animation between states
- Removed default outline for a cleaner look
These changes improve both the functional consistency and visual hierarchy of the interface, making it more intuitive for users to interact with the application.
* Made the background less distracting
* Add glow to modals
Now modals stand out better in dark mode
* Intensify modal glow on drag
---------
Co-authored-by: jLynx <admin@jlynx.net>1 parent a1aebea commit f5bf88b
File tree
9 files changed
+338
-274
lines changed- src
- app
- components
- Console
- Controller
- DeviceButtons
- DeviceControls
- Modal
- SerialLoader
- UIConfigurationModal
9 files changed
+338
-274
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
20 | 68 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | | - | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | | - | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | | - | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| 92 | + | |
| 93 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
95 | | - | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
122 | | - | |
| 127 | + | |
123 | 128 | | |
124 | 129 | | |
125 | 130 | | |
| |||
151 | 156 | | |
152 | 157 | | |
153 | 158 | | |
154 | | - | |
| 159 | + | |
| 160 | + | |
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
159 | | - | |
160 | 165 | | |
161 | 166 | | |
162 | 167 | | |
| |||
203 | 208 | | |
204 | 209 | | |
205 | 210 | | |
206 | | - | |
| 211 | + | |
207 | 212 | | |
208 | 213 | | |
209 | | - | |
| 214 | + | |
| 215 | + | |
210 | 216 | | |
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
214 | 220 | | |
215 | | - | |
| 221 | + | |
216 | 222 | | |
217 | 223 | | |
218 | 224 | | |
| |||
222 | 228 | | |
223 | 229 | | |
224 | 230 | | |
225 | | - | |
226 | | - | |
| 231 | + | |
| 232 | + | |
227 | 233 | | |
228 | 234 | | |
229 | 235 | | |
| |||
284 | 290 | | |
285 | 291 | | |
286 | 292 | | |
287 | | - | |
| 293 | + | |
288 | 294 | | |
289 | 295 | | |
290 | 296 | | |
| |||
297 | 303 | | |
298 | 304 | | |
299 | 305 | | |
300 | | - | |
| 306 | + | |
301 | 307 | | |
302 | 308 | | |
303 | 309 | | |
| |||
316 | 322 | | |
317 | 323 | | |
318 | 324 | | |
319 | | - | |
320 | | - | |
| 325 | + | |
| 326 | + | |
321 | 327 | | |
322 | 328 | | |
323 | 329 | | |
| |||
334 | 340 | | |
335 | 341 | | |
336 | 342 | | |
337 | | - | |
| 343 | + | |
338 | 344 | | |
339 | 345 | | |
340 | 346 | | |
| |||
354 | 360 | | |
355 | 361 | | |
356 | 362 | | |
357 | | - | |
| 363 | + | |
358 | 364 | | |
359 | 365 | | |
360 | 366 | | |
361 | 367 | | |
362 | 368 | | |
363 | 369 | | |
364 | 370 | | |
365 | | - | |
| 371 | + | |
366 | 372 | | |
367 | 373 | | |
368 | 374 | | |
| |||
392 | 398 | | |
393 | 399 | | |
394 | 400 | | |
395 | | - | |
| 401 | + | |
396 | 402 | | |
397 | 403 | | |
398 | 404 | | |
| |||
404 | 410 | | |
405 | 411 | | |
406 | 412 | | |
407 | | - | |
| 413 | + | |
408 | 414 | | |
409 | 415 | | |
410 | 416 | | |
| |||
422 | 428 | | |
423 | 429 | | |
424 | 430 | | |
425 | | - | |
| 431 | + | |
426 | 432 | | |
427 | 433 | | |
428 | 434 | | |
| |||
0 commit comments