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

@@ -1447,10 +1447,10 @@ void GitPlugin::buildSidePanelTab() {
.git_highlight_style > treeview::cell::text {
color: %s;
}
treeview::row treeview::cell.git_highlight_style_clear,
treeview::row:selected .git_highlight_style > treeview::cell::text,
treeview::row:selected .git_highlight_style > treeview::cell::text {
color: var(--font);
color: var(--list-row-active);
tint: var(--list-row-active);
}
.git_highlight_style > treeview::cell::icon {
foreground-image: icon(circle, 8dpru), icon(circle-filled, 8dpru);
@@ -1488,7 +1488,10 @@ void GitPlugin::buildSidePanelTab() {
!mHighlightStyleColor.empty() && Color::isColorString( mHighlightStyleColor )
? mHighlightStyleColor
: std::string{ DEFAULT_HIGHLIGHT_COLOR };
mTabContents = getUISceneNode()->loadLayoutFromString( String::format( STYLE, color, color ) );
mTabContents = getUISceneNode()->loadLayoutFromString(
String::format( STYLE, color, color ), nullptr, String::hash( "git_plugin_style" ) );
mTab = mSidePanel->add( i18n( "source_control", "Source Control" ), mTabContents,
icon ? icon->getSize( PixelDensity::dpToPx( 12 ) ) : nullptr );
mTab->setId( "source_control_tab" );