From 126dd76469c9f590c1ce937e4ea36ad96b43f412 Mon Sep 17 00:00:00 2001 From: aidanaden Date: Sun, 23 Jun 2024 09:46:28 +0800 Subject: [PATCH] feat: add color to directory header in file popup --- rm-main/src/ui/tabs/torrents/popups/files.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rm-main/src/ui/tabs/torrents/popups/files.rs b/rm-main/src/ui/tabs/torrents/popups/files.rs index 5a9a2ef..0bfce3d 100644 --- a/rm-main/src/ui/tabs/torrents/popups/files.rs +++ b/rm-main/src/ui/tabs/torrents/popups/files.rs @@ -241,7 +241,10 @@ impl Component for FilesPopup { } }; let block = block - .title(Title::from(format!(" {} ", download_dir)).alignment(Alignment::Right)) + .title( + Title::from(format!(" {} ", download_dir).set_style(highlight_style)) + .alignment(Alignment::Right), + ) .title( Title::from(" [ CLOSE ] ".set_style(close_button_style)) .alignment(Alignment::Right)