aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUISpinControlEx.cpp
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2010-02-20 07:15:12 +0000
committerjmarshallnz <jmarshallnz@svn>2010-02-20 07:15:12 +0000
commit5080f89331e0171d2b213794f76452841ddc7ddd (patch)
tree05701d7ace8af5220d84808978b55daf395b1f52 /guilib/GUISpinControlEx.cpp
parent3d32a2e2b6d6986ba2f84b01d071ad87c091d543 (diff)
fixed: skin setting spinner used the textcolor rather than the focusedcolor when cycling through items.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@27997 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUISpinControlEx.cpp')
-rw-r--r--guilib/GUISpinControlEx.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/guilib/GUISpinControlEx.cpp b/guilib/GUISpinControlEx.cpp
index 68c36a549c..e23bdce45b 100644
--- a/guilib/GUISpinControlEx.cpp
+++ b/guilib/GUISpinControlEx.cpp
@@ -125,10 +125,18 @@ CStdString CGUISpinControlEx::GetDescription() const
return strLabel;
}
-void CGUISpinControlEx::SettingsCategorySetSpinTextColor(const CGUIInfoColor &color)
-{
- m_label.GetLabelInfo().textColor = color;
- m_label.GetLabelInfo().focusedColor = color;
+void CGUISpinControlEx::SetItemInvalid(bool invalid)
+{
+ if (invalid)
+ {
+ m_label.GetLabelInfo().textColor = m_buttonControl.GetLabelInfo().disabledColor;
+ m_label.GetLabelInfo().focusedColor = m_buttonControl.GetLabelInfo().disabledColor;
+ }
+ else
+ {
+ m_label.GetLabelInfo().textColor = m_buttonControl.GetLabelInfo().textColor;
+ m_label.GetLabelInfo().focusedColor = m_buttonControl.GetLabelInfo().focusedColor;
+ }
}
void CGUISpinControlEx::SetSpinPosition(float spinPosX)