Define color for grid info

Need allow in future user select it by command (add palette)
pull/4/head
DiSlord 6 years ago
parent 8055682f57
commit 755ee83f26

@ -530,6 +530,7 @@ extern volatile uint8_t redraw_request;
#define DARK_GREY RGB565(140,140,140)
#define LIGHT_GREY RGB565(220,220,220)
#define DEFAULT_GRID_COLOR RGB565(128,128,128)
#define DEFAULT_GRID_VALUE_COLOR RGB565(196,196,196)
#define DEFAULT_MENU_COLOR RGB565(255,255,255)
#define DEFAULT_MENU_TEXT_COLOR RGB565( 0, 0, 0)
#define DEFAULT_MENU_ACTIVE_COLOR RGB565(180,255,180)

@ -1953,7 +1953,7 @@ static void cell_grid_line_info(int x0, int y0)
char buf[32];
int xpos = GRID_X_TEXT - x0;
int ypos = 0 - y0 + 2;
ili9341_set_foreground(/* DEFAULT_GRID_COLOR */ DEFAULT_MENU_COLOR );
ili9341_set_foreground(DEFAULT_GRID_VALUE_COLOR);
float ref = get_trace_refpos(TRACE_ACTUAL);
float scale = get_trace_scale(TRACE_ACTUAL);;
for (int i = 0; i < NGRIDY; i++){

@ -1042,7 +1042,7 @@ static void menu_settings2_cb(int item, uint8_t data)
toggle_AGC();
break;
case 2:
toggle_LNA();;
toggle_LNA();
break;
case 3:
toggle_tracking();

Loading…
Cancel
Save

Powered by TurnKey Linux.