From edb66f214d903e2bb986f242d431e4b278463703 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sat, 22 Feb 2020 12:20:01 -0800 Subject: [PATCH] SystemMonitor: Fix display of file system size column. The Size column in the "File systems" tab of SystemMonitor had a rendering artifact where the bounding box outline would be drawn in the same location as the text. This makes the text look strange and hard to read. Pad the size with a signle space character on either side to give the text a gap on each side. --- Applications/SystemMonitor/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Applications/SystemMonitor/main.cpp b/Applications/SystemMonitor/main.cpp index 84b1da70f8..7101cb4418 100644 --- a/Applications/SystemMonitor/main.cpp +++ b/Applications/SystemMonitor/main.cpp @@ -294,7 +294,11 @@ RefPtr build_file_systems_tab() df_fields.empend( "Size", Gfx::TextAlignment::CenterRight, [](const JsonObject& object) { - return human_readable_size(object.get("total_block_count").to_u32() * object.get("block_size").to_u32()); + StringBuilder size_builder; + size_builder.append(" "); + size_builder.append(human_readable_size(object.get("total_block_count").to_u32() * object.get("block_size").to_u32())); + size_builder.append(" "); + return size_builder.to_string(); }, [](const JsonObject& object) { return object.get("total_block_count").to_u32() * object.get("block_size").to_u32();