Add alert palette reset buttons

This commit is contained in:
Dan Paulat 2024-09-29 08:19:51 -05:00
parent 2d8c3c8175
commit a1d9b25f0b
6 changed files with 177 additions and 0 deletions

View file

@ -65,6 +65,18 @@ inline auto FormatParameter(const T& value)
}
}
template<class T>
bool SettingsVariable<T>::IsDefault() const
{
return p->value_ == p->default_;
}
template<class T>
bool SettingsVariable<T>::IsDefaultStaged() const
{
return p->staged_.value_or(p->value_) == p->default_;
}
template<class T>
T SettingsVariable<T>::GetValue() const
{