diff --git a/xtrn/bullshit/bullshit-lib.js b/xtrn/bullshit/bullshit-lib.js index 1013790d3681031695df72acc9b671670869a161..913c7f9ed82a935e0062c0285c4fb3ff996f5b17 100644 --- a/xtrn/bullshit/bullshit-lib.js +++ b/xtrn/bullshit/bullshit-lib.js @@ -22,6 +22,8 @@ function loadSettings(path) { } }); + if (settings.colors.titleBackground === undefined) settings.colors.titleBackground = BG_BLACK; + return settings; } diff --git a/xtrn/bullshit/bullshit.js b/xtrn/bullshit/bullshit.js index 9fc597358c4e0a32b5fb4f013bb6b530ce4288ea..268bd318ac8ecad2710d582dd85b5f60eb0a8321 100644 --- a/xtrn/bullshit/bullshit.js +++ b/xtrn/bullshit/bullshit.js @@ -216,7 +216,7 @@ function initDisplay(settings, list) { const frame = new Frame(1, 1, console.screen_columns, console.screen_rows, WHITE); - const titleFrame = new Frame(frame.x, frame.y, frame.width, 3, WHITE, frame); + const titleFrame = new Frame(frame.x, frame.y, frame.width, 3, settings.colors.title|settings.colors.titleBackground, frame); const footerFrame = new Frame(frame.x, frame.y + frame.height - 3, frame.width, 3, WHITE, frame); const treeFrame = new Frame(frame.x, titleFrame.y + titleFrame.height, frame.width, frame.height - titleFrame.height - footerFrame.height, WHITE, frame); const treeSubFrame = new Frame(treeFrame.x + 1, treeFrame.y + 2, treeFrame.width - 2, treeFrame.height - 3, WHITE, treeFrame); @@ -226,9 +226,9 @@ function initDisplay(settings, list) { footerFrame.drawBorder(settings.colors.border); titleFrame.gotoxy(3, 2); - titleFrame.putmsg('Bulletins', settings.colors.title); - titleFrame.gotoxy(frame.width - 25, 2); - titleFrame.putmsg('bullshit v3 by echicken', settings.colors.heading); + titleFrame.putmsg('Bulletins'); + // titleFrame.gotoxy(frame.width - 25, 2); + // titleFrame.putmsg('bullshit v3 by echicken', settings.colors.heading); treeFrame.gotoxy(3, 2); treeFrame.putmsg('Title', settings.colors.heading);