Seth Hillbrand
a206f6717d
Desaturate the symbols in DNP for print/plot
The desaturation should match screen display
Fixes https://gitlab.com/kicad/code/kicad/issues/13481
3 years ago
Jeff Young
c0a666507c
Work around more instances of the wxWidgets color string locale bug.
Fixes https://gitlab.com/kicad/code/kicad/issues/12552
3 years ago
Jeff Young
7386e64923
Attempt to work-around wxWidgets bug with Serbian & Russian locales.
Fixes https://gitlab.com/kicad/code/kicad/issues/12002
Fixes https://gitlab.com/kicad/code/kicad/issues/11963
3 years ago
Marek Roszko
1f8d101b1d
Fix color4d distance return type
4 years ago
Seth Hillbrand
26c0a78947
Plot pads in layer color
v6 pads are not allowed to be a different color from the rest of the
copper layer, so don't query the GAL layer for a color
Fixes https://gitlab.com/kicad/code/kicad/issues/10293
(cherry picked from commit bfca928900 )
4 years ago
Seth Hillbrand
78ff9a857a
Jerry-rig HTML-format alpha parsing
On wx3.0, the HTML format #RRGGBBAA cannot handle the alpha channel.
Instead, we route this through a COLOR4D routine when we need to use
these colors
Fixes https://gitlab.com/kicad/code/kicad/issues/9963
4 years ago
Jeff Young
6197717251
Avoid poor choices for point colors.
Also adjusts the point size to account for the fact that it now has a border.
4 years ago
Jeff Young
641a6902b7
More robust hex-color interpretation.
4 years ago
Jeff Young
e58671e2da
Move color picker from CSS to HTML format for colors.
This is an attempt to remove the decimal separator from the equation,
which appears to be causing trouble on MSW.
Fixes https://gitlab.com/kicad/code/kicad/issues/9043
4 years ago
Wayne Stambaugh
89b1fdabe9
Pass COLOR4D object by reference instead of on the stack.
4 years ago
Seth Hillbrand
11438eb0ec
Add standard wire orange and correct color init
Initialized COLOR4D takes an EDA_COLOR_T enum but then referenced it as
an index to the color table. This uses the enum as comparison against
the table-stored enum.
Adds standard orange to picker swatches
5 years ago
jean-pierre charras
10990f8e81
Fix a minor compil and a minor Coverity warnings.
5 years ago
Jon Evans
c388bf0f92
Update default color theme
Blue is the new green :)
ADDED: built-in read-only color themes support
Classic theme is still available for those who love it
Fixes https://gitlab.com/kicad/code/kicad/-/issues/1991
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4259
5 years ago
Jon Evans
5d118b0700
More visibility settings infrastructure
ADDED: Three-state high contrast mode action
ADDED: Save contrast mode in local settings
Also some initial infrastructure for layer presets
5 years ago
Ian McInerney
5b3d947b7e
Fix initialization order fiasco with colors
The legacy color refs are needed by the COLOR4D constructor
when constructing a static variable, so they can't be static
themselves.
5 years ago
Jon Evans
e91b9f6dfb
Rip out the unused leftovers of the old color system
5 years ago
Jeff Young
b067e441c7
Show/hide sheet colors when flipping override flag.
6 years ago
Jon Evans
e59a3d981e
Implement a new settings framework across all of KiCad
CHANGED: Settings are now stored in versioned sub-directories
ADDED: First-run dialog for migrating settings from a previous version
CHANGED: Settings are now stored as JSON files instead of wxConfig-style INI files
CHANGED: Color settings are now all stored in a separate settings file
CHANGED: The symbol editor and footprint editor now have their own settings files
CHANGED: Color settings are no longer exposed through BOARD object
CHANGED: Page layout editor now uses Eeschema's color scheme
Settings are now managed through a central SETTINGS_MANAGER held by PGM_BASE.
Existing settings will be migrated from the wxConfig format on first run of each application.
Per-application settings are now stored in one class for each application.
6 years ago
Ian McInerney
920120864f
Fix initialization of COLOR4D statics
Just declaring as static const would give an initialization order
fiasco since they were being used to initialize other statics.
6 years ago
Jeff Young
7553cc2651
Clean up some dangling legacy odds and ends.
7 years ago
Seth Hillbrand
7b3ef1b7ed
colors: Add HSL conversion and tune colors
When adding colors to length tuner, we depend on the window background
color, which can be set by the user, resulting in an unreadable text.
This uses the HSL conversion to detect which shade it should use for the
coloring.
Also adds test cases for round-trip HSL and HSV conversion
Fixes: lp:1814530
* https://bugs.launchpad.net/kicad/+bug/1814530
7 years ago
John Beard
4c355c32d3
Fix rounding in COLOR4D::ToColour
Due to the implicit floor of the cast from double to unsigned char,
there was a small rounding error in COLOUR4D's WX conversion function.
This fixes the failing tests.
Also make the cast to unsigned char explicit.
7 years ago
jean-pierre charras
0dfd0c5f52
Minot cosmetic enhancement
7 years ago
Ronnie Gaensli
ab1f016132
Fix assert freeze of eeschema when ToHSV, h is Nan
Fixes: lp:1797006
* https://bugs.launchpad.net/kicad/+bug/1797006
7 years ago
Jeff Young
99e659ff54
Coverity fixes.
8 years ago
Jon Evans
0564d3456b
Preserve color scheme when switching to legacy (Fixes lp:1670669)
Instead of modifying the colors when switching to legacy canvas,
they will now be preserved and only returned as the "legacy" colors.
8 years ago
jean-pierre charras
5f4599fb56
Add a new color selector, to adjust color selection for GAL mode, with support of opacity (alpha channel)
Pcbnew: save opacity value in color config, and keep it when switching between legacy and gal mode.
8 years ago
jean-pierre charras
ed66496242
Fix an issue (created by commit 16cb6a6ca0) when converting a color4D to a legacy color
Fixes: lp:1704724
https://bugs.launchpad.net/kicad/+bug/1704724
8 years ago
jean-pierre charras
16cb6a6ca0
color4d: fix incorrect conversion from rgb to HSV when r = g = b.
8 years ago
Jon Evans
8cd1df0524
Add output stream operator for COLOR4D
9 years ago
jean-pierre charras
04d1b2fca7
fix incorrect COLOR4D::COLOR4D( EDA_COLOR_T aColor ) ctor for UNDEFINED_COLOR
9 years ago
jean-pierre charras
2f24b31b28
simplify color calculation.
9 years ago
jean-pierre charras
1f345052cd
Fix erroneous conversion between wxColor and COLOR4D
9 years ago
Maciej Suminski
0dc88bb4cf
Changed COLOR4D defines to static consts
9 years ago
Jon Evans
a52250a91e
Change from EDA_COLOR_T to COLOR4D globally; arbitrary color support
eeschema now supports arbitrary colors for all object types, and
pcbnew does in GAL canvas. When switching from GAL to legacy canvas,
pcbnew will convert colors to the nearest legacy color.
9 years ago
Maciej Suminski
0ac3e1fbf2
Namespace KiGfx->KIGFX.
template<> -> template <>
Some more reformatting according to uncrustify results.
12 years ago
Maciej Suminski
22045b61ea
Converted tabs to spaces. Removed trailing whitespaces.
12 years ago
tomasz.wlostowski@cern.ch
c3759d870c
COLOR4D: added Saturate(), FromHSV(), ToHSV() methods.
Used in highlighting/routing code.
12 years ago
Maciej Suminski
7d4aed1099
Fixed COLOR4D( EDA_COLOR_T aColor ) and added asserts.
12 years ago
Maciej Suminski
81c674387e
Added convertsion from wxColour to COLOR4D.
13 years ago
Maciej Suminski
f7d85691c2
Added conversion from EDA_COLOR_T to COLOR4D.
13 years ago
Maciej Suminski
ad4bf38e7a
Added class COLOR4D that contains color representation with 4 components (RGBA) (for future usage in GAL)
13 years ago
jean-pierre charras
a8ebad2fc4
Gerbview: added: image polarity, axis select, layer rotation. Code cleanup.
15 years ago
jerryjacobs
17dd0e2766
Big cleanup of sourcetree root structure, added Documentation subfolder, moved packaging stuff for osx and windows (nsis) to packaging.
16 years ago
jerryjacobs
062bbfe1c3
17 years ago
dickelbeck
4ce6de82fc
added copyright.h for review
18 years ago