mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib, Draw: Improved support for dark visual themes (corrected text color, icon inversion for toolbar / menubar)
git-svn-id: svn://ultimatepp.org/upp/trunk@3887 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
708d2022c2
commit
467611ad53
17 changed files with 2013 additions and 1889 deletions
|
|
@ -26,6 +26,7 @@ ToolBar::ToolBar()
|
|||
maxiconsize = Null;
|
||||
kind = ToolButton::NOLABEL;
|
||||
arealook = -1;
|
||||
nodarkadjust = false;
|
||||
}
|
||||
|
||||
ToolBar::~ToolBar() {}
|
||||
|
|
@ -60,6 +61,7 @@ Bar::Item& ToolBar::AddItem(Callback cb)
|
|||
m.MaxIconSize(IsNull(maxiconsize) ? style->maxiconsize : maxiconsize);
|
||||
m.Kind(kind);
|
||||
m.SetStyle(style->buttonstyle);
|
||||
m.NoDarkAdjust(nodarkadjust);
|
||||
pane.Add(&m, Null);
|
||||
return m;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue