From 91dc2c606b8fe5fdeb6ee80b6764b1bea0240e65 Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 6 Sep 2015 07:40:24 +0000 Subject: [PATCH] ide: LayDes cosmetics #1255 git-svn-id: svn://ultimatepp.org/upp/trunk@8900 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/CtrlLib.usc | 2 +- uppsrc/ide/LayDes/property.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/uppsrc/CtrlLib/CtrlLib.usc b/uppsrc/CtrlLib/CtrlLib.usc index b9503c617..aa44acf95 100644 --- a/uppsrc/CtrlLib/CtrlLib.usc +++ b/uppsrc/CtrlLib/CtrlLib.usc @@ -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; diff --git a/uppsrc/ide/LayDes/property.cpp b/uppsrc/ide/LayDes/property.cpp index 1ec17831b..a5321b80c 100644 --- a/uppsrc/ide/LayDes/property.cpp +++ b/uppsrc/ide/LayDes/property.cpp @@ -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