Repository: thomas-mauran/chess-tui (language: rust)

Issue:
feat(board): make border transparent
## Problem
the boards automatically creates border for the cells to be the same size, but the borders aren´t looking great everytime

## Solution

We could use cross term to get the color of the terminal and set in ui the border color to this background color




Discussion / hints:

Fix patch:
diff --git a/examples/demo.gif b/examples/demo.gif
index 2a7a069..d39d00e 100644
Binary files a/examples/demo.gif and b/examples/demo.gif differ
diff --git a/src/ui.rs b/src/ui.rs
index ef9a0b7..47f6201 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -1,7 +1,7 @@
 use ratatui::{
     layout::{Constraint, Direction, Layout},
     prelude::{Alignment, Rect},
-    style::{Color, Style, Stylize},
+    style::{Style, Stylize},
     text::{Line},
     widgets::{Block, BorderType, Borders, Clear, Padding, Paragraph, Wrap},
     Frame,
@@ -40,7 +40,7 @@ pub fn render(app: &mut App, frame: &mut Frame) {
         .split(main_layout_horizontal[1]);
 
     // Board block representing the full board div
-    let board_block = Block::default().style(Style::default().bg(Color::Black));
+    let board_block = Block::default().style(Style::default());
 
     // We render the board_block in the center layout made above
     frame.render_widget(board_block.clone(), main_layout_vertical[1]);


Test patch: