mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
Nicer colors for card list/stats panel;
Keywords updated so <name><cost> splits correctly git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@352 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -137,7 +137,11 @@ int KeywordList::OnGetItemImage(long pos) const {
|
||||
wxListItemAttr* KeywordList::OnGetItemAttr(long pos) const {
|
||||
// black for set keywords, grey for game keywords (uneditable)
|
||||
const Keyword& kw = *getKeyword(pos);
|
||||
if (!kw.fixed) return nullptr;
|
||||
item_attr.SetTextColour(lerp(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW),wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT),0.5));
|
||||
if (!kw.fixed && kw.valid) return nullptr;
|
||||
if (!kw.valid) {
|
||||
item_attr.SetTextColour(*wxRED);
|
||||
} else if (kw.fixed) {
|
||||
item_attr.SetTextColour(lerp(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW),wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT),0.5));
|
||||
}
|
||||
return &item_attr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user