KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KICAD_DIFF::DIFF_COLOR_THEME Struct Reference

Color theme. More...

#include <diff_scene.h>

Public Attributes

KIGFX::COLOR4D added = KIGFX::COLOR4D( 0.20, 0.65, 0.20, 1.0 )
 
KIGFX::COLOR4D removed = KIGFX::COLOR4D( 0.80, 0.20, 0.20, 1.0 )
 
KIGFX::COLOR4D modified = KIGFX::COLOR4D( 0.85, 0.65, 0.10, 1.0 )
 
KIGFX::COLOR4D conflict = KIGFX::COLOR4D( 0.65, 0.20, 0.70, 1.0 )
 
KIGFX::COLOR4D background = KIGFX::COLOR4D( 0.97, 0.97, 0.97, 1.0 )
 
KIGFX::COLOR4D foreground = KIGFX::COLOR4D( 0.10, 0.10, 0.10, 1.0 )
 
KIGFX::COLOR4D reference = KIGFX::COLOR4D( 0.38, 0.38, 0.38, 0.55 )
 Default color for source-document context geometry.
 
KIGFX::COLOR4D comparison = KIGFX::COLOR4D( 0.38, 0.38, 0.38, 0.55 )
 

Detailed Description

Color theme.

Defaults are tuned for light backgrounds; the interactive widget overrides per the user's theme.

Definition at line 275 of file diff_scene.h.

Member Data Documentation

◆ added

KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::added = KIGFX::COLOR4D( 0.20, 0.65, 0.20, 1.0 )

◆ background

KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::background = KIGFX::COLOR4D( 0.97, 0.97, 0.97, 1.0 )

Definition at line 281 of file diff_scene.h.

Referenced by KICAD_DIFF::RenderSceneToPng().

◆ comparison

◆ conflict

KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::conflict = KIGFX::COLOR4D( 0.65, 0.20, 0.70, 1.0 )

◆ foreground

KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::foreground = KIGFX::COLOR4D( 0.10, 0.10, 0.10, 1.0 )

Definition at line 282 of file diff_scene.h.

◆ modified

◆ reference

KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::reference = KIGFX::COLOR4D( 0.38, 0.38, 0.38, 0.55 )

Default color for source-document context geometry.

Both sides share this neutral grey so common board elements recede behind colored added/removed/modified overlays.

Definition at line 287 of file diff_scene.h.

Referenced by SCH_INSPECTION_TOOL::CompareSchematicWithHistory(), KICAD_DIFF::ConfigureSymDiffCanvasContext(), KICAD_DIFF::EmitDiffResult(), EESCHEMA_JOBS_HANDLER::OpenDiffDialog(), PCBNEW_JOBS_HANDLER::OpenDiffDialog(), PCBNEW_JOBS_HANDLER::runPcbMerge(), EESCHEMA_JOBS_HANDLER::runSchMerge(), and SCH_INSPECTION_TOOL::showSchematicComparison().

◆ removed

KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::removed = KIGFX::COLOR4D( 0.80, 0.20, 0.20, 1.0 )

The documentation for this struct was generated from the following file: