|
KiCad PCB EDA Suite
|
Diff colors with defaults for light backgrounds. More...
#include <diff_scene.h>
Static Public Member Functions | |
| static DIFF_COLOR_THEME | ForText (bool aDarkTheme) |
| Resolve change colors for UI text. Pass the desktop theme captured on the UI thread. | |
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 ) |
Diff colors with defaults for light backgrounds.
Use ForText for status labels and text diffs.
Definition at line 277 of file diff_scene.h.
|
static |
Resolve change colors for UI text. Pass the desktop theme captured on the UI thread.
Definition at line 40 of file diff_scene.cpp.
References added, conflict, modified, and removed.
Referenced by BuildGitChangeEntries(), DIALOG_GIT_CREDENTIALS::DIALOG_GIT_CREDENTIALS(), FillTextDiffControl(), GIT_COMMIT_PANE::layoutWide(), and KIGIT::MarkDestructive().
| KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::added = KIGFX::COLOR4D( 0.20, 0.65, 0.20, 1.0 ) |
Definition at line 282 of file diff_scene.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), KICAD_DIFF::ConfigureSymDiffCanvasContext(), FillTextDiffControl(), ForText(), GIT_FILE_DIFF_AREA::GIT_FILE_DIFF_AREA(), GIT_COMMIT_PANE::layoutWide(), statusToDisplay(), and KICAD_DIFF::ThemeColorFor().
| KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::background = KIGFX::COLOR4D( 0.97, 0.97, 0.97, 1.0 ) |
Definition at line 286 of file diff_scene.h.
Referenced by KICAD_DIFF::RenderSceneToPng().
| KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::comparison = KIGFX::COLOR4D( 0.38, 0.38, 0.38, 0.55 ) |
Definition at line 293 of file diff_scene.h.
Referenced by SCH_INSPECTION_TOOL::CompareSchematicWithHistory(), KICAD_DIFF::EmitDiffResult(), EESCHEMA_JOBS_HANDLER::OpenDiffDialog(), PCBNEW_JOBS_HANDLER::OpenDiffDialog(), PCBNEW_JOBS_HANDLER::runPcbMerge(), EESCHEMA_JOBS_HANDLER::runSchMerge(), and SCH_INSPECTION_TOOL::showSchematicComparison().
| KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::conflict = KIGFX::COLOR4D( 0.65, 0.20, 0.70, 1.0 ) |
Definition at line 285 of file diff_scene.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ForText(), statusToDisplay(), and KICAD_DIFF::ThemeColorFor().
| KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::foreground = KIGFX::COLOR4D( 0.10, 0.10, 0.10, 1.0 ) |
Definition at line 287 of file diff_scene.h.
| KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::modified = KIGFX::COLOR4D( 0.85, 0.65, 0.10, 1.0 ) |
Definition at line 284 of file diff_scene.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), KICAD_DIFF::ConfigureSymDiffCanvasContext(), ForText(), GIT_FILE_DIFF_AREA::GIT_FILE_DIFF_AREA(), WIDGET_DIFF_CANVAS::HighlightChange(), statusToDisplay(), and KICAD_DIFF::ThemeColorFor().
| 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 292 of file diff_scene.h.
Referenced by EESCHEMA_JOBS_HANDLER::AttachDiffCanvases(), PCBNEW_JOBS_HANDLER::AttachDiffCanvases(), 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(), SCH_INSPECTION_TOOL::showSchematicComparison(), and SCH_DIFF_CANVAS_CONTEXT::~SCH_DIFF_CANVAS_CONTEXT().
| KIGFX::COLOR4D KICAD_DIFF::DIFF_COLOR_THEME::removed = KIGFX::COLOR4D( 0.80, 0.20, 0.20, 1.0 ) |
Definition at line 283 of file diff_scene.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), KICAD_DIFF::ConfigureSymDiffCanvasContext(), DIALOG_GIT_CREDENTIALS::DIALOG_GIT_CREDENTIALS(), FillTextDiffControl(), ForText(), GIT_FILE_DIFF_AREA::GIT_FILE_DIFF_AREA(), GIT_COMMIT_PANE::layoutWide(), KIGIT::MarkDestructive(), statusToDisplay(), and KICAD_DIFF::ThemeColorFor().