ide: First nests dlg line now bold (to indicate the main package)

git-svn-id: svn://ultimatepp.org/upp/trunk@12008 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-06-20 18:53:14 +00:00
parent 5280b8e611
commit 7e64005df6
3 changed files with 18 additions and 9 deletions

View file

@ -605,20 +605,12 @@ bool BuildMethods::Save()
return true;
}
struct BoldDisplay : Display {
virtual void Paint(Draw& w, const Rect& r, const Value& q,
Color ink, Color paper, dword style) const {
w.DrawRect(r, paper);
DrawSmartText(w, r.left, r.top, r.Width(), (String)q, StdFont().Bold(), ink);
}
};
void BuildMethods::ShowDefault()
{
String m = GetDefaultMethod();
for(int i = 0; i < method.GetCount(); i++)
if((String)method.Get(i, 0) == m)
method.SetDisplay(i, 0, Single<BoldDisplay>());
method.SetDisplay(i, 0, BoldDisplay());
else
method.SetDisplay(i, 0, StdDisplay());
}