Commit Graph

553 Commits

Author SHA1 Message Date
Jon Evans 44f88f840c Bitmaps: a few improvements from review 2021-03-11 08:37:35 -05:00
Jon Evans 18037e2f65 Rework bitmap system to load from archived PNGs
Bitmaps are now identified by an enum class instead of by pointers.
Bitmap loading and caching is now handled by a class in common, and
we no longer compile most bitmaps into the binary, so there is no
longer a bitmaps static library.

Instead, bitmaps are archived to a .tar.gz file which is installed
in ${KICAD_DATA}/resources/images.tar.gz

The source PNGs are checked in to Git as the original CPP files were,
so that people can build without the required dependencies to convert
SVGs to PNGs.

Initial support is also added for dark theme icons, although this
is not yet exposed in the GUI.

Stubs are present for multi-resolution image resources, but this is
not fully-baked yet and could use some refinement.
2021-03-11 08:37:35 -05:00
Jon Evans afc11ca771 Preliminary take on dark theme colors
Script added to generate dark theme from light.
Target colors can be adjusted and then icons can be
re-generated until we're happy with the starting point,
then individual icons can be tweaked.
2021-03-01 21:24:30 -05:00
Jon Evans ec2c5fa052 Initial cmake shuffling for dark icon theme 2021-03-01 21:24:30 -05:00
Jeff Young 739f43ee4d New rotate icons. 2021-02-22 17:35:46 +00:00
Seth Hillbrand 896188ca5e Align Mirror icons with color policy 2021-02-17 17:39:38 -08:00
Seth Hillbrand 25e78162c8 Cleanup icons
- Adjust group/ungroup
- Use Mirror triangles for rotate
- Smooth goto badge
2021-02-17 17:26:16 -08:00
Jeff Young 2a7e60960a Use standard mirror icons & terminology.
Also use standard group icons.

Also put both (and rotate commands) in toolbar.

Fixes https://gitlab.com/kicad/code/kicad/issues/7504
2021-02-16 21:11:36 +00:00
Michael Kavanagh 332fdee567 Remove now unused icons
Functionality removed in c2dbd28101
2021-02-06 22:51:56 +00:00
Michael Kavanagh 7cc28a5a02 Shrink appearance manager bitmap buttons to 16x16
Finish off 38cc2f106b
2021-02-06 22:51:56 +00:00
Michael Kavanagh 54cd66d778 Icons: make menubar and launcher consistent 2021-02-06 22:51:56 +00:00
Michael Kavanagh 69484c8800 Icons: increase contrast of project icons 2021-02-06 22:51:56 +00:00
Michael Kavanagh 404d18763d Icons: try a new version of the 'new' badge
and use it more consistently.
2021-02-06 22:51:56 +00:00
Michael Kavanagh 97775aa50b Icons: redo missed simulator icon in new style 2021-02-06 22:51:56 +00:00
Michael Kavanagh 8e74f4a98f Icons: pixel alignment 2021-02-06 22:51:56 +00:00
Michael Kavanagh 66bb6e2e7c Icons: make datasheet more distinct 2021-02-06 22:51:56 +00:00
Michael Kavanagh f7962cc73b Icons: pixel alignment 2021-02-06 22:51:56 +00:00
Jeff Young 38cc2f106b 16x16 versions of icons for the appearances panel. 2021-02-05 22:55:08 +00:00
Ian McInerney beb50c529e Reorganize the CMake folder to separate build and configure steps
The BuildSteps folder now contains the CMake scripts that are
called during the build process as individual stages, while
the root CMakeModules directory contains the CMake files used
during the configuration phase.
2021-01-28 00:24:22 +00:00
Seth Hillbrand 679a755690 Adjust how wire tool cursors are arranged
Moves the cross-hair active point to the bottom left to align with the
wire graphic

Fixes https://gitlab.com/kicad/code/kicad/issues/7278
2021-01-26 08:44:39 -08:00
Michael Kavanagh 1e61bd814e Icons: pixel align and increase contrast 2021-01-25 14:21:23 +00:00
Michael Kavanagh fe622b956a Icons: unify pin table and spreadsheet icons
+ use KiCad colour scheme
2021-01-25 14:21:22 +00:00
Michael Kavanagh 98814db118 Icons: make sure all footprints are the same 2021-01-25 14:21:22 +00:00
Michael Kavanagh 98b0558bf6 Icons: make sure all op-amps are the same
+ fix wrong icon in About dialog

Fixes https://gitlab.com/kicad/code/kicad/issues/7214
2021-01-25 14:21:22 +00:00
Michael Kavanagh 81ac5ec7c2 Icons: add colour to zone_fillet in DRC panel 2021-01-25 14:21:22 +00:00
Michael Kavanagh ccc3eeb3c3 Icons: delete old unused bitmap 2021-01-25 14:21:22 +00:00
Jeff Young 0ba0160da9 Add a PT_NIC pin electrical type and a netlist token for SCH_NO_CONNECT.
ADDED a new pin electrical type "free" for internally unconnected pins.

CHANGED the "unconnected" pin electrical type is now represented by
"no_connect" in files and netlists.  (The legacy syntax is also accepted
in files.)
2021-01-23 00:10:01 +00:00
qu1ck 07d4a28024 Improvements to pcbnew action plugins settings panel
1. Add open plugins directory button (same as in tools menu)
2. Add show plugin errors button to help debug issues
2021-01-20 09:09:53 +00:00
Michael Kavanagh 23b11f0090 Update stroke_* bitmaps to new colour scheme
+ fix SVG file formats
2021-01-19 22:57:25 +00:00
Michael Kavanagh 1750faac4b Icons: make copy/paste a bit more standard
+ Paste special shouldn't share an icon with paste
2021-01-19 22:57:25 +00:00
Michael Kavanagh 5db5781b42 Icons: make search_tree actually look like a tree 2021-01-19 22:57:25 +00:00
Michael Kavanagh 54f4a36fa6 Icons: centralise pad_number 2021-01-19 22:57:25 +00:00
Michael Kavanagh 9a6a8cac25 Icons: make import_vector more background agnostic 2021-01-19 22:57:25 +00:00
Michael Kavanagh 0280a61a64 Icons: tidy up badges
- Where white outlines are used, use a clipping mask to prevent ugly
artifacts.
 - Use new link in badges
 - Fix a couple of 26x26 icon sizes
 - Remove backgrounds from language.svg
2021-01-19 22:57:25 +00:00
Michael Kavanagh 2fdd97cc44 Icons: tweak to avoid user bewilderment
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7073
2021-01-19 22:57:25 +00:00
Michael Kavanagh 80dbc24326 Icons: remove superfluous icon
Remove icons where menu text gives context
2021-01-19 22:57:25 +00:00
Michael Kavanagh 02594dfcca Icons: pixel align move_* 2021-01-19 22:57:25 +00:00
Michael Kavanagh 9418a15ce3 Icons: pixel align unit_* arrows 2021-01-19 22:57:24 +00:00
Michael Kavanagh c9aa07aaf0 Icons: unify zone display/duplicate with add zone 2021-01-19 22:57:24 +00:00
Michael Kavanagh b90eabd68b Icons: out with the old, in with the new
+ remove icons where they dont make sense or are duplicated within the
same context
2021-01-19 22:57:24 +00:00
Michael Kavanagh 09415560d8 Fix comment 2021-01-19 22:57:24 +00:00
Michael Kavanagh 8a1a1aba5d Icons: lighten up hierarchy navigator a bit 2021-01-11 23:31:25 +00:00
Michael Kavanagh a00b9cc821 Icons: general tweaks and pixel alignment
+ minor rename
+ fix missing bitmap in DRC panel
2021-01-11 23:31:25 +00:00
Michael Kavanagh dc83cb7a41 Icons: general tweaks and pixel alignment
+ remove some unused icons
2021-01-11 23:31:25 +00:00
Michael Kavanagh 0a50e0d4be Icons: defeature and refine Fill/Unfill Zone 2021-01-11 23:31:25 +00:00
Michael Kavanagh 9e23e3e56a Icons: improved fabrication icon 2021-01-11 23:31:25 +00:00
Michael Kavanagh 32f7f30958 Icons: remove where they don't make sense
Also avoid icon reuse
2021-01-11 23:31:25 +00:00
Michael Kavanagh 8fba0c257b Icons: remove more inconsistencies around Select
Missed from 5d9b2d3fea
2021-01-11 23:31:24 +00:00
Michael Kavanagh bc52d7413c Icons: we have new ones, so lets use them 2021-01-11 23:31:24 +00:00
Seth Hillbrand 43e7b1ab6e Set icons for front/back assembly layers 2021-01-06 13:49:00 -08:00
Michael Kavanagh 2a24886d47 Icons: remove more duplicates 2021-01-06 00:35:20 +00:00
Michael Kavanagh 3f640d8821 Icons: use new link symbol in pin2pin 2021-01-06 00:35:20 +00:00
Michael Kavanagh 6fd718fbd8 Icons: replace old with new 2021-01-06 00:35:20 +00:00
Michael Kavanagh a640d7b43c Icons: unify op-amp in icons
+ new icon for symbol-library links
+ new icon for edit symbol's footprint
2021-01-06 00:35:20 +00:00
Michael Kavanagh fc60f611f6 Icons: use 2px line thickness in break_line 2021-01-06 00:35:20 +00:00
Michael Kavanagh 50886a968d Icons: simplify enter and leave sheet
The menubar text and toolbar placement give ample context, so there is
no need to repeat the hierarchy tree icon in both.
2021-01-06 00:35:20 +00:00
Michael Kavanagh ef8c3650b7 Icons: minor tweaks to Find/Find and Replace
Flip find magnifying glass to differentiate from zoom
2021-01-06 00:35:20 +00:00
Michael Kavanagh 60eeeb8412 Icons: delete unused sources 2021-01-06 00:35:20 +00:00
Michael Kavanagh 5d9b2d3fea Icons: new filter icon
+ remove icons where they don't make sense.
2021-01-06 00:35:20 +00:00
Michael Kavanagh adc10ac6c5 Icons: remove superfluous grey 2021-01-06 00:35:20 +00:00
Michael Kavanagh 54724096ea Icons: consistency between Eeschema and Pcbnew 2021-01-06 00:35:20 +00:00
Seth Hillbrand 68240821d4 Make Linux/Mac cursors black again
This makes cursor color conditional on the system default.  Some themes
in Linux and all Macs are black cursor on white background.
2021-01-05 09:47:17 -08:00
Seth Hillbrand 52cc5e2df1 Shrink pencil pixels 2021-01-05 09:22:23 -08:00
Seth Hillbrand 72033e41f8 Update cursors to avoid confusion
Increases cross size and moves the line decorators up to prevent
inadvertent assumptions of the cursor hotspot

Fixes https://gitlab.com/kicad/code/kicad/issues/6939
2021-01-05 09:01:23 -08:00
Michael Kavanagh 2b9f7d6150 Icons: defeature and enlarge distribute_*
These look better alongside the align icons
2021-01-04 01:44:02 +00:00
Michael Kavanagh 59429d0280 Icons: minor tweaks
- Pixel alignment
 - Remove grey background
2021-01-04 01:44:02 +00:00
Michael Kavanagh e3fb87bad9 Icons: unify all the directory/folder/open icons
They have diverged a bit, so this brings them all back in line
2021-01-04 01:44:02 +00:00
Michael Kavanagh 4726ae72a4 Icons: defeature and align scripting toolbar icon 2021-01-04 01:44:02 +00:00
Michael Kavanagh c31f3e26d4 Icons: align schematic and board setup for toolbar 2021-01-04 01:44:02 +00:00
Michael Kavanagh e977f59b04 Icons: standardise refresh to be clockwise 2021-01-04 01:44:02 +00:00
Michael Kavanagh a7286ccc34 Icons: remove functional duplicate 2021-01-04 01:44:01 +00:00
Michael Kavanagh bce1e9cfa5 Icons: rename directory_close to project_close
Since it is only used for the "Close Project" action
2021-01-04 01:44:01 +00:00
Michael Kavanagh 154e19b6e7 Icons: use common prefix for small 16x16 2021-01-02 23:16:33 +00:00
Michael Kavanagh c7eb4e1893 Icons: fix up small 16x16 icons to match set
Size, padding, colour etc.
2021-01-02 23:16:33 +00:00
Michael Kavanagh ea8065b212 Icons: conform to KiCad style
- Stroke width: 2px
 - Stroke cap: round
 - Padding
 - Pixel alignment
2021-01-02 23:16:33 +00:00
Michael Kavanagh 4af5e5313f Icons: remove coloured strip from Save/Save As 2021-01-02 23:16:33 +00:00
Michael Kavanagh 9140f0c16f Icons: more eradication of light grey
Use dark grey instead
2021-01-02 23:16:33 +00:00
Michael Kavanagh 791d1f513c Icons: fix some 3D viewer icons
- remove old palette icon in favour of new one
 - use dark grey in new icon (instead of light grey)
 - use generic gear for 3D display options
2021-01-02 23:16:33 +00:00
Michael Kavanagh 5a3f4f52df Icons: add new icon for Pcbnew 'Special Tools...' 2021-01-02 23:16:33 +00:00
Michael Kavanagh 6d3c1c7716 Icons: remove unused sources/duplicates + rename 2021-01-02 23:16:33 +00:00
Seth Hillbrand a69a4be853 Fix build error with icon names 2021-01-01 13:13:33 -08:00
Seth Hillbrand f06b912cfd Fix a few missing icons 2021-01-01 13:06:22 -08:00
Seth Hillbrand 72fad815a3 Normalize zip/unzip boxes 2021-01-01 11:55:48 -08:00
Seth Hillbrand 6b9b686168 Fix Autoplace fields size 2021-01-01 11:50:51 -08:00
Seth Hillbrand 9c26500f6f Fix show_footprint to use new set 2021-01-01 11:45:36 -08:00
Seth Hillbrand 21e0aa7cb5 Remove file_footprint icon 2021-01-01 11:43:28 -08:00
Seth Hillbrand da687ebe1e Unify zone fill/unfill/add icons 2021-01-01 11:23:41 -08:00
Seth Hillbrand d85c32cad3 Update spreadsheet icon 2021-01-01 11:06:56 -08:00
Seth Hillbrand 5a0c3bf4bc Icons updates
- Remove 22px bitmaps
- Move 24px icons to icon_XXX_24 filenames
- Update convert icon thanks to MisterHW

Fixes https://gitlab.com/kicad/code/kicad/issues/6088
2021-01-01 11:00:15 -08:00
Jon Evans 4ebe10c343 Update list_nets icon 2020-12-27 19:38:08 -05:00
Michael Kavanagh eb1f07bade Icons: standardise `export_png` to match set 2020-12-24 01:02:03 +00:00
Michael Kavanagh d2018b122b Icons: unify export_svg with the rest of the set 2020-12-24 01:02:02 +00:00
Michael Kavanagh 0ecc8b0bc0 Icons: only use white outline between dark areas
When viewed against a dark background, this icon stuck out due to the
continuous white outline. This change removes the white line around
the outside edges, keeping only the internal segments.
2020-12-24 01:02:02 +00:00
Michael Kavanagh 2d84c45e56 Icons: update `export.svg` to match set 2020-12-24 01:02:02 +00:00
Michael Kavanagh 9430993ab8 Icons: pixel align image.svg
Also resize to 24x24
2020-12-24 01:02:02 +00:00
Michael Kavanagh a458ad418c Icons: update `import.svg` to match set 2020-12-24 01:02:02 +00:00
Michael Kavanagh 6489781408 Icons: use correct icons for show/hide ratsnest
- Remove old icon remnants
 - Recolour show/hide_ratsnest to match KiCad style
2020-12-24 01:02:02 +00:00
Michael Kavanagh 7081f6d715 Icons: Remove unused sources
mw_toolbar button has been replaced by toolbar palettes
auto_associe replaced by auto_associate in new set
2020-12-24 01:02:02 +00:00
Seth Hillbrand 61ac9c8d90 Add multiple size icons for programs
In theory, the WM should now choose the closest size icon for its
purpose, making it easier to distinguish in space-constrained settings

Fixes https://gitlab.com/kicad/code/kicad/issues/6798
2020-12-22 15:37:26 -08:00
Seth Hillbrand 9828f56c08 Avoid overwriting icons of same name
Generating sized icons is useful for icon sets but the icons can't be
named the same or we will overwrite our .cpp output
2020-12-22 15:32:14 -08:00