mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
make help headers more obvious (closes #131)
This commit is contained in:
parent
afa6aad973
commit
b8397ae285
2 changed files with 9 additions and 9 deletions
|
|
@ -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),
|
||||
));
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue