generated from GarandPLG/rust-flake-template
Increase board cell dimensions
Double the height from 4 to 8 and the width from 7 to 14 to improve readability of the board display.
This commit is contained in:
@@ -17,8 +17,8 @@ pub struct BoardWidget {
|
|||||||
|
|
||||||
impl BoardWidget {
|
impl BoardWidget {
|
||||||
pub fn new(app: &mut App, area_width: u16, area_height: u16) -> Self {
|
pub fn new(app: &mut App, area_width: u16, area_height: u16) -> Self {
|
||||||
const CELL_HIGHT: u16 = 4;
|
const CELL_HIGHT: u16 = 8; // 4
|
||||||
const CELL_WIDTH: u16 = 7;
|
const CELL_WIDTH: u16 = 14; // 7
|
||||||
|
|
||||||
let rows: u16 = area_height / CELL_HIGHT;
|
let rows: u16 = area_height / CELL_HIGHT;
|
||||||
let cols: u16 = area_width / CELL_WIDTH;
|
let cols: u16 = area_width / CELL_WIDTH;
|
||||||
|
|||||||
Reference in New Issue
Block a user