diff --git a/xtrn/DDMsgReader/DDMsgReader.js b/xtrn/DDMsgReader/DDMsgReader.js index fa23478e892683b55d90adece052f9bb24e685a1..ce1456d8be69d722c7cbffce892af32f8a7adb1f 100644 --- a/xtrn/DDMsgReader/DDMsgReader.js +++ b/xtrn/DDMsgReader/DDMsgReader.js @@ -101,6 +101,10 @@ * New configurable colors in the theme file for the indexed mode newscan menu: * indexMenuSeparatorLine (sub-board separator line) and indexMenuSeparatorText * (sub-board separator text) + * 2023-12-15 Eric Oulashin Version 1.90b + * New configurable colors in the theme file for the indexed newscan menu + * header text (indexMenuHeader), "NEW" indicator text (indexMenuNewIndicator), + * and highlighted "NEW" indicator text (indexMenuNewIndicatorHighlight) */ "use strict"; @@ -205,8 +209,8 @@ var ansiterm = require("ansiterm_lib.js", 'expand_ctrl_a'); // Reader version information -var READER_VERSION = "1.90a"; -var READER_DATE = "2023-12-12"; +var READER_VERSION = "1.90b"; +var READER_DATE = "2023-12-15"; // Keyboard key codes for displaying on the screen var UP_ARROW = ascii(24); @@ -15231,8 +15235,9 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi var currentTotalColWidth = descWidthForHdr + numMsgsWidth + numNewMsgsWidth + lastPostDateWidth; if (currentTotalColWidth < maxScreenWidth) descWidthForHdr += (maxScreenWidth - currentTotalColWidth - 1); - var formatStrStrs = "%-" + descWidthForHdr + "s %" + numMsgsWidth + "s %" + numNewMsgsWidth + "s %" + lastPostDateWidth + "s"; - printf(formatStrStrs, "Description", "Total", "New", "Last Post"); + var indexMenuHdrFormatStr = "\x01n" + this.colors.indexMenuHeader; + indexMenuHdrFormatStr += "%-" + descWidthForHdr + "s %" + numMsgsWidth + "s %" + numNewMsgsWidth + "s %" + lastPostDateWidth + "s"; + printf(indexMenuHdrFormatStr, "Description", "Total", "New", "Last Post"); console.attributes = "N"; if (!usingANSI) console.crlf(); @@ -15623,7 +15628,9 @@ function DigDistMsgReader_CreateLightbarIndexedModeMenu(pNumMsgsWidth, pNumNewMs { // Start & end indexes for the selectable items var indexMenuIdxes = { - descStart: 0, + newStatusStart: 0, + newStatusEnd: 4, + descStart: 4, descEnd: pDescWidth+1, totalStart: pDescWidth+1, totalEnd: pDescWidth+pNumMsgsWidth+2, @@ -15643,16 +15650,19 @@ function DigDistMsgReader_CreateLightbarIndexedModeMenu(pNumMsgsWidth, pNumNewMs indexedModeMenu.scrollbarEnabled = true; indexedModeMenu.borderEnabled = false; // Colors: + var newStatusHigh = "\x01n" + this.colors.indexMenuHighlightBkg + this.colors.indexMenuNewIndicatorHighlight; var descHigh = "\x01n" + this.colors.indexMenuHighlightBkg + this.colors.indexMenuDescHighlight; var totalMsgsHi = "\x01n" + this.colors.indexMenuHighlightBkg + this.colors.indexMenuTotalMsgsHighlight; var numNewMsgsHi = "\x01n" + this.colors.indexMenuHighlightBkg + this.colors.indexMenuNumNewMsgsHighlight; var lastPostDateHi = "\x01n" + this.colors.indexMenuHighlightBkg + this.colors.indexMenuLastPostDateHighlight; indexedModeMenu.SetColors({ - itemColor: [{start: indexMenuIdxes.descStart, end: indexMenuIdxes.descEnd, attrs: "\x01n" + this.colors.indexMenuDesc}, + itemColor: [{start: indexMenuIdxes.newStatusStart, end: indexMenuIdxes.newStatusEnd, attrs: "\x01n" + this.colors.indexMenuNewIndicator}, + {start: indexMenuIdxes.descStart, end: indexMenuIdxes.descEnd, attrs: "\x01n" + this.colors.indexMenuDesc}, {start: indexMenuIdxes.totalStart, end: indexMenuIdxes.totalEnd, attrs: "\x01n" + this.colors.indexMenuTotalMsgs}, {start: indexMenuIdxes.newMsgsStart, end: indexMenuIdxes.newMsgsEnd, attrs: "\x01n" + this.colors.indexMenuNumNewMsgs}, {start: indexMenuIdxes.lastPostDateStart, end: indexMenuIdxes.lastPostDateEnd, attrs: "\x01n" + this.colors.indexMenuLastPostDate}], - selectedItemColor: [{start: indexMenuIdxes.descStart, end: indexMenuIdxes.descEnd, attrs: descHigh}, + selectedItemColor: [{start: indexMenuIdxes.newStatusStart, end: indexMenuIdxes.newStatusEnd, attrs: newStatusHigh}, + {start: indexMenuIdxes.descStart, end: indexMenuIdxes.descEnd, attrs: descHigh}, {start: indexMenuIdxes.totalStart, end: indexMenuIdxes.totalEnd, attrs: totalMsgsHi}, {start: indexMenuIdxes.newMsgsStart, end: indexMenuIdxes.newMsgsEnd, attrs: numNewMsgsHi}, {start: indexMenuIdxes.lastPostDateStart, end: indexMenuIdxes.lastPostDateEnd, attrs: lastPostDateHi}], @@ -17505,12 +17515,15 @@ function getDefaultColors() unreadMsgMarkColor: "\x01n\x01w\x01h\x01i", // Colors for the indexed mode sub-board menu: + indexMenuHeader: "\x01n\x01w", + indexMenuNewIndicator: "\x01n\x01w", indexMenuDesc: "\x01n\x01w", indexMenuTotalMsgs: "\x01n\x01w", indexMenuNumNewMsgs: "\x01n\x01w", indexMenuLastPostDate: "\x01b\x01h", // Highlighted/selected: indexMenuHighlightBkg: "\x014", + indexMenuNewIndicatorHighlight: "\x01w\x01h", indexMenuDescHighlight: "\x01w\x01h", indexMenuTotalMsgsHighlight: "\x01w\x01h", indexMenuNumNewMsgsHighlight: "\x01w\x01h", diff --git a/xtrn/DDMsgReader/readme.txt b/xtrn/DDMsgReader/readme.txt index f6652b5aecfcefd8b7e84bd3105fe9ba9444c30f..4f97b0e5db6e4b6918937e0c28a894adc038c003 100644 --- a/xtrn/DDMsgReader/readme.txt +++ b/xtrn/DDMsgReader/readme.txt @@ -1,6 +1,6 @@ Digital Distortion Message Reader - Version 1.90a - Release date: 2023-12-12 + Version 1.90b + Release date: 2023-12-15 by @@ -898,6 +898,12 @@ msgListTimeHighlightColor Message list highlighted time color (for lightbar mode) Colors for the indexed mode sub-board menu: +indexMenuHeader Header text above the indexed mode menu + +indexMenuNewIndicator "NEW" indicator text at the start of the + indexed mode menu sub-boards that have new + messages + indexMenuDesc Indexed mode menu item description indexMenuTotalMsgs Indexed mode menu total number of messages @@ -909,6 +915,10 @@ indexMenuLastPostDate Indexed mode menu last post date indexMenuHighlightBkg Indexed mode menu highlighted item background +indexMenuNewIndicatorHighlight Indexed mode highlighted "NEW" indicator + text at the start of the sub-boards that + have new messages + indexMenuDescHighlight Indexed mode menu highlighted description indexMenuTotalMsgsHighlight Indexed mode menu highlighted total number diff --git a/xtrn/DDMsgReader/revision_history.txt b/xtrn/DDMsgReader/revision_history.txt index a34f3f2e27b2e13aad3fedaafdeb2d9d314afd46..dd401ea37dcc26ec3474f049559c0a66374c196c 100644 --- a/xtrn/DDMsgReader/revision_history.txt +++ b/xtrn/DDMsgReader/revision_history.txt @@ -5,6 +5,10 @@ Revision History (change log) ============================= Version Date Description ------- ---- ----------- +1.90b 2023-12-15 New configurable colors in the theme file for the indexed + newscan menu header text (indexMenuHeader), "NEW" + indicator text (indexMenuNewIndicator), and highlighted + "NEW" indicator text (indexMenuNewIndicatorHighlight) 1.90a 2023-12-12 New configurable colors in the theme file for the indexed mode newscan menu: indexMenuSeparatorLine (sub-board separator line) and indexMenuSeparatorText (sub-board