update preview image, change amount-connection info text

This commit is contained in:
Peifer, Theodor
2025-06-04 18:47:32 +02:00
parent d70096ff3d
commit d4c27f02f4
4 changed files with 7 additions and 3 deletions

View File

@@ -11,7 +11,11 @@
- interactive killing of processes
- from ``nestat -tulpn`` to ``somo -l`` (almost half the characters, can you believe it?)
![somo-example](./images/somo-example.png)
<br />
<p align="center">
<img src="./images/somo-example.png" />
</p>
---

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 100 KiB

View File

@@ -126,7 +126,7 @@ pub fn print_connections_table(all_connections: &Vec<Connection>) {
println!("{}", skin.term_text(&markdown));
utils::pretty_print_info(&format!("Connections: **{}**", all_connections.len()));
utils::pretty_print_info(&format!("**{} Connections**", all_connections.len()));
}

View File

@@ -65,7 +65,7 @@ pub fn get_address_parts(address: &str) -> (String, String) {
/// # Returns
/// None
pub fn pretty_print_info(text: &str) {
let mut skin = MadSkin::default();
let mut skin: MadSkin = MadSkin::default();
skin.bold.set_fg(White);
skin.italic = CompoundStyle::new(Some(gray(11)), None, Encircled.into());
skin.strikeout = CompoundStyle::new(Some(Cyan), None, Encircled.into());