|1.9.5 committed to CVS
||[Jul. 28th, 2000|11:26 am]
- One-line patch from Brad to make moods default to blank.
- The "add" button now works when no users are selected.
- Column sorting in Friends list; updated pixmaps.
- Editing friend re-enabled. TODO: Save color information.
I'd have done the colors the other way....
red for people that list you but you not them ..... and cyan for you listing them.
red implies bad, and suggests you can do something to prevent it (like stopping at a stop light).... you can't do anything about somebody not listing you as a friend, but you CAN list somebody as a friend that only lists you.
plus, that's how the windows client is. ;-P
2000-07-28 12:41 pm (UTC)
Done. I did it with vi, too. Yay for human-readable image files.
I've been thinking about coloring the entries in the friends list based on their LiveJournal color scheme, but then I don't know what to do with the people who only list you as a friend, because there's no color...
Maybe I should've stayed with the dual-tab interface. :\
Two extra 10 pixel-wide columns... an asterisk in them if you're a friend or they're a friend, and use the background color/foreground color to both show what you color them as, and how they color you.
2000-07-28 12:46 pm (UTC)
I can only set a foreground/background color for an entire row of a CList.
And, they never finished the code to embed widgets in cells, so there's no way to get at a particular cell.
2000-07-28 12:49 pm (UTC)
GtkColorSelectionDialog on the add/edit friends dialog. Two little "..." buttons beside the colors. Users should still be able to update the HTML, and then go to the colorpicker, or vice versa, and the HTML should stay in sync.
You're going to need some functions to do HTML colors to unsigned ints, and vice versa.
I'll paste my MFC code here because I'm sure it'll help you immensely. :-P
COLORREF HexToColor (CString hex)
if (hex.GetLength() != 7) return RGB(0,0,0);
if (hex.GetAt(0) != '#') return RGB(0,0,0);
int r, g, b;
r = HexByteToInt(hex.Mid(1, 2));
g = HexByteToInt(hex.Mid(3, 2));
b = HexByteToInt(hex.Mid(5, 2));
COLORREF ret = RGB(r, g, b);
CString ColorToHex (COLORREF color)
int r, g, b;
r = GetRValue(color);
g = GetGValue(color);
b = GetBValue(color);
ret += IntToHexByte(r);
ret += IntToHexByte(g);
ret += IntToHexByte(b);
Then, below a little label widget, or a label in a box, so you can set the background/foreground colors as a preview.