mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-27 06:19:34 -06:00
CtrlLib: ToolBar images not longer adjusted for dark theme, plugin/pcre: Fixed to compile
git-svn-id: svn://ultimatepp.org/upp/trunk@12880 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
d98997c227
commit
97cbae192c
3 changed files with 3 additions and 11 deletions
|
|
@ -162,11 +162,7 @@ ToolButton& ToolButton::Kind(int _kind)
|
|||
|
||||
Image ToolButton::GetImage() const
|
||||
{
|
||||
UPP::Image m = img;
|
||||
if(IsDarkColorFace() && !nodarkadjust)
|
||||
m = MakeImage(m, AdjustForDarkBk);
|
||||
m = CachedRescale(m, min(m.GetSize(), maxiconsize));
|
||||
return m;
|
||||
return CachedRescale(img, min(m.GetSize(), maxiconsize));
|
||||
}
|
||||
|
||||
Bar::Item& ToolButton::Image(const UPP::Image& img_)
|
||||
|
|
@ -268,6 +264,8 @@ void ToolButton::Paint(Draw& w)
|
|||
w.DrawText(ip.x + isz.cx + 3 + off.x, (sz.cy - tsz.cy) / 2 + off.y, text, style->font, style->textcolor[li]);
|
||||
}
|
||||
UPP::Image img = CachedContrast(image, style->contrast[li]);
|
||||
DDUMP(style->contrast);
|
||||
_DBG_; img = image;
|
||||
if(!IsEnabled())
|
||||
img = DisabledImage(img);
|
||||
if(IsEnabled() && style->light[li])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue