Commit 62a5db2d authored by nightfox's avatar nightfox
Browse files

Added configurable options for the message score colors for the message list:...

Added configurable options for the message score colors for the message list: msgListScoreColor, msgListToUserScoreColor, msgListFromUserScoreColor, and msgListScoreHighlightColor.  Incremented version to 1.20.
parent 244f47b8
......@@ -145,6 +145,9 @@
* 2019-04-25 Eric Oulashin Version 1.19
* Updated to show message score values in the message list
* if the terminal is wide enough (>= 86 characters)
* 2019-04-26 Eric Oulashin Version 1.20
* Added configurable options for the message score colors
* for the message list
*/
 
// TODO: Support anonymous posts? Bit values for sub[x].settings:
......@@ -232,8 +235,8 @@ if (system.version_num < 31500)
}
 
// Reader version information
var READER_VERSION = "1.19";
var READER_DATE = "2019-04-25";
var READER_VERSION = "1.20";
var READER_DATE = "2019-04-26";
 
// Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24);
......@@ -7626,7 +7629,9 @@ function DigDistMsgReader_ReadConfigFile()
(setting == "enhReaderHelpLineBkgColor") || (setting == "enhReaderHelpLineGeneralColor") ||
(setting == "enhReaderHelpLineHotkeyColor") || (setting == "enhReaderHelpLineParenColor") ||
(setting == "hdrLineLabelColor") || (setting == "hdrLineValueColor") ||
(setting == "selectedMsgMarkColor"))
(setting == "selectedMsgMarkColor") || (setting == "msgListScoreColor") ||
(setting == "msgListToUserScoreColor") || (setting == "msgListFromUserScoreColor") ||
(setting == "msgListScoreHighlightColor"))
{
// Trim leading & trailing spaces from the value when
// setting a color. Also, replace any instances of "\1"
......
......@@ -65,6 +65,7 @@ msgListMsgNumColor=nhy
msgListFromColor=nc
msgListToColor=nc
msgListSubjectColor=nc
msgListScoreColor=nc
msgListDateColor=hb
msgListTimeColor=hb
; Message information for messages written to the user
......@@ -72,6 +73,7 @@ msgListToUserMsgNumColor=nhy
msgListToUserFromColor=hg
msgListToUserToColor=hg
msgListToUserSubjectColor=hg
msgListToUserScoreColor=hg
msgListToUserDateColor=hb
msgListToUserTimeColor=hb
; Message information for messages from the user
......@@ -79,6 +81,7 @@ msgListFromUserMsgNumColor=nhy
msgListFromUserFromColor=nc
msgListFromUserToColor=nc
msgListFromUserSubjectColor=nc
msgListFromUserScoreColor=nc
msgListFromUserDateColor=hb
msgListFromUserTimeColor=hb
......@@ -92,6 +95,8 @@ msgListFromHighlightColor=hc
msgListToHighlightColor=hc
; Message list highlighted subject
msgListSubjHighlightColor=hc
; Message list highlighted score
msgListScoreHighlightColor=hc
; Message list highlighted date
msgListDateHighlightColor=hw
; Message list highlighted time
......@@ -167,6 +172,10 @@ enhReaderHelpLineHotkeyColor=r
; The color for the ) separating the hotkeys from the general text in the
; help line in the scrollable reader interface
enhReaderHelpLineParenColor=m
; The text to use for asking the user whether they want to post on a sub-board
; (for instance, after reading the last message). The two %s will be replaced
; with the message group name and sub-board description, respectively.
postOnSubBoard=ngPost on %s %s
; -------- Search & scan colors & text --------
......
Digital Distortion Message Reader
Version 1.19
Release date: 2019-04-25
Version 1.20
Release date: 2019-04-26
by
......@@ -703,6 +703,9 @@ msgListToColor Color for the destination name (in the
message list)
msgListSubjectColor Color for the message subject (in the
message list)
msgListScoreColor Color for the message score (in the
message list) - For terminals at least
86 characters wide
msgListDateColor Color for the message date (in the message
list)
msgListTimeColor Color for the message time (in the message
......@@ -716,6 +719,10 @@ msgListToUserToColor Color for the destination name, for
messages to the user (in the message list)
msgListToUserSubjectColor Color for the message subject, for
messages to the user (in the message list)
msgListToUserScoreColor Color for the message score, for
messages to the user (in the message list)
- For terminals at least 86 characters
wide
msgListToUserDateColor Color for the message date, for messages
to the user (in the message list)
msgListToUserTimeColor Color for the message time, for messages
......@@ -731,6 +738,10 @@ msgListFromUserToColor Color for the mestination name, for
msgListFromUserSubjectColor Color for the message subject, for
messages from the user (in the message
list)
msgListFromUserScoreColor Color for the message score, for
messages from the user (in the message
list) - For terminals at least 86
characters wide
msgListFromUserDateColor Color for the message date, for messages
from the user (in the message list)
msgListFromUserTimeColor Color for the message time, for messages
......@@ -746,6 +757,9 @@ msgListToHighlightColor Message list highlighted 'to' name color
(for lightbar mode)
msgListSubjHighlightColor Message list highlighted subject color
(for lightbar mode)
msgListScoreHighlightColor Message list highlighted score color
(for lightbar mode) - For terminals at
least 86 characters wide
msgListDateHighlightColor Message list highlighted date color (for
lightbar mode)
msgListTimeHighlightColor Message list highlighted time color (for
......
......@@ -5,7 +5,11 @@ Revision History (change log)
=============================
Version Date Description
------- ---- -----------
1.19 2019-03-25 If the terminal size is wide enough (at least 86
1.20 2019-04-26 Added configurable options for the message score colors
for the message list: msgListScoreColor,
msgListToUserScoreColor, msgListFromUserScoreColor, and
msgListScoreHighlightColor
1.19 2019-04-25 If the terminal size is wide enough (at least 86
characters), the overall vote scores for the messages
is now displayed in the message list. Also, fixed a
bug introduced in the previous version where the vote
......
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