kworkflow / patch-hub

patch-hub is a TUI that streamlines the interaction of Linux developers with patches archived on lore.kernel.org
GNU General Public License v2.0
8 stars 6 forks source link

Add colorization for headers in patch preview #71

Open davidbtadokoro opened 4 weeks ago

davidbtadokoro commented 4 weeks ago

Description:

Recently, we've added styling to patch previewing with the external renderers bat, delta, and diff-so-fancy. However, the message's headers (Subject, From, etc.), which are constant in all patches, are still flat white (see screenshot below). As these headers are well structured, we could add a rendering for colorization.

2024-10-26-183535_1894x1027_scrot

Motivation:

This shouldn't be hard, and the colorization is sure enough welcome.

OJarrisonn commented 6 days ago

I've just opened a PR for this