1
0
Fork 0
forked from Miroirs/x49gp

style UI using a global (hardcoded) CSS style; fix _tiny_text_width(); better annunciators

This commit is contained in:
Gwenhael Le Moine 2024-11-07 22:50:31 +01:00
parent 2d0aa0a987
commit ca9bc1eac1
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 350 additions and 501 deletions

File diff suppressed because it is too large Load diff

View file

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