1
0
Fork 0
forked from Miroirs/x49gp

Compare commits

...

2 commits

Author SHA1 Message Date
Gwenhael Le Moine
fb9f500842
1.2.0 2024-11-07 22:52:08 +01:00
Gwenhael Le Moine
ca9bc1eac1
style UI using a global (hardcoded) CSS style; fix _tiny_text_width(); better annunciators 2024-11-07 22:50:31 +01:00
3 changed files with 351 additions and 502 deletions

View file

@ -2,7 +2,7 @@ TARGET = x49gpng
TARGET_ALLCAPS = X49GPNG TARGET_ALLCAPS = X49GPNG
VERSION_MAJOR = 1 VERSION_MAJOR = 1
VERSION_MINOR = 1 VERSION_MINOR = 2
PATCHLEVEL = 0 PATCHLEVEL = 0
# #

File diff suppressed because it is too large Load diff

View file

@ -7,8 +7,6 @@
#include "x49gp_types.h" #include "x49gp_types.h"
#define LCD_PIXEL_SCALE 2
typedef enum { typedef enum {
UI_COLOR_BLACK = 0, UI_COLOR_BLACK = 0,
UI_COLOR_WHITE, UI_COLOR_WHITE,
@ -47,25 +45,23 @@ typedef enum {
} x49gp_ui_calculator_t; } x49gp_ui_calculator_t;
typedef struct { typedef struct {
const char* css_class;
const char* label; const char* label;
const char* letter; const char* letter;
const char* left; const char* left;
const char* right; const char* right;
const char* below; const char* below;
x49gp_ui_color_t color;
double font_size;
cairo_font_weight_t font_weight;
double letter_size;
int x; int x;
int y; int y;
int width; int width;
int height; int height;
int column; int column;
int row; int row;
unsigned char columnbit; unsigned char columnbit;
unsigned char rowbit; unsigned char rowbit;
int eint; int eint;
x49gp_ui_color_t bg_color;
} x49gp_ui_key_t; } x49gp_ui_key_t;
typedef struct { typedef struct {