MCPcopy Create free account
hub / github.com/SpartanJ/eepp / applyColorScheme

Method applyColorScheme

src/eepp/ui/tools/uicodeeditorsplitter.cpp:824–831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824void 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
833void UICodeEditorSplitter::forEachWidgetClass( const std::string& className,
834 std::function<void( UIWidget* )> run ) const {

Callers

nothing calls this directly

Calls 3

setSyntaxColorSchemeMethod · 0.80
onColorSchemeChangedMethod · 0.80
setColorSchemeMethod · 0.45

Tested by

no test coverage detected