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

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 )
 

Detailed Description

Diff colors with defaults for light backgrounds.

Use ForText for status labels and text diffs.

Definition at line 277 of file diff_scene.h.

Member Function Documentation

◆ ForText()

DIFF_COLOR_THEME KICAD_DIFF::DIFF_COLOR_THEME::ForText ( bool aDarkTheme)
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().

Member Data Documentation

◆ added

◆ background

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().

◆ 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 287 of file diff_scene.h.

◆ modified

◆ reference

◆ removed


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