-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from lusingander/color
Change color definitions to use theme variables
- Loading branch information
Showing
22 changed files
with
654 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
use ratatui::style::Color; | ||
|
||
#[derive(Debug, Clone)] | ||
pub struct ColorTheme { | ||
pub bg: Color, | ||
pub fg: Color, | ||
|
||
pub divider: Color, | ||
pub link: Color, | ||
|
||
pub list_selected_bg: Color, | ||
pub list_selected_fg: Color, | ||
pub list_selected_inactive_bg: Color, | ||
pub list_selected_inactive_fg: Color, | ||
pub list_filter_match: Color, | ||
|
||
pub detail_selected: Color, | ||
|
||
pub dialog_selected: Color, | ||
|
||
pub preview_line_number: Color, | ||
|
||
pub status_help: Color, | ||
pub status_info: Color, | ||
pub status_success: Color, | ||
pub status_warn: Color, | ||
pub status_error: Color, | ||
} | ||
|
||
impl Default for ColorTheme { | ||
fn default() -> Self { | ||
Self { | ||
bg: Color::Reset, | ||
fg: Color::Reset, | ||
|
||
divider: Color::DarkGray, | ||
link: Color::Blue, | ||
|
||
list_selected_bg: Color::Cyan, | ||
list_selected_fg: Color::Black, | ||
list_selected_inactive_bg: Color::DarkGray, | ||
list_selected_inactive_fg: Color::Black, | ||
list_filter_match: Color::Red, | ||
|
||
detail_selected: Color::Cyan, | ||
|
||
dialog_selected: Color::Cyan, | ||
|
||
preview_line_number: Color::DarkGray, | ||
|
||
status_help: Color::DarkGray, | ||
status_info: Color::Blue, | ||
status_success: Color::Green, | ||
status_warn: Color::Yellow, | ||
status_error: Color::Red, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.