[Rd] FR: Customize background colour of row and column headers for the View output

Ivan Krylov |kry|ov @end|ng |rom d|@root@org
Thu May 16 17:48:52 CEST 2024


The change suggested by Iago Giné Vázquez is indeed very simple. It
sets the background colour of the row and column headers to the
background of the rest of the dataentry window. With this patch, R
passes 'make check'. As Duncan Murdoch mentions, the X11 editor already
behaves this way.

If it's not acceptable to make the row and column headers the same
colour as the rest of the text, let's make it into a separate setting.

--- src/library/utils/src/windows/dataentry.c	(revision 86557)
+++ src/library/utils/src/windows/dataentry.c	(working copy)
@@ -1474,7 +1474,7 @@
     resize(DE->de, r);
 
     DE->CellModified = DE->CellEditable = FALSE;
-    bbg = dialog_bg();
+    bbg = guiColors[dataeditbg];
     /* set the active cell to be the upper left one */
     DE->crow = 1;
     DE->ccol = 1;

-- 
Best regards,
Ivan



More information about the R-devel mailing list