| 3808 | } |
| 3809 | |
| 3810 | void |
| 3811 | Settings::restoreDefaultAppearance() |
| 3812 | { |
| 3813 | std::vector<KnobIPtr> children = _appearanceTab->getChildren(); |
| 3814 | |
| 3815 | for (std::size_t i = 0; i < children.size(); ++i) { |
| 3816 | KnobColor* isColorKnob = dynamic_cast<KnobColor*>( children[i].get() ); |
| 3817 | if ( isColorKnob && isColorKnob->isSimplified() ) { |
| 3818 | isColorKnob->blockValueChanges(); |
| 3819 | for (int j = 0; j < isColorKnob->getDimension(); ++j) { |
| 3820 | isColorKnob->resetToDefaultValue(j); |
| 3821 | } |
| 3822 | isColorKnob->unblockValueChanges(); |
| 3823 | } |
| 3824 | } |
| 3825 | _defaultAppearanceOutdated = false; |
| 3826 | appPTR->reloadStylesheets(); |
| 3827 | } |
| 3828 | |
| 3829 | std::string |
| 3830 | Settings::getUserStyleSheetFilePath() const |
no test coverage detected