-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12c1ed8
commit 78e3420
Showing
3 changed files
with
190 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ pub mod motions; | |
pub mod screen; | ||
pub mod tab; | ||
pub mod terminal; | ||
pub mod theme; | ||
|
||
use std::io::Result; | ||
|
||
|
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,60 @@ | ||
pub type Color = (u8, u8, u8); | ||
|
||
pub struct Theme { | ||
pub tab_line_bg: Color, | ||
pub tab_fg: Color, | ||
pub tab_bg: Color, | ||
pub tab_selected_fg: Color, | ||
pub tab_selected_bg: Color, | ||
|
||
pub info_column_fg: Color, | ||
pub info_column_bg: Color, | ||
|
||
pub bg: Color, | ||
pub text_fg: Color, | ||
pub text_bg: Color, | ||
pub text_selected_fg: Color, | ||
pub text_selected_bg: Color, | ||
|
||
pub status_line_bg: Color, | ||
pub status_normal_mode_fg: Color, | ||
pub status_normal_mode_bg: Color, | ||
pub status_insert_mode_fg: Color, | ||
pub status_insert_mode_bg: Color, | ||
pub status_visual_mode_fg: Color, | ||
pub status_visual_mode_bg: Color, | ||
} | ||
|
||
pub const BLACK: Color = (0, 0, 0); | ||
pub const SILVER: Color = (192, 192, 192); | ||
pub const GRAY: Color = (128, 128, 128); | ||
pub const LIGHT_GRAY: Color = (175, 175, 175); | ||
pub const WHITE: Color = (255, 255, 255); | ||
pub const PURPLE: Color = (128, 0, 128); | ||
pub const BLUE: Color = (100, 149, 237); | ||
pub const GREEN: Color = (0, 100, 0); | ||
|
||
pub const THEME_ONE: Theme = Theme { | ||
tab_line_bg: GRAY, | ||
tab_fg: WHITE, | ||
tab_bg: SILVER, | ||
tab_selected_fg: BLACK, | ||
tab_selected_bg: SILVER, | ||
|
||
info_column_fg: BLACK, | ||
info_column_bg: LIGHT_GRAY, | ||
|
||
bg: SILVER, | ||
text_fg: BLACK, | ||
text_bg: SILVER, | ||
text_selected_fg: WHITE, | ||
text_selected_bg: GRAY, | ||
|
||
status_line_bg: GRAY, | ||
status_normal_mode_fg: WHITE, | ||
status_normal_mode_bg: GREEN, | ||
status_insert_mode_fg: BLACK, | ||
status_insert_mode_bg: BLUE, | ||
status_visual_mode_fg: WHITE, | ||
status_visual_mode_bg: PURPLE, | ||
}; |