mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user