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

Method updateColorSchemeMenu

src/tools/ecode/settingsmenu.cpp:2870–2881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2868}
2869
2870void SettingsMenu::updateColorSchemeMenu() {
2871 for ( UIPopUpMenu* menu : mColorSchemeMenus ) {
2872 for ( size_t i = 0; i < menu->getCount(); i++ ) {
2873 UIWidget* widget = menu->getItem( i );
2874 if ( widget->isType( UI_TYPE_MENURADIOBUTTON ) ) {
2875 auto* menuItem = widget->asType<UIMenuRadioButton>();
2876 menuItem->setActive( mSplitter->getCurrentColorSchemeName() ==
2877 menuItem->getText() );
2878 }
2879 }
2880 }
2881}
2882
2883void SettingsMenu::updateCurrentFileType() {
2884 if ( !mSplitter->curEditorExistsAndFocused() )

Callers 1

onColorSchemeChangedMethod · 0.45

Calls 5

getCountMethod · 0.45
getItemMethod · 0.45
isTypeMethod · 0.45
setActiveMethod · 0.45
getTextMethod · 0.45

Tested by

no test coverage detected