feat: font size argument

This commit is contained in:
2024-05-22 01:04:33 +02:00
parent bda23ba16e
commit 715d0d7d5a
4 changed files with 9 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
use clap::Parser;
use crate::config::{
BACKGROUND_COLOR, BACKGROUND_COLOR_ACTIVE, FONT_COLOR, FONT_COLOR_ACTIVE,
BACKGROUND_COLOR, BACKGROUND_COLOR_ACTIVE, FONT_COLOR, FONT_COLOR_ACTIVE, FONT_POINT_SIZE,
MAX_ITEM_DISPLAY_COUNT,
};
@@ -25,4 +25,7 @@ pub struct Arguments {
#[arg(short, long, help = "The amount of items to display at once", default_value_t = MAX_ITEM_DISPLAY_COUNT)]
pub rows: u16,
#[arg(long, help = "The menu's font size", default_value_t = FONT_POINT_SIZE)]
pub font_size: u16,
}