From e3862aa67e37ecef0eb8f82ba1f4a710ffac9c02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 16 Dec 2020 21:46:11 +0100 Subject: Rework drawing of FunctionBar Draw the FunctionBar within Panel_draw instead of manually throughout the code. Add an optional PanelClass function drawFunctionBar, to allow specific panels to override the default FunctionBar_draw call. Rework the code on color change, to really change all colors (selection markers and panel headers). Closes: #402 --- TraceScreen.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'TraceScreen.c') diff --git a/TraceScreen.c b/TraceScreen.c index e6bd1fb1..e04f4f8a 100644 --- a/TraceScreen.c +++ b/TraceScreen.c @@ -71,11 +71,7 @@ void TraceScreen_delete(Object* cast) { } void TraceScreen_draw(InfoScreen* this) { - attrset(CRT_colors[PANEL_HEADER_FOCUS]); - mvhline(0, 0, ' ', COLS); - mvprintw(0, 0, "Trace of process %d - %s", this->process->pid, Process_getCommand(this->process)); - attrset(CRT_colors[DEFAULT_COLOR]); - IncSet_drawBar(this->inc); + InfoScreen_drawTitled(this, "Trace of process %d - %s", this->process->pid, Process_getCommand(this->process)); } bool TraceScreen_forkTracer(TraceScreen* this) { -- cgit v1.2.3