/// Create a new theme from a Git Config reference.
Create a new theme from a Git Config reference.
Create a new theme from a Git Config reference .
pub(super) fn new_with_config(git_config: Option<&Config>) -> Result<Self> {
		Ok(Self {
			character_vertical_spacing: get_string(
				git_config,
				"interactive-rebase-tool.verticalSpacingCharacter",
				"~",
			)?,
			color_action_break: get_color(git_config, "interactive-rebase-tool.breakColor", Color::LightWhite)?,
			color_action_drop: get_color(git_config, "interactive-rebase-tool.dropColor", Color::LightRed)?,
			color_action_edit: get_color(git_config, "interactive-rebase-tool.editColor", Color::LightBlue)?,
			color_action_exec: get_color(git_config, "interactive-rebase-tool.execColor", Color::LightWhite)?,
			color_action_fixup: get_color(git_config, "interactive-rebase-tool.fixupColor", Color::LightMagenta)?,
			color_action_pick: get_color(git_config, "interactive-rebase-tool.pickColor", Color::LightGreen)?,
			color_action_reword: get_color(git_config, "interactive-rebase-tool.rewordColor", Color::LightYellow)?,
			color_action_squash: get_color(git_config, "interactive-rebase-tool.squashColor", Color::LightCyan)?,
			color_action_label: get_color(git_config, "interactive-rebase-tool.labelColor", Color::DarkYellow)?,
			color_action_reset: get_color(git_config, "interactive-rebase-tool.resetColor", Color::DarkYellow)?,
			color_action_merge: get_color(git_config, "interactive-rebase-tool.mergeColor", Color::DarkYellow)?,
			color_background: get_color(git_config, "interactive-rebase-tool.backgroundColor", Color::Default)?,
			color_diff_add: get_color(git_config, "interactive-rebase-tool.diffAddColor", Color::LightGreen)?,
			color_diff_change: get_color(
				git_config,
				"interactive-rebase-tool.diffChangeColor",
				Color::LightYellow,
			)?,
			color_diff_context: get_color(
				git_config,
				"interactive-rebase-tool.diffContextColor",
				Color::LightWhite,
			)?,
			color_diff_remove: get_color(git_config, "interactive-rebase-tool.diffRemoveColor", Color::LightRed)?,
			color_diff_whitespace: get_color(git_config, "interactive-rebase-tool.diffWhitespace", Color::LightBlack)?,
			color_foreground: get_color(git_config, "interactive-rebase-tool.foregroundColor", Color::Default)?,
			color_indicator: get_color(git_config, "interactive-rebase-tool.indicatorColor", Color::LightCyan)?,
			color_selected_background: get_color(
				git_config,
				"interactive-rebase-tool.selectedBackgroundColor",
				Color::Index(237),
			)?,
		})
	}
pub ( super ) fn new_with_config ( git_config : Option < & Config > ) -> Result < Self > { Ok ( Self { character_vertical_spacing : get_string ( git_config , " " , " " , ) ? , color_action_break : get_color ( git_config , " " , Color :: LightWhite ) ? , color_action_drop : get_color ( git_config , " " , Color :: LightRed ) ? , color_action_edit : get_color ( git_config , " " , Color :: LightBlue ) ? , color_action_exec : get_color ( git_config , " " , Color :: LightWhite ) ? , color_action_fixup : get_color ( git_config , " " , Color :: LightMagenta ) ? , color_action_pick : get_color ( git_config , " " , Color :: LightGreen ) ? , color_action_reword : get_color ( git_config , " " , Color :: LightYellow ) ? , color_action_squash : get_color ( git_config , " " , Color :: LightCyan ) ? , color_action_label : get_color ( git_config , " " , Color :: DarkYellow ) ? , color_action_reset : get_color ( git_config , " " , Color :: DarkYellow ) ? , color_action_merge : get_color ( git_config , " " , Color :: DarkYellow ) ? , color_background : get_color ( git_config , " " , Color :: Default ) ? , color_diff_add : get_color ( git_config , " " , Color :: LightGreen ) ? , color_diff_change : get_color ( git_config , " " , Color :: LightYellow , ) ? , color_diff_context : get_color ( git_config , " " , Color :: LightWhite , ) ? , color_diff_remove : get_color ( git_config , " " , Color :: LightRed ) ? , color_diff_whitespace : get_color ( git_config , " " , Color :: LightBlack ) ? , color_foreground : get_color ( git_config , " " , Color :: Default ) ? , color_indicator : get_color ( git_config , " " , Color :: LightCyan ) ? , color_selected_background : get_color ( git_config , " " , Color :: Index ( 237 ) , ) ? , } ) }
Create a new theme from a Git Config reference.
Create a new theme from a Git Config reference .
git_config
Option<&Config>