mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-24 04:57:20 +01:00
Merge pull request #13343 from jordan-woyak/dark-theme-indicator-gate-colors
DolphinQt/Mapping: Adjust dark theme indicator gate color calculation.
This commit is contained in:
commit
343007fa9e
@ -125,7 +125,7 @@ QColor MappingIndicator::GetAltTextColor() const
|
|||||||
void MappingIndicator::AdjustGateColor(QColor* color)
|
void MappingIndicator::AdjustGateColor(QColor* color)
|
||||||
{
|
{
|
||||||
if (Settings::Instance().IsThemeDark())
|
if (Settings::Instance().IsThemeDark())
|
||||||
color->setHsvF(color->hueF(), color->saturationF(), 1 - color->valueF());
|
color->setHsvF(color->hueF(), std::min(color->saturationF(), 0.5f), color->valueF() * 0.35f);
|
||||||
}
|
}
|
||||||
|
|
||||||
ButtonIndicator::ButtonIndicator(ControlReference* control_ref) : m_control_ref{control_ref}
|
ButtonIndicator::ButtonIndicator(ControlReference* control_ref) : m_control_ref{control_ref}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user