Commit a91c3673 authored by echicken's avatar echicken 🐔
Browse files

Added titleBackground config setting. (For CG Learn)

Removed attribution rather than fix its coloring. Nobody cares,
and if you do care, have you tried not caring? It's easy, it's
just a matter of doing nothing.

Bullshit is a proud sponsor of funclib.js.
parent a77e846b
......@@ -22,6 +22,8 @@ function loadSettings(path) {
}
});
if (settings.colors.titleBackground === undefined) settings.colors.titleBackground = BG_BLACK;
return settings;
}
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment