FIX manually specify alignment

This commit is contained in:
Nathan Dwarshuis 2021-07-07 23:16:26 -04:00
parent 9c62f8de80
commit 1c4675569a
4 changed files with 8 additions and 1 deletions

2
core

@ -1 +1 @@
Subproject commit e263ef81ea6310356119f43b8c3b03577f36a2d2 Subproject commit 9820437473316ebcf3f9f93a8373548c6c9dd93a

View File

@ -95,6 +95,7 @@ M.initPercentPlot = function(x, y, w, h, spacing, label)
x = x, x = x,
y = y, y = y,
text = label, text = label,
x_align = 'left',
text_color = _G_Patterns_.INACTIVE_TEXT_FG, text_color = _G_Patterns_.INACTIVE_TEXT_FG,
font_spec = M.normal_font_spec, font_spec = M.normal_font_spec,
}, },
@ -155,6 +156,7 @@ M.initLabeledScalePlot = function(x, y, w, h, f, spacing, label)
x = x, x = x,
y = y, y = y,
text = label, text = label,
x_align = 'left',
text_color = _G_Patterns_.INACTIVE_TEXT_FG, text_color = _G_Patterns_.INACTIVE_TEXT_FG,
font_spec = M.normal_font_spec, font_spec = M.normal_font_spec,
}, },
@ -249,6 +251,7 @@ M.initTextRow = function(x, y, w, label)
label = _G_Widget_.Text{ label = _G_Widget_.Text{
x = x, x = x,
y = y, y = y,
x_align = 'left',
text_color = _G_Patterns_.INACTIVE_TEXT_FG, text_color = _G_Patterns_.INACTIVE_TEXT_FG,
text = label, text = label,
font_spec = M.normal_font_spec, font_spec = M.normal_font_spec,
@ -286,6 +289,7 @@ M.initTextRowCrit = function(x, y, w, label, append_end, limit)
x = x, x = x,
y = y, y = y,
text = label, text = label,
x_align = 'left',
text_color = _G_Patterns_.INACTIVE_TEXT_FG, text_color = _G_Patterns_.INACTIVE_TEXT_FG,
font_spec = M.normal_font_spec, font_spec = M.normal_font_spec,
}, },
@ -322,6 +326,7 @@ M.initTextRows = function(x, y, w, spacing, labels)
x = x, x = x,
y = y, y = y,
spacing = spacing, spacing = spacing,
x_align = 'left',
text_color = _G_Patterns_.INACTIVE_TEXT_FG, text_color = _G_Patterns_.INACTIVE_TEXT_FG,
font_spec = M.normal_font_spec, font_spec = M.normal_font_spec,
table.unpack(labels), table.unpack(labels),

View File

@ -64,6 +64,7 @@ local labels = _G_Widget_.TextColumn{
spacing = _SPACING_, spacing = _SPACING_,
text_color = _G_Patterns_.INACTIVE_TEXT_FG, text_color = _G_Patterns_.INACTIVE_TEXT_FG,
font_spec = Common.normal_font_spec, font_spec = Common.normal_font_spec,
x_align = 'left',
'root', 'root',
'boot', 'boot',
'home', 'home',

View File

@ -101,6 +101,7 @@ local cache = {
spacing = _TEXT_SPACING_, spacing = _TEXT_SPACING_,
text_color = _G_Patterns_.INACTIVE_TEXT_FG, text_color = _G_Patterns_.INACTIVE_TEXT_FG,
font_spec = Common.normal_font_spec, font_spec = Common.normal_font_spec,
x_align = 'left',
'Page Cache', 'Page Cache',
'Buffers', 'Buffers',
'Kernel Slab' 'Kernel Slab'