From f5c6da2b51a46e2e36919d02d0db0bb6ea3abe36 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Wed, 6 Dec 2006 22:51:39 +0000 Subject: [PATCH] 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 --- src/BufferView.C | 4 ++++ src/LColor.C | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/BufferView.C b/src/BufferView.C index 67bbf5d530..6760ac7369 100644 --- a/src/BufferView.C +++ b/src/BufferView.C @@ -1069,6 +1069,10 @@ std::pair 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); diff --git a/src/LColor.C b/src/LColor.C index a28385b328..2f2a9ff06f 100644 --- a/src/LColor.C +++ b/src/LColor.C @@ -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" },