| 822 | } |
| 823 | |
| 824 | void UICodeEditorSplitter::applyColorScheme( const SyntaxColorScheme& colorScheme ) { |
| 825 | forEachEditor( |
| 826 | [&colorScheme]( UICodeEditor* editor ) { editor->setColorScheme( colorScheme ); } ); |
| 827 | forEachWidgetType( UI_TYPE_DIFF_VIEW, [&colorScheme]( UIWidget* widget ) { |
| 828 | widget->asType<UIDiffView>()->setSyntaxColorScheme( colorScheme ); |
| 829 | } ); |
| 830 | mClient->onColorSchemeChanged( mCurrentColorScheme ); |
| 831 | } |
| 832 | |
| 833 | void UICodeEditorSplitter::forEachWidgetClass( const std::string& className, |
| 834 | std::function<void( UIWidget* )> run ) const { |
nothing calls this directly
no test coverage detected