From 0b2b91b3e1b79dbb6627d5bbdc5c6829b6a3a260 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sun, 18 Jul 2021 20:14:00 -0400 Subject: [PATCH] REF use new line/bar api --- core | 2 +- drawing/Common.lua | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core b/core index 580ee5c..b9c3881 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 580ee5cabaf0288d0222d1efe439908f8975a7bb +Subproject commit b9c3881e2aaf27bc30c60580bf162ce25a929a4f diff --git a/drawing/Common.lua b/drawing/Common.lua index e298c8d..578b5fc 100644 --- a/drawing/Common.lua +++ b/drawing/Common.lua @@ -99,10 +99,10 @@ M.Header = function(x, y, w, s) ) ), bottom_y = bottom_y, - underline = Startup.Line( + underline = Line.build( Startup.make_point(x, underline_y), Startup.make_point(x + w, underline_y), - Startup.line_style( + Line.style( HEADER_UNDERLINE_THICKNESS, Theme.HEADER_FG, HEADER_UNDERLINE_CAP @@ -380,10 +380,10 @@ M.compound_bar = function(x, y, w, pad, labels, spacing, thickness, threshold) nil, spacing ), - bars = Startup.CompoundBar( + bars = CompoundBar.build( Startup.make_point(x + pad, y), w - pad, - Startup.line_style( + Line.style( thickness, Theme.INDICATOR_BG, CAIRO_LINE_JOIN_MITER @@ -413,10 +413,10 @@ end -- separator (eg a horizontal line) M.initSeparator = function(x, y, w) - return Startup.Line( + return Line.build( Startup.make_point(x, y), Startup.make_point(x + w, y), - Startup.line_style( + Line.style( SEPARATOR_THICKNESS, Theme.BORDER_FG, CAIRO_LINE_CAP_BUTT @@ -557,7 +557,7 @@ M.default_table_style = Startup.table_style( TABLE_LINE_THICKNESS, Theme.BORDER_FG ), - Startup.line_style( + Line.style( TABLE_LINE_THICKNESS, Theme.BORDER_FG, CAIRO_LINE_CAP_BUTT