mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-24 14:22:40 -06:00
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:
parent
5280b8e611
commit
7e64005df6
3 changed files with 18 additions and 9 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue