?

Log in

No account? Create an account
1.9.5 committed to CVS - LogJam [entries|archive|friends|userinfo]
LogJam

[ website | LogJam ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

1.9.5 committed to CVS [Jul. 28th, 2000|11:26 am]
LogJam
logjam
[evan]
    - 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.

Release candidate.

LinkReply

Comments:
[User Picture]From: bradfitz
2000-07-28 12:30 pm (UTC)

colors

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.
(Reply) (Thread)
[User Picture]From: bradfitz
2000-07-28 12:31 pm (UTC)

Re: colors

plus, that's how the windows client is. ;-P
(Reply) (Parent) (Thread)
From: evan
2000-07-28 12:41 pm (UTC)

Re: colors

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. :\
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2000-07-28 12:43 pm (UTC)

Re: colors

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.
(Reply) (Parent) (Thread)
From: evan
2000-07-28 12:46 pm (UTC)

Re: colors

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.

Screwed.
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2000-07-28 12:49 pm (UTC)

feature request

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);
return ret;
}

CString ColorToHex (COLORREF color)
{
int r, g, b;
r = GetRValue(color);
g = GetGValue(color);
b = GetBValue(color);
CString ret("#");
ret += IntToHexByte(r);
ret += IntToHexByte(g);
ret += IntToHexByte(b);
return ret;
}

Then, below a little label widget, or a label in a box, so you can set the background/foreground colors as a preview.
(Reply) (Thread)