<color name="ListboxSelectedForeground" color="#ffffff" />
<color name="ListboxMarkedBackground" color="#ff0000" />
<color name="ListboxMarkedForeground" color="#ffffff" />
+ <color name="ListboxMarkedAndSelectedBackground" color="#800000" />
+ <color name="ListboxMarkedAndSelectedForeground" color="#ffffff" />
<color name="WindowTitleForeground" color="#ffffff" />
<color name="WindowTitleBackground" color="#33294a6b" />
<borderset name="bsWindow">
painter.setForegroundColor(gColor(0x2F));
painter.setBackgroundColor(gColor(0x2A));
break;
+ case styleListboxMarkedAndSelected:
+ painter.setForegroundColor(gColor(0x3F));
+ painter.setBackgroundColor(gColor(0x3A));
+ break;
}
}
styleLabel,
styleListboxSelected,
styleListboxNormal,
- styleListboxMarked
+ styleListboxMarked,
+ styleListboxMarkedAndSelected
};
virtual void drawFrame(gPainter &painter, const eRect &frame, int type) = 0;
painter.setForegroundColor(m_color[colListboxMarkedForeground]);
painter.setBackgroundColor(m_color[colListboxMarkedBackground]);
break;
+ case styleListboxMarkedAndSelected:
+ painter.setForegroundColor(m_color[colListboxMarkedAndSelectedForeground]);
+ painter.setBackgroundColor(m_color[colListboxMarkedAndSelectedBackground]);
+ break;
}
}
colListboxSelectedForeground,
colListboxMarkedBackground,
colListboxMarkedForeground,
+ colListboxMarkedAndSelectedBackground,
+ colListboxMarkedAndSelectedForeground,
colWindowTitleForeground,
colWindowTitleBackground,
if (m_current_marked && selected)
style.setStyle(painter, eWindowStyle::styleListboxMarked);
else if (cursorValid() && isMarked(*m_cursor))
- style.setStyle(painter, eWindowStyle::styleListboxMarked);
+ style.setStyle(painter, selected ? eWindowStyle::styleListboxMarkedAndSelected : eWindowStyle::styleListboxMarked);
else
style.setStyle(painter, selected ? eWindowStyle::styleListboxSelected : eWindowStyle::styleListboxNormal);
painter.clear();