https://bugs.documentfoundation.org/show_bug.cgi?id=61242

--- Comment #10 from Stan Armstrong <[email protected]> ---
I have experimented with this a bit. Comment colors appear to be assigned to
users from a list of several colors. Does anyone know where that list is kept?

The colors are not assigned to a user name with any regard for the actual
letters of that name. Rather they are assigned in an order that depends upon
whether any other User name has been associated with that color during the
current session.

With a fresh start of Writer, the color assigned to the current User name will
always be yellow, even if that User name had in an earlier session been
associated with a different color.

If you already have a yellow note in any document that has been opened in the
current Writer session, and you change the User to a new name, and enter a
comment, the background of that comment will be blue.

If you change to another different User, a new color will be assigned to that
new User. (I have reached seven different colors in this list; there may be
more.)

If you use the second User name as your usual name, then if you open a new
document under that name, the color will still be blue for your comments. This
is true even if the first document is closed before you create the second
document.

However, if you close Libreoffice Writer and restart it, you will find that
whatever you have set the User name to, that name will be associated with
yellow in every document you open or create using that name during the current
session.

This means that you cannot fool the system into assigning your usual user blue
by default in all circumstances.

Here are two workarounds that will avoid the colors of old documents being
changed from blue to yellow for subsequent Writer sessions:

1. In a new session, before opening any document, use Tools | Options to set
the author to Dummy Name.
2. Create a dummy document.
3. Add a note. This note will be yellow and assigned to Dummy Name.
4. Now open an existing document with Your Name assigned to blue. All of the
Your Name notes will now be blue. Or create a new document and enter a note; it
will be blue.
5. Change the author back to Your Name. All subsequent notes will be blue, the
second color in the hierarchy.

Clearly, this is a pain, but it illustrates what is going on:

If the current session of Writer has no comments associated with the current
User name, it will use yellow, when that user creates a comment.

If at any time during a session of Writer, it discovers a different color
associated with that User name, it will use that color for that User.

Such a previous association between a User name and a color may be either in
the current document or in another document—whether or not that other document
is still open, so long as the current Writer session has not been closed.

So, if I want to associate all of my comments with blue rather than yellow, I
have two choices:

1. At the start of any Writer session open a document that already has yellow
associated with some other User name, (be sure that Your Name has been selected
as the User name), or

2. Before you begin writing/editing create a new document with the User "Dummy
Name", create a bogus note, and then open or create the document I want to
write/edit. Change the User name back to My Name. Then when I create a note in
a new or existing document, it will be blue.

My apologies if this is hard to follow. It is hard for me to explain clearly.
Surely the principles involve can be stated more succinctly. I just haven't
found how to do it.

If I knew where Libreoffice stored the color hierarchy for notes, I could alter
it to put blue in place of yellow, and my problem would be solved.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to