git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
honor horizontal alignment also when a mark is present
[enigma2.git]
/
lib
/
gui
/
ewindowstyle.cpp
diff --git
a/lib/gui/ewindowstyle.cpp
b/lib/gui/ewindowstyle.cpp
index 86ff8a4267919783f8cacfca82107db6cf0d33d0..2558669ae363ae98ff33aec5711b809501d5bde1 100644
(file)
--- a/
lib/gui/ewindowstyle.cpp
+++ b/
lib/gui/ewindowstyle.cpp
@@
-19,14
+19,14
@@
eWindowStyleManager::~eWindowStyleManager()
m_instance = 0;
}
m_instance = 0;
}
-void eWindowStyleManager::getStyle(ePtr<eWindowStyle> &style)
+void eWindowStyleManager::getStyle(
int style_id,
ePtr<eWindowStyle> &style)
{
{
- style = m_current_style;
+ style = m_current_style
[style_id]
;
}
}
-void eWindowStyleManager::setStyle(eWindowStyle *style)
+void eWindowStyleManager::setStyle(
int style_id,
eWindowStyle *style)
{
{
- m_current_style = style;
+ m_current_style
[style_id]
= style;
}
eWindowStyleManager *eWindowStyleManager::m_instance;
}
eWindowStyleManager *eWindowStyleManager::m_instance;
@@
-109,6
+109,10
@@
void eWindowStyleSimple::setStyle(gPainter &painter, int what)
painter.setForegroundColor(gColor(0x2F));
painter.setBackgroundColor(gColor(0x2A));
break;
painter.setForegroundColor(gColor(0x2F));
painter.setBackgroundColor(gColor(0x2A));
break;
+ case styleListboxMarkedAndSelected:
+ painter.setForegroundColor(gColor(0x3F));
+ painter.setBackgroundColor(gColor(0x3A));
+ break;
}
}
}
}