Added Settings -> Window -> UI Theme -> Syntax Color Scheme to use the editor color scheme globally for the UI Theme colors, having a single color palette for the whole UI and making much easier to style the UI, this solves SpartanJ/ecode#661, since now we support one UI theme for each existing syntax color scheme. Still a WIP, I'll continue improving it during the development of 0.7.5, but it's ready to use.

This commit is contained in:
Martín Lucas Golini
2026-01-18 01:38:27 -03:00
parent ddb412f42d
commit f180e58e56
22 changed files with 434 additions and 127 deletions

View File

@@ -787,7 +787,8 @@ void DebuggerPlugin::buildSidePanelTab() {
</vbox>
)html";
UIIcon* icon = findIcon( "debug" );
mTabContents = getUISceneNode()->loadLayoutFromString( STYLE );
mTabContents =
getUISceneNode()->loadLayoutFromString( STYLE, nullptr, String::hash( "debugger_plugin" ) );
mTab = mSidePanel->add( i18n( "debugger", "Debugger" ), mTabContents,
icon ? icon->getSize( PixelDensity::dpToPx( 12 ) ) : nullptr );
mTab->setId( "debugger_tab" );
@@ -1706,7 +1707,14 @@ bool DebuggerPlugin::breakpointSetEnabled( const std::string& doc, Uint32 lineNu
auto breakpointIt = breakpoints.find( sb );
if ( breakpointIt != breakpoints.end() ) {
if ( enabled != breakpointIt->enabled ) {
#ifdef EEPP_NO_THIRDPARTY_CONTAINERS
SourceBreakpointStateful existingBreakpoint = *breakpointIt;
breakpoints.erase( breakpointIt );
existingBreakpoint.enabled = enabled;
breakpoints.insert( existingBreakpoint );
#else
breakpointIt->enabled = enabled;
#endif
mBreakpointsModel->enable( doc, lineNumber, enabled );
mThreadPool->run( [this, doc] { sendFileBreakpoints( doc ); } );
getUISceneNode()->getRoot()->invalidateDraw();