mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide: LayDes cosmetics #1255
git-svn-id: svn://ultimatepp.org/upp/trunk@8900 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
604176c53f
commit
91dc2c606b
2 changed files with 3 additions and 3 deletions
|
|
@ -193,7 +193,7 @@ ctrl Label {
|
|||
group "Static";
|
||||
|
||||
GetMinSize() { return XMinSize(); }
|
||||
GetStdSize() { sz = GetMinSize(); sz.cx *= 5; return sz; }
|
||||
GetStdSize() { sz = GetMinSize(); sz.cy += 6; sz.cx *= 5; return sz; }
|
||||
|
||||
>TextCtrl;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ void ItemProperty::Paint(Draw& w)
|
|||
w.DrawRect(sz, SColorLtFace);
|
||||
w.DrawRect(0, GetHeight() - 1, sz.cx, 1, SColorText);
|
||||
w.DrawText(2,
|
||||
(EditField::GetStdHeight() + 6 - GetTextSize(name, LayFont()).cy) / 2, name,
|
||||
GetData() == defval ? LayFont() : LayFont().Bold());
|
||||
(EditField::GetStdHeight() + 6 - GetTextSize(name, StdFont()).cy) / 2, name,
|
||||
GetData() == defval ? StdFont()() : StdFont().Bold());
|
||||
}
|
||||
|
||||
int ItemProperty::GetHeight() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue