Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Fallout (videogame) PipBoy HUD classic colors #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@ use ratatui::style::Color;
use serde::{Deserialize, Serialize};
use serde_inline_default::serde_inline_default;

const COLORS_OPTIONS: [Color; 7] =
[Color::Green, Color::Yellow, Color::Red, Color::Blue, Color::Magenta, Color::Cyan, Color::Reset];
const PIPBOY_GREEN: Color = Color::Rgb(26, 255, 128);
const PIPBOY_AMBER: Color = Color::Rgb(255, 182, 66);
const PIPBOY_BLUE: Color = Color::Rgb(46, 207, 255);
const PIPBOY_WHITE : Color = Color::Rgb(192, 255, 255);

const COLORS_OPTIONS: [Color; 11] =
[Color::Green, Color::Yellow, Color::Red,
Color::Blue, Color::Magenta, Color::Cyan,
PIPBOY_GREEN, PIPBOY_AMBER, PIPBOY_BLUE, PIPBOY_WHITE,
Color::Reset];

#[derive(Debug, Serialize, Deserialize, PartialEq)]
pub enum ViewType {
Expand Down