Fix a button hover bug, remove button frame

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16194 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2006-12-06 22:51:39 +00:00
parent ca5838b017
commit f5c6da2b51
2 changed files with 5 additions and 1 deletions

View File

@ -1069,6 +1069,10 @@ std::pair<bool, bool> BufferView::workAreaDispatch(FuncRequest const & cmd0)
need_update |= inset->setMouseHover(true);
last_inset = inset;
}
// if in singlepar mode, update to get a full screen repaint.
// otherwise, buttons outside of the current paragraph will not be redrawn.
if (need_update && metrics_info_.singlepar)
update();
// This event (moving without mouse click) is not passed further.
// This should be changed if it is further utilized.
return make_pair(need_update, need_update);

View File

@ -145,7 +145,7 @@ LColor::LColor()
"LightSteelBlue", "tabularonoffline" },
{ bottomarea, N_("bottom area"), "bottomarea", "grey40", "bottomarea" },
{ pagebreak, N_("page break"), "pagebreak", "RoyalBlue", "pagebreak" },
{ buttonframe, N_("frame of button"), "buttonframe", "#A9ABB5", "buttonframe" },
{ buttonframe, N_("frame of button"), "buttonframe", "#dcd2c8", "buttonframe" },
{ buttonbg, N_("button background"), "buttonbg", "#dcd2c8", "buttonbg" },
{ buttonhoverbg, N_("button background under focus"), "buttonhoverbg", "#C7C7CA", "buttonhoverbg" },
{ inherit, N_("inherit"), "inherit", "black", "inherit" },