diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-17 22:56:21 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-17 22:56:21 +0000 |
| commit | 0a9da781402101b450b575c9ce0b20e651aa27a3 (patch) | |
| tree | 549da9f30f77bca2180d69f3643fbfb0dfa626e7 /src/Basemenu.cc | |
| parent | f020fb586bf8d2570f8064f34200bdc8a17373a6 (diff) | |
change the color used for the checkmark. match the text. dont check the current workspace in the workspace menu.
Diffstat (limited to 'src/Basemenu.cc')
| -rw-r--r-- | src/Basemenu.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Basemenu.cc b/src/Basemenu.cc index 9462abac..fcd6931e 100644 --- a/src/Basemenu.cc +++ b/src/Basemenu.cc @@ -607,6 +607,11 @@ void Basemenu::drawItem(int index, bool highlight, bool clear, } if (dosel && item->isSelected()) { + // match the text color + BPen pen((highlight ? style->h_text : + (item->isEnabled() ? style->f_text : + style->d_text))); + XPoint pts[6]; pts[0].x = sel_x + 0; @@ -621,13 +626,14 @@ void Basemenu::drawItem(int index, bool highlight, bool clear, pts[3].x = 5; pts[3].y = -5; + pts[4].x = 0; pts[4].y = -3; pts[5].x = -5; pts[5].y = 5; - XFillPolygon(display, menu.frame, pen.gc(), pts, 6, Complex, + XFillPolygon(display, menu.frame, pen.gc(), pts, 6, Nonconvex, CoordModePrevious); } |
