2016-07-23 06:48:59 +03:00
|
|
|
/*
|
|
|
|
* style.h - FIG drawing style
|
|
|
|
*
|
|
|
|
* Written 2016 by Werner Almesberger
|
|
|
|
* Copyright 2016 by Werner Almesberger
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef STYLE_H
|
|
|
|
#define STYLE_H
|
|
|
|
|
2016-07-25 04:57:52 +03:00
|
|
|
#define COLOR_NONE -1
|
2016-07-23 06:48:59 +03:00
|
|
|
#define COLOR_BLACK 0
|
|
|
|
#define COLOR_BLUE 1
|
2016-07-25 04:57:52 +03:00
|
|
|
#define COLOR_YELLOW 6
|
2016-07-23 06:48:59 +03:00
|
|
|
#define COLOR_GREEN4 12
|
2016-07-23 20:59:37 +03:00
|
|
|
#define COLOR_CYAN3 16
|
2016-07-23 06:48:59 +03:00
|
|
|
#define COLOR_RED4 18
|
|
|
|
#define COLOR_RED3 19
|
|
|
|
|
|
|
|
#define COLOR_COMP_DWG COLOR_RED4
|
2016-07-25 04:57:52 +03:00
|
|
|
#define COLOR_COMP_DWG_BG COLOR_YELLOW
|
2016-07-23 06:48:59 +03:00
|
|
|
#define COLOR_SHEET_DWG COLOR_BLUE
|
2016-07-23 20:59:37 +03:00
|
|
|
#define COLOR_TEXT COLOR_BLUE
|
2016-07-23 06:48:59 +03:00
|
|
|
#define COLOR_WIRE COLOR_GREEN4
|
2016-07-24 07:03:23 +03:00
|
|
|
#define COLOR_NOCONN COLOR_BLUE
|
2016-07-23 12:58:21 +03:00
|
|
|
#define COLOR_GLABEL COLOR_RED4
|
2016-07-25 06:16:09 +03:00
|
|
|
#define COLOR_LABEL COLOR_BLACK
|
2016-07-23 20:59:37 +03:00
|
|
|
#define COLOR_FIELD COLOR_CYAN3
|
2016-07-24 04:52:15 +03:00
|
|
|
#define COLOR_PIN_NAME COLOR_FIELD
|
2016-07-25 05:26:54 +03:00
|
|
|
#define COLOR_PIN_NUMBER COLOR_RED4
|
2016-07-23 06:48:59 +03:00
|
|
|
|
|
|
|
#define FONT_HELVETICA_BOLD 18
|
|
|
|
|
2016-07-23 20:59:37 +03:00
|
|
|
#define LAYER_GLABEL 20
|
2016-07-25 06:16:09 +03:00
|
|
|
#define LAYER_LABEL LAYER_GLABEL
|
2016-07-23 06:48:59 +03:00
|
|
|
#define LAYER_TEXT 30
|
2016-07-24 07:03:23 +03:00
|
|
|
#define LAYER_NOCONN 40
|
2016-07-23 06:48:59 +03:00
|
|
|
#define LAYER_WIRES 50
|
2016-07-23 20:59:37 +03:00
|
|
|
#define LAYER_FIELD 60
|
2016-07-24 04:52:15 +03:00
|
|
|
#define LAYER_PIN_NAME LAYER_FIELD
|
|
|
|
#define LAYER_PIN_NUMBER LAYER_FIELD
|
2016-07-23 20:59:37 +03:00
|
|
|
#define LAYER_LINES 100
|
|
|
|
#define LAYER_COMP_DWG 120
|
2016-07-25 04:57:52 +03:00
|
|
|
#define LAYER_COMP_DWG_BG 200
|
2016-07-23 06:48:59 +03:00
|
|
|
|
|
|
|
#define WIDTH_WIRE 2
|
|
|
|
#define WIDTH_LINE 2
|
|
|
|
#define WIDTH_COMP_DWG 2
|
|
|
|
|
2016-07-25 06:51:03 +03:00
|
|
|
#define JUNCTION_R 30
|
2016-07-23 06:48:59 +03:00
|
|
|
|
2016-07-24 07:03:23 +03:00
|
|
|
#define NOCONN_LEN 25
|
|
|
|
|
2016-07-25 06:16:09 +03:00
|
|
|
#define LABEL_OFFSET 15 // eeschema has more like 10
|
2016-07-23 21:07:50 +03:00
|
|
|
#define GLABEL_OFFSET 20
|
2016-07-25 06:16:09 +03:00
|
|
|
#define PIN_NUM_OFFSET 15 // eeschema has more like 10
|
2016-07-23 21:07:50 +03:00
|
|
|
|
2016-07-23 06:48:59 +03:00
|
|
|
#endif /* !STYLE_H */
|