diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-02-20 07:15:12 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-02-20 07:15:12 +0000 |
commit | 5080f89331e0171d2b213794f76452841ddc7ddd (patch) | |
tree | 05701d7ace8af5220d84808978b55daf395b1f52 /guilib/GUISpinControlEx.cpp | |
parent | 3d32a2e2b6d6986ba2f84b01d071ad87c091d543 (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.cpp | 16 |
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) |