make help headers more obvious (closes #131)

This commit is contained in:
Stephan Dilly 2020-06-22 16:42:16 +02:00
parent afa6aad973
commit b8397ae285
2 changed files with 9 additions and 9 deletions

View file

@ -195,7 +195,7 @@ impl HelpComponent {
}
}
fn get_text<'a>(&self) -> Vec<Text<'a>> {
fn get_text(&self) -> Vec<Text> {
let mut txt = Vec::new();
let mut processed = 0_u16;
@ -204,7 +204,7 @@ impl HelpComponent {
&self.cmds.iter().group_by(|e| e.text.group)
{
txt.push(Text::Styled(
Cow::from(format!(" {}\n", key)),
Cow::from(format!("{}\n", key)),
Style::default().modifier(Modifier::REVERSED),
));

View file

@ -50,13 +50,13 @@ pub mod order {
pub mod commands {
use crate::components::CommandText;
static CMD_GROUP_GENERAL: &str = "General";
static CMD_GROUP_DIFF: &str = "Diff";
static CMD_GROUP_CHANGES: &str = "Changes";
static CMD_GROUP_COMMIT: &str = "Commit";
static CMD_GROUP_STASHING: &str = "Stashing";
static CMD_GROUP_STASHES: &str = "Stashes";
static CMD_GROUP_LOG: &str = "Log";
static CMD_GROUP_GENERAL: &str = "-- General --";
static CMD_GROUP_DIFF: &str = "-- Diff --";
static CMD_GROUP_CHANGES: &str = "-- Changes --";
static CMD_GROUP_COMMIT: &str = "-- Commit --";
static CMD_GROUP_STASHING: &str = "-- Stashing --";
static CMD_GROUP_STASHES: &str = "-- Stashes --";
static CMD_GROUP_LOG: &str = "-- Log --";
///
pub static TOGGLE_TABS: CommandText = CommandText::new(