Skip to content
Snippets Groups Projects
Commit e820f7df authored by Eric Oulashin's avatar Eric Oulashin Committed by Rob Swindell
Browse files

DDMsgReader: New configurable colors for the indexed mode sub-board menu:...

DDMsgReader: New configurable colors for the indexed mode sub-board menu: indexMenuSeparatorLine and indexMenuSeparatorText
parent 2125c43f
No related branches found
No related tags found
1 merge request!374DDMsgReader: New configurable colors for the indexed mode sub-board menu: indexMenuSeparatorLine and indexMenuSeparatorText
...@@ -97,6 +97,10 @@ ...@@ -97,6 +97,10 @@
* Removed the setting useScrollingInterfaceForANSIMessages. * Removed the setting useScrollingInterfaceForANSIMessages.
* 2023-12-04 Eric Oulashin Version 1.90 * 2023-12-04 Eric Oulashin Version 1.90
* Releasing this version * Releasing this version
* 2023-12-12 Eric Oulashin Version 1.90a
* New configurable colors in the theme file for the indexed mode newscan menu:
* indexMenuSeparatorLine (sub-board separator line) and indexMenuSeparatorText
* (sub-board separator text)
*/ */
   
"use strict"; "use strict";
...@@ -201,8 +205,8 @@ var ansiterm = require("ansiterm_lib.js", 'expand_ctrl_a'); ...@@ -201,8 +205,8 @@ var ansiterm = require("ansiterm_lib.js", 'expand_ctrl_a');
   
   
// Reader version information // Reader version information
var READER_VERSION = "1.90"; var READER_VERSION = "1.90a";
var READER_DATE = "2023-12-04"; var READER_DATE = "2023-12-12";
   
// Keyboard key codes for displaying on the screen // Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24); var UP_ARROW = ascii(24);
...@@ -15149,13 +15153,13 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi ...@@ -15149,13 +15153,13 @@ function DigDistMsgReader_IndexedModeChooseSubBoard(pClearScreen, pDrawMenu, pDi
var grpDesc = msg_area.grp_list[grpIdx].name; var grpDesc = msg_area.grp_list[grpIdx].name;
if (msg_area.grp_list[grpIdx].name != msg_area.grp_list[grpIdx].description) if (msg_area.grp_list[grpIdx].name != msg_area.grp_list[grpIdx].description)
grpDesc += " - " + msg_area.grp_list[grpIdx].description; grpDesc += " - " + msg_area.grp_list[grpIdx].description;
var menuItemText = "\x01n\x01b" + charStr(HORIZONTAL_SINGLE, 5); var menuItemText = "\x01n" + this.colors.indexMenuSeparatorLine + charStr(HORIZONTAL_SINGLE, 5);
menuItemText += "\x01y\x01h "; menuItemText += "\x01n" + this.colors.indexMenuSeparatorText + " ";
menuItemText += grpDesc; menuItemText += grpDesc;
var menuItemLen = console.strlen(menuItemText); var menuItemLen = console.strlen(menuItemText);
if (menuItemLen < this.indexedModeMenu.size.width) if (menuItemLen < this.indexedModeMenu.size.width)
{ {
menuItemText += " \x01n\x01b"; menuItemText += " \x01n" + this.colors.indexMenuSeparatorLine;
var numChars = this.indexedModeMenu.size.width - menuItemLen - 1; var numChars = this.indexedModeMenu.size.width - menuItemLen - 1;
menuItemText += charStr(HORIZONTAL_SINGLE, numChars); menuItemText += charStr(HORIZONTAL_SINGLE, numChars);
} }
...@@ -17511,6 +17515,8 @@ function getDefaultColors() ...@@ -17511,6 +17515,8 @@ function getDefaultColors()
indexMenuTotalMsgsHighlight: "\x01w\x01h", indexMenuTotalMsgsHighlight: "\x01w\x01h",
indexMenuNumNewMsgsHighlight: "\x01w\x01h", indexMenuNumNewMsgsHighlight: "\x01w\x01h",
indexMenuLastPostDateHighlight: "\x01w\x01h", indexMenuLastPostDateHighlight: "\x01w\x01h",
indexMenuSeparatorLine: "\x01b",
indexMenuSeparatorText: "\x01y\x01h",
   
// Colors for the indexed mode help line text: // Colors for the indexed mode help line text:
// Background // Background
......
...@@ -133,6 +133,9 @@ indexMenuDescHighlight=wh ...@@ -133,6 +133,9 @@ indexMenuDescHighlight=wh
indexMenuTotalMsgsHighlight=wh indexMenuTotalMsgsHighlight=wh
indexMenuNumNewMsgsHighlight=wh indexMenuNumNewMsgsHighlight=wh
indexMenuLastPostDateHighlight=wh indexMenuLastPostDateHighlight=wh
; General:
indexMenuSeparatorLine=b
indexMenuSeparatorText=yh
; Colors for the indexed mode help line text: ; Colors for the indexed mode help line text:
; Background ; Background
......
This diff is collapsed.
...@@ -5,6 +5,10 @@ Revision History (change log) ...@@ -5,6 +5,10 @@ Revision History (change log)
============================= =============================
Version Date Description Version Date Description
------- ---- ----------- ------- ---- -----------
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
separator text)
1.90 2023-12-04 New: operator menu for read mode, with the option to add 1.90 2023-12-04 New: operator menu for read mode, with the option to add
the author to the twit list, etc. the author to the twit list, etc.
Fix: When refreshing a rectangular area of a message, if Fix: When refreshing a rectangular area of a message, if
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment