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

Method getCurrentColorScheme

src/tools/ecode/ecode.cpp:1941–1955  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1939}
1940
1941const SyntaxColorScheme* App::getCurrentColorScheme() const {
1942 const SyntaxColorScheme* colorScheme = nullptr;
1943 if ( mSplitter ) {
1944 colorScheme = &mSplitter->getCurrentColorScheme();
1945 } else {
1946 auto found = std::find_if( mColorSchemes.begin(), mColorSchemes.end(),
1947 [this]( const SyntaxColorScheme& colorScheme ) {
1948 return colorScheme.getName() == mInitColorScheme;
1949 } );
1950 if ( found != mColorSchemes.end() ) {
1951 colorScheme = &*found;
1952 }
1953 }
1954 return colorScheme;
1955}
1956
1957void App::setTheme( const std::string& path ) {
1958 UITheme* theme = nullptr;

Callers 7

createContainerMethod · 0.80
onColorSchemeChangedMethod · 0.80
onCodeEditorCreatedMethod · 0.80
createContainerMethod · 0.80
initGlobalSearchBarMethod · 0.80
LLMChatUIMethod · 0.80
addChatUIMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected