From 1c4675569a535094f489dad824051f610da59caa Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Wed, 7 Jul 2021 23:16:26 -0400 Subject: [PATCH] FIX manually specify alignment --- core | 2 +- drawing/Common.lua | 5 +++++ drawing/FileSystem.lua | 1 + drawing/Memory.lua | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core b/core index e263ef8..9820437 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit e263ef81ea6310356119f43b8c3b03577f36a2d2 +Subproject commit 9820437473316ebcf3f9f93a8373548c6c9dd93a diff --git a/drawing/Common.lua b/drawing/Common.lua index 0fb4425..490e0ea 100644 --- a/drawing/Common.lua +++ b/drawing/Common.lua @@ -95,6 +95,7 @@ M.initPercentPlot = function(x, y, w, h, spacing, label) x = x, y = y, text = label, + x_align = 'left', text_color = _G_Patterns_.INACTIVE_TEXT_FG, font_spec = M.normal_font_spec, }, @@ -155,6 +156,7 @@ M.initLabeledScalePlot = function(x, y, w, h, f, spacing, label) x = x, y = y, text = label, + x_align = 'left', text_color = _G_Patterns_.INACTIVE_TEXT_FG, font_spec = M.normal_font_spec, }, @@ -249,6 +251,7 @@ M.initTextRow = function(x, y, w, label) label = _G_Widget_.Text{ x = x, y = y, + x_align = 'left', text_color = _G_Patterns_.INACTIVE_TEXT_FG, text = label, font_spec = M.normal_font_spec, @@ -286,6 +289,7 @@ M.initTextRowCrit = function(x, y, w, label, append_end, limit) x = x, y = y, text = label, + x_align = 'left', text_color = _G_Patterns_.INACTIVE_TEXT_FG, font_spec = M.normal_font_spec, }, @@ -322,6 +326,7 @@ M.initTextRows = function(x, y, w, spacing, labels) x = x, y = y, spacing = spacing, + x_align = 'left', text_color = _G_Patterns_.INACTIVE_TEXT_FG, font_spec = M.normal_font_spec, table.unpack(labels), diff --git a/drawing/FileSystem.lua b/drawing/FileSystem.lua index bc64f8a..9080ff9 100644 --- a/drawing/FileSystem.lua +++ b/drawing/FileSystem.lua @@ -64,6 +64,7 @@ local labels = _G_Widget_.TextColumn{ spacing = _SPACING_, text_color = _G_Patterns_.INACTIVE_TEXT_FG, font_spec = Common.normal_font_spec, + x_align = 'left', 'root', 'boot', 'home', diff --git a/drawing/Memory.lua b/drawing/Memory.lua index d38cf00..20aef23 100644 --- a/drawing/Memory.lua +++ b/drawing/Memory.lua @@ -101,6 +101,7 @@ local cache = { spacing = _TEXT_SPACING_, text_color = _G_Patterns_.INACTIVE_TEXT_FG, font_spec = Common.normal_font_spec, + x_align = 'left', 'Page Cache', 'Buffers', 'Kernel Slab'