[LyX/master] Clarify change text color descriptors
Juergen Spitzmueller
spitz at lyx.org
Tue Dec 24 07:21:54 UTC 2019
commit 0139bcf48f6e17538f4e559deb1024d3fd6a5157
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Tue Dec 24 08:37:27 2019 +0100
Clarify change text color descriptors
Addresses #11704
---
src/Changes.cpp | 10 +++++-----
src/Color.cpp | 19 +++++++++----------
src/ColorCode.h | 20 ++++++++++----------
3 files changed, 24 insertions(+), 25 deletions(-)
diff --git a/src/Changes.cpp b/src/Changes.cpp
index 6e3bf0f..8c96338 100644
--- a/src/Changes.cpp
+++ b/src/Changes.cpp
@@ -72,19 +72,19 @@ Color Change::color() const
Color color = Color_none;
switch (author % 5) {
case 0:
- color = Color_changedtextauthor1;
+ color = Color_addedtextauthor1;
break;
case 1:
- color = Color_changedtextauthor2;
+ color = Color_addedtextauthor2;
break;
case 2:
- color = Color_changedtextauthor3;
+ color = Color_addedtextauthor3;
break;
case 3:
- color = Color_changedtextauthor4;
+ color = Color_addedtextauthor4;
break;
case 4:
- color = Color_changedtextauthor5;
+ color = Color_addedtextauthor5;
break;
}
diff --git a/src/Color.cpp b/src/Color.cpp
index d9933ce..dd95e28 100644
--- a/src/Color.cpp
+++ b/src/Color.cpp
@@ -277,18 +277,17 @@ ColorSet::ColorSet()
{ Color_eolmarker, N_("end-of-line marker"), "eolmarker", "Brown", "eolmarker" },
{ Color_appendix, N_("appendix marker"), "appendix", "Brown", "appendix" },
{ Color_changebar, N_("change bar"), "changebar", "Blue", "changebar" },
- { Color_deletedtext, N_("deleted text"), "deletedtext", "#ff0000", "deletedtext" },
- { Color_addedtext, N_("added text"), "addedtext", "#0000ff", "addedtext" },
- { Color_changedtextauthor1, N_("changed text 1st author"), "changedtextauthor1", "#0000ff", "changedtextauthor1" },
- { Color_changedtextauthor2, N_("changed text 2nd author"), "changedtextauthor2", "#ff00ff", "changedtextauthor2" },
- { Color_changedtextauthor3, N_("changed text 3rd author"), "changedtextauthor3", "#ff0000", "changedtextauthor3" },
- { Color_changedtextauthor4, N_("changed text 4th author"), "changedtextauthor4", "#aa00ff", "changedtextauthor4" },
- { Color_changedtextauthor5, N_("changed text 5th author"), "changedtextauthor5", "#55aa00", "changedtextauthor5" },
- { Color_deletedtextmodifier, N_("deleted text modifier"), "deletedtextmodifier", "white", "deletedtextmodifier" },
+ { Color_deletedtext, N_("deleted text (output)"), "deletedtext", "#ff0000", "deletedtext" },
+ { Color_addedtext, N_("added text (output)"), "addedtext", "#0000ff", "addedtext" },
+ { Color_addedtextauthor1, N_("added text (workarea, 1st author)"), "changedtextauthor1", "#0000ff", "changedtextauthor1" },
+ { Color_addedtextauthor2, N_("added text (workarea, 2nd author)"), "changedtextauthor2", "#ff00ff", "changedtextauthor2" },
+ { Color_addedtextauthor3, N_("added text (workarea, 3rd author)"), "changedtextauthor3", "#ff0000", "changedtextauthor3" },
+ { Color_addedtextauthor4, N_("added text (workarea, 4th author)"), "changedtextauthor4", "#aa00ff", "changedtextauthor4" },
+ { Color_addedtextauthor5, N_("added text (workarea, 5th author)"), "changedtextauthor5", "#55aa00", "changedtextauthor5" },
+ { Color_deletedtextmodifier, N_("deleted text modifier (workarea)"), "deletedtextmodifier", "white", "deletedtextmodifier" },
{ Color_added_space, N_("added space markers"), "added_space", "Brown", "added_space" },
{ Color_tabularline, N_("table line"), "tabularline", "black", "tabularline" },
- { Color_tabularonoffline, N_("table on/off line"), "tabularonoffline",
- "LightSteelBlue", "tabularonoffline" },
+ { Color_tabularonoffline, N_("table on/off line"), "tabularonoffline", "LightSteelBlue", "tabularonoffline" },
{ Color_bottomarea, N_("bottom area"), "bottomarea", grey40, "bottomarea" },
{ Color_newpage, N_("new page"), "newpage", "Blue", "newpage" },
{ Color_pagebreak, N_("page break / line break"), "pagebreak", "RoyalBlue", "pagebreak" },
diff --git a/src/ColorCode.h b/src/ColorCode.h
index d097385..71a9fda 100644
--- a/src/ColorCode.h
+++ b/src/ColorCode.h
@@ -179,16 +179,16 @@ enum ColorCode {
Color_deletedtext,
/// Added text color
Color_addedtext,
- /// Changed text color author 1
- Color_changedtextauthor1,
- /// Changed text color author 2
- Color_changedtextauthor2,
- /// Changed text color author 3
- Color_changedtextauthor3,
- /// Changed text color author 4
- Color_changedtextauthor4,
- /// Changed text color author 5
- Color_changedtextauthor5,
+ /// Added text color author 1
+ Color_addedtextauthor1,
+ /// Added text color author 2
+ Color_addedtextauthor2,
+ /// Added text color author 3
+ Color_addedtextauthor3,
+ /// Added text color author 4
+ Color_addedtextauthor4,
+ /// Added text color author 5
+ Color_addedtextauthor5,
/// Deleted text modifying color
Color_deletedtextmodifier,
/// Table line color
More information about the lyx-cvs
mailing list