]> Dogcows Code - chaz/openbox/commitdiff
change the color used for the checkmark. match the text. dont check the current works...
authorDana Jansens <danakj@orodu.net>
Wed, 17 Jul 2002 22:56:21 +0000 (22:56 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 17 Jul 2002 22:56:21 +0000 (22:56 +0000)
src/Basemenu.cc
src/Screen.cc

index 9462abacf94dfef898fb7f1f7a0e1712b1e536d7..fcd6931e6eba5dff03dbd4012468d59f131b2b3a 100644 (file)
@@ -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);
   }
 
index e0ef585f20b09d9013ba8fda65fd832a6f69eb04..c1f8532f193a129530872a878f18bfaf31e6d58f 100644 (file)
@@ -231,7 +231,7 @@ BScreen::BScreen(Blackbox *bb, unsigned int scrn) : ScreenInfo(bb, scrn) {
   xatom->setValue(getRootWindow(), XAtom::net_current_desktop,
                   XAtom::cardinal, 0); //first workspace
 
-  workspacemenu->setItemSelected(2, True);
+  //workspacemenu->setItemSelected(2, True);
 
   toolbar = new Toolbar(this);
 
@@ -1063,14 +1063,14 @@ void BScreen::changeWorkspaceID(unsigned int id) {
   blackbox->setFocusedWindow((BlackboxWindow *) 0);
     
   current_workspace->hideAll();
-  workspacemenu->setItemSelected(current_workspace->getID() + 2, False);
+  //workspacemenu->setItemSelected(current_workspace->getID() + 2, False);
 
   current_workspace = getWorkspace(id);
 
   xatom->setValue(getRootWindow(), XAtom::net_current_desktop,
                   XAtom::cardinal, id);
 
-  workspacemenu->setItemSelected(current_workspace->getID() + 2, True);
+  //workspacemenu->setItemSelected(current_workspace->getID() + 2, True);
   toolbar->redrawWorkspaceLabel(True);
 
   current_workspace->showAll();
This page took 0.034244 seconds and 4 git commands to generate.