1
0
Fork 0
forked from Miroirs/x49gp

Compare commits

..

2 commits

Author SHA1 Message Date
Gwenhael Le Moine
0f9dffe8ea
fix width, simplify css classes naming, lighter 𝓍 2024-11-10 10:37:23 +01:00
Gwenhael Le Moine
7cf50df624
-duplicate 2024-11-10 10:20:45 +01:00

View file

@ -35,9 +35,6 @@
#define KB_WIDTH_6_KEYS 36 #define KB_WIDTH_6_KEYS 36
#define KB_WIDTH_5_KEYS 46 #define KB_WIDTH_5_KEYS 46
#define KB_WIDTH_6_KEYS 36
#define KB_WIDTH_5_KEYS 46
#define KB_HEIGHT_MENU_KEYS 22 #define KB_HEIGHT_MENU_KEYS 22
#define KB_HEIGHT_SMALL_KEYS 28 #define KB_HEIGHT_SMALL_KEYS 28
#define KB_HEIGHT_BIG_KEYS 32 #define KB_HEIGHT_BIG_KEYS 32
@ -58,12 +55,12 @@
#define KEYBOARD_PADDING ( TINY_TEXT_HEIGHT + 2 ) #define KEYBOARD_PADDING ( TINY_TEXT_HEIGHT + 2 )
#define KEYBOARD_WIDTH ( ui_keys[ NB_KEYS - 1 ].x + ui_keys[ NB_KEYS - 1 ].width ) #define KEYBOARD_WIDTH ( ui_keys[ NB_KEYS - 1 ].x + ui_keys[ NB_KEYS - 1 ].width )
#define WINDOW_WIDTH ( ( 2 * KEYBOARD_PADDING ) + KEYBOARD_WIDTH ) #define WINDOW_WIDTH ( KEYBOARD_WIDTH )
#define LCD_PADDING ( ( WINDOW_WIDTH - LCD_WIDTH ) / 2 ) #define LCD_PADDING ( ( WINDOW_WIDTH - LCD_WIDTH ) / 2 )
static x49gp_ui_key_t ui_keys[ NB_KEYS ] = { static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
{.css_class = "button-menu", {.css_class = "menu",
.label = "F1", .label = "F1",
.letter = "A", .letter = "A",
.left = "Y=", .left = "Y=",
@ -78,7 +75,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 5 ), .columnbit = ( 1 << 5 ),
.rowbit = ( 1 << 1 ), .rowbit = ( 1 << 1 ),
.eint = 1}, .eint = 1},
{.css_class = "button-menu", {.css_class = "menu",
.label = "F2", .label = "F2",
.letter = "B", .letter = "B",
.left = "WIN", .left = "WIN",
@ -93,7 +90,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 5 ), .columnbit = ( 1 << 5 ),
.rowbit = ( 1 << 2 ), .rowbit = ( 1 << 2 ),
.eint = 2}, .eint = 2},
{.css_class = "button-menu", {.css_class = "menu",
.label = "F3", .label = "F3",
.letter = "C", .letter = "C",
.left = "GRAPH", .left = "GRAPH",
@ -108,7 +105,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 5 ), .columnbit = ( 1 << 5 ),
.rowbit = ( 1 << 3 ), .rowbit = ( 1 << 3 ),
.eint = 3}, .eint = 3},
{.css_class = "button-menu", {.css_class = "menu",
.label = "F4", .label = "F4",
.letter = "D", .letter = "D",
.left = "2D/3D", .left = "2D/3D",
@ -123,7 +120,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 5 ), .columnbit = ( 1 << 5 ),
.rowbit = ( 1 << 4 ), .rowbit = ( 1 << 4 ),
.eint = 4}, .eint = 4},
{.css_class = "button-menu", {.css_class = "menu",
.label = "F5", .label = "F5",
.letter = "E", .letter = "E",
.left = "TBLSET", .left = "TBLSET",
@ -138,7 +135,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 5 ), .columnbit = ( 1 << 5 ),
.rowbit = ( 1 << 5 ), .rowbit = ( 1 << 5 ),
.eint = 5}, .eint = 5},
{.css_class = "button-menu", {.css_class = "menu",
.label = "F6", .label = "F6",
.letter = "F", .letter = "F",
.left = "TABLE", .left = "TABLE",
@ -154,7 +151,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.rowbit = ( 1 << 6 ), .rowbit = ( 1 << 6 ),
.eint = 6}, .eint = 6},
{.css_class = "button-function", {.css_class = "function",
.label = "APPS", .label = "APPS",
.letter = "G", .letter = "G",
.left = "FILES", .left = "FILES",
@ -162,82 +159,82 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.below = NULL, .below = NULL,
.x = 0, .x = 0,
.y = KB_LINE_HEIGHT, .y = KB_LINE_HEIGHT,
.width = KB_WIDTH_6_KEYS, .width = KB_WIDTH_5_KEYS,
.height = KB_HEIGHT_SMALL_KEYS, .height = KB_HEIGHT_SMALL_KEYS,
.column = 5, .column = 5,
.row = 7, .row = 7,
.columnbit = ( 1 << 5 ), .columnbit = ( 1 << 5 ),
.rowbit = ( 1 << 7 ), .rowbit = ( 1 << 7 ),
.eint = 7}, .eint = 7},
{.css_class = "button-function", {.css_class = "function",
.label = "MODE", .label = "MODE",
.letter = "H", .letter = "H",
.left = "CUSTOM", .left = "CUSTOM",
.right = "END", .right = "END",
.below = NULL, .below = NULL,
.x = KB_COLUMN_WIDTH_6_KEYS, .x = KB_COLUMN_WIDTH_5_KEYS,
.y = KB_LINE_HEIGHT, .y = KB_LINE_HEIGHT,
.width = KB_WIDTH_6_KEYS, .width = KB_WIDTH_5_KEYS,
.height = KB_HEIGHT_SMALL_KEYS, .height = KB_HEIGHT_SMALL_KEYS,
.column = 6, .column = 6,
.row = 5, .row = 5,
.columnbit = ( 1 << 6 ), .columnbit = ( 1 << 6 ),
.rowbit = ( 1 << 5 ), .rowbit = ( 1 << 5 ),
.eint = 5}, .eint = 5},
{.css_class = "button-function", {.css_class = "function",
.label = "TOOL", .label = "TOOL",
.letter = "I", .letter = "I",
.left = "i", .left = "i",
.right = "I", .right = "I",
.below = NULL, .below = NULL,
.x = 2 * KB_COLUMN_WIDTH_6_KEYS, .x = 2 * KB_COLUMN_WIDTH_5_KEYS,
.y = KB_LINE_HEIGHT, .y = KB_LINE_HEIGHT,
.width = KB_WIDTH_6_KEYS, .width = KB_WIDTH_5_KEYS,
.height = KB_HEIGHT_SMALL_KEYS, .height = KB_HEIGHT_SMALL_KEYS,
.column = 6, .column = 6,
.row = 6, .row = 6,
.columnbit = ( 1 << 6 ), .columnbit = ( 1 << 6 ),
.rowbit = ( 1 << 6 ), .rowbit = ( 1 << 6 ),
.eint = 6}, .eint = 6},
{.css_class = "button-function", {.css_class = "function",
.label = "VAR", .label = "VAR",
.letter = "J", .letter = "J",
.left = "UPDIR", .left = "UPDIR",
.right = "COPY", .right = "COPY",
.below = NULL, .below = NULL,
.x = 0, .x = 4 * KB_COLUMN_WIDTH_5_KEYS,
.y = 2 * KB_LINE_HEIGHT, .y = KB_LINE_HEIGHT,
.width = KB_WIDTH_6_KEYS, .width = KB_WIDTH_5_KEYS,
.height = KB_HEIGHT_SMALL_KEYS, .height = KB_HEIGHT_SMALL_KEYS,
.column = 6, .column = 6,
.row = 7, .row = 7,
.columnbit = ( 1 << 6 ), .columnbit = ( 1 << 6 ),
.rowbit = ( 1 << 7 ), .rowbit = ( 1 << 7 ),
.eint = 7}, .eint = 7},
{.css_class = "button-function", {.css_class = "function",
.label = "STO⏵", .label = "STO⏵",
.letter = "K", .letter = "K",
.left = "RCL", .left = "RCL",
.right = "CUT", .right = "CUT",
.below = NULL, .below = NULL,
.x = KB_COLUMN_WIDTH_6_KEYS, .x = 0,
.y = 2 * KB_LINE_HEIGHT, .y = 2 * KB_LINE_HEIGHT,
.width = KB_WIDTH_6_KEYS, .width = KB_WIDTH_5_KEYS,
.height = KB_HEIGHT_SMALL_KEYS, .height = KB_HEIGHT_SMALL_KEYS,
.column = 7, .column = 7,
.row = 1, .row = 1,
.columnbit = ( 1 << 7 ), .columnbit = ( 1 << 7 ),
.rowbit = ( 1 << 1 ), .rowbit = ( 1 << 1 ),
.eint = 1}, .eint = 1},
{.css_class = "button-function", {.css_class = "function",
.label = "NXT", .label = "NXT",
.letter = "L", .letter = "L",
.left = "PREV", .left = "PREV",
.right = "PASTE", .right = "PASTE",
.below = NULL, .below = NULL,
.x = 2 * KB_COLUMN_WIDTH_6_KEYS, .x = KB_COLUMN_WIDTH_5_KEYS,
.y = 2 * KB_LINE_HEIGHT, .y = 2 * KB_LINE_HEIGHT,
.width = KB_WIDTH_6_KEYS, .width = KB_WIDTH_5_KEYS,
.height = KB_HEIGHT_SMALL_KEYS, .height = KB_HEIGHT_SMALL_KEYS,
.column = 7, .column = 7,
.row = 2, .row = 2,
@ -245,68 +242,68 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.rowbit = ( 1 << 2 ), .rowbit = ( 1 << 2 ),
.eint = 2}, .eint = 2},
{.css_class = "button-arrow", {.css_class = "arrow",
.label = "", .label = "",
.letter = NULL, .letter = NULL,
.left = NULL, .left = NULL,
.right = NULL, .right = NULL,
.below = NULL, .below = NULL,
.x = 4 * KB_COLUMN_WIDTH_6_KEYS, .x = 3 * KB_COLUMN_WIDTH_5_KEYS,
.y = 0.75 * KB_LINE_HEIGHT, .y = KB_LINE_HEIGHT,
.width = KB_WIDTH_6_KEYS, .width = KB_WIDTH_5_KEYS,
.height = KB_HEIGHT_BIG_KEYS, .height = KB_HEIGHT_SMALL_KEYS,
.column = 6, .column = 6,
.row = 1, .row = 1,
.columnbit = ( 1 << 6 ), .columnbit = ( 1 << 6 ),
.rowbit = ( 1 << 1 ), .rowbit = ( 1 << 1 ),
.eint = 1}, .eint = 1},
{.css_class = "button-arrow", {.css_class = "arrow",
.label = "", .label = "",
.letter = NULL, .letter = NULL,
.left = NULL, .left = NULL,
.right = NULL, .right = NULL,
.below = NULL, .below = NULL,
.x = 3.25 * KB_COLUMN_WIDTH_6_KEYS, .x = 2 * KB_COLUMN_WIDTH_5_KEYS,
.y = 1.25 * KB_LINE_HEIGHT, .y = 2 * KB_LINE_HEIGHT,
.width = KB_WIDTH_6_KEYS, .width = KB_WIDTH_5_KEYS,
.height = KB_HEIGHT_BIG_KEYS, .height = KB_HEIGHT_SMALL_KEYS,
.column = 6, .column = 6,
.row = 2, .row = 2,
.columnbit = ( 1 << 6 ), .columnbit = ( 1 << 6 ),
.rowbit = ( 1 << 2 ), .rowbit = ( 1 << 2 ),
.eint = 2}, .eint = 2},
{.css_class = "button-arrow", {.css_class = "arrow",
.label = "", .label = "",
.letter = NULL, .letter = NULL,
.left = NULL, .left = NULL,
.right = NULL, .right = NULL,
.below = NULL, .below = NULL,
.x = 4 * KB_COLUMN_WIDTH_6_KEYS, .x = 3 * KB_COLUMN_WIDTH_5_KEYS,
.y = 1.75 * KB_LINE_HEIGHT, .y = 2 * KB_LINE_HEIGHT,
.width = KB_WIDTH_6_KEYS, .width = KB_WIDTH_5_KEYS,
.height = KB_HEIGHT_BIG_KEYS, .height = KB_HEIGHT_SMALL_KEYS,
.column = 6, .column = 6,
.row = 3, .row = 3,
.columnbit = ( 1 << 6 ), .columnbit = ( 1 << 6 ),
.rowbit = ( 1 << 3 ), .rowbit = ( 1 << 3 ),
.eint = 3}, .eint = 3},
{.css_class = "button-arrow", {.css_class = "arrow",
.label = "", .label = "",
.letter = NULL, .letter = NULL,
.left = NULL, .left = NULL,
.right = NULL, .right = NULL,
.below = NULL, .below = NULL,
.x = 4.78 * KB_COLUMN_WIDTH_6_KEYS, .x = 4 * KB_COLUMN_WIDTH_5_KEYS,
.y = 1.25 * KB_LINE_HEIGHT, .y = 2 * KB_LINE_HEIGHT,
.width = KB_WIDTH_6_KEYS, .width = KB_WIDTH_5_KEYS,
.height = KB_HEIGHT_BIG_KEYS, .height = KB_HEIGHT_SMALL_KEYS,
.column = 6, .column = 6,
.row = 4, .row = 4,
.columnbit = ( 1 << 6 ), .columnbit = ( 1 << 6 ),
.rowbit = ( 1 << 4 ), .rowbit = ( 1 << 4 ),
.eint = 4}, .eint = 4},
{.css_class = "button-function", {.css_class = "function",
.label = "HIST", .label = "HIST",
.letter = "M", .letter = "M",
.left = "CMD", .left = "CMD",
@ -321,7 +318,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 4 ), .columnbit = ( 1 << 4 ),
.rowbit = ( 1 << 1 ), .rowbit = ( 1 << 1 ),
.eint = 1}, .eint = 1},
{.css_class = "button-function", {.css_class = "function",
.label = "EVAL", .label = "EVAL",
.letter = "N", .letter = "N",
.left = "PRG", .left = "PRG",
@ -336,7 +333,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 3 ), .columnbit = ( 1 << 3 ),
.rowbit = ( 1 << 1 ), .rowbit = ( 1 << 1 ),
.eint = 1}, .eint = 1},
{.css_class = "button-function", {.css_class = "function",
.label = "'", .label = "'",
.letter = "O", .letter = "O",
.left = "MTRW", .left = "MTRW",
@ -351,7 +348,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 2 ), .columnbit = ( 1 << 2 ),
.rowbit = ( 1 << 1 ), .rowbit = ( 1 << 1 ),
.eint = 1}, .eint = 1},
{.css_class = "button-function", {.css_class = "function",
.label = "SYMB", .label = "SYMB",
.letter = "P", .letter = "P",
.left = "MTH", .left = "MTH",
@ -366,7 +363,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 1 ), .columnbit = ( 1 << 1 ),
.rowbit = ( 1 << 1 ), .rowbit = ( 1 << 1 ),
.eint = 1}, .eint = 1},
{.css_class = "button-function", {.css_class = "function",
.label = "", .label = "",
.letter = NULL, .letter = NULL,
.left = "DEL", .left = "DEL",
@ -382,7 +379,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.rowbit = ( 1 << 1 ), .rowbit = ( 1 << 1 ),
.eint = 1}, .eint = 1},
{.css_class = "button-function", {.css_class = "function",
.label = "Y<sup>x</sup>", .label = "Y<sup>x</sup>",
.letter = "Q", .letter = "Q",
.left = "𝑒<sup>x</sup>", .left = "𝑒<sup>x</sup>",
@ -397,11 +394,11 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 4 ), .columnbit = ( 1 << 4 ),
.rowbit = ( 1 << 2 ), .rowbit = ( 1 << 2 ),
.eint = 2}, .eint = 2},
{.css_class = "button-function", {.css_class = "function",
.label = "𝔁", .label = "𝓍",
.letter = "R", .letter = "R",
.left = "𝔁<sup>2</sup>", .left = "𝓍<sup>2</sup>",
.right = "<sup>x</sup>√y", .right = "<sup>x</sup>√𝓎",
.below = NULL, .below = NULL,
.x = KB_COLUMN_WIDTH_5_KEYS, .x = KB_COLUMN_WIDTH_5_KEYS,
.y = 4 * KB_LINE_HEIGHT, .y = 4 * KB_LINE_HEIGHT,
@ -412,7 +409,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 3 ), .columnbit = ( 1 << 3 ),
.rowbit = ( 1 << 2 ), .rowbit = ( 1 << 2 ),
.eint = 2}, .eint = 2},
{.css_class = "button-function", {.css_class = "function",
.label = "SIN", .label = "SIN",
.letter = "S", .letter = "S",
.left = "ASIN", .left = "ASIN",
@ -427,7 +424,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 2 ), .columnbit = ( 1 << 2 ),
.rowbit = ( 1 << 2 ), .rowbit = ( 1 << 2 ),
.eint = 2}, .eint = 2},
{.css_class = "button-function", {.css_class = "function",
.label = "COS", .label = "COS",
.letter = "T", .letter = "T",
.left = "ACOS", .left = "ACOS",
@ -442,7 +439,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 1 ), .columnbit = ( 1 << 1 ),
.rowbit = ( 1 << 2 ), .rowbit = ( 1 << 2 ),
.eint = 2}, .eint = 2},
{.css_class = "button-function", {.css_class = "function",
.label = "TAN", .label = "TAN",
.letter = "U", .letter = "U",
.left = "ATAN", .left = "ATAN",
@ -458,10 +455,10 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.rowbit = ( 1 << 2 ), .rowbit = ( 1 << 2 ),
.eint = 2}, .eint = 2},
{.css_class = "button-function", {.css_class = "function",
.label = "EEX", .label = "EEX",
.letter = "V", .letter = "V",
.left = "10<sup>𝔁</sup>", .left = "10<sup>𝓍</sup>",
.right = "LOG", .right = "LOG",
.below = NULL, .below = NULL,
.x = 0, .x = 0,
@ -473,7 +470,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 4 ), .columnbit = ( 1 << 4 ),
.rowbit = ( 1 << 3 ), .rowbit = ( 1 << 3 ),
.eint = 3}, .eint = 3},
{.css_class = "button-function", {.css_class = "function",
.label = "+/-", .label = "+/-",
.letter = "W", .letter = "W",
.left = "", .left = "",
@ -488,8 +485,8 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 3 ), .columnbit = ( 1 << 3 ),
.rowbit = ( 1 << 3 ), .rowbit = ( 1 << 3 ),
.eint = 3}, .eint = 3},
{.css_class = "button-function", {.css_class = "function",
.label = "𝔁", .label = "𝓍",
.letter = "X", .letter = "X",
.left = "", .left = "",
.right = "&gt;", .right = "&gt;",
@ -503,8 +500,8 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 2 ), .columnbit = ( 1 << 2 ),
.rowbit = ( 1 << 3 ), .rowbit = ( 1 << 3 ),
.eint = 3}, .eint = 3},
{.css_class = "button-function", {.css_class = "function",
.label = "1/𝔁", .label = "1/𝓍",
.letter = "Y", .letter = "Y",
.left = "", .left = "",
.right = ">", .right = ">",
@ -518,7 +515,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 1 ), .columnbit = ( 1 << 1 ),
.rowbit = ( 1 << 3 ), .rowbit = ( 1 << 3 ),
.eint = 3}, .eint = 3},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "÷", .label = "÷",
.letter = "Z", .letter = "Z",
.left = "ABS", .left = "ABS",
@ -534,7 +531,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.rowbit = ( 1 << 3 ), .rowbit = ( 1 << 3 ),
.eint = 3}, .eint = 3},
{.css_class = "button-alpha", {.css_class = "alpha",
.label = "ALPHA", .label = "ALPHA",
.letter = NULL, .letter = NULL,
.left = "USER", .left = "USER",
@ -549,7 +546,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = 0, .columnbit = 0,
.rowbit = 0, .rowbit = 0,
.eint = 4}, .eint = 4},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "7", .label = "7",
.letter = NULL, .letter = NULL,
.left = "S.SLV", .left = "S.SLV",
@ -564,7 +561,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 3 ), .columnbit = ( 1 << 3 ),
.rowbit = ( 1 << 4 ), .rowbit = ( 1 << 4 ),
.eint = 4}, .eint = 4},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "8", .label = "8",
.letter = NULL, .letter = NULL,
.left = "EXP&amp;LN", .left = "EXP&amp;LN",
@ -579,7 +576,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 2 ), .columnbit = ( 1 << 2 ),
.rowbit = ( 1 << 4 ), .rowbit = ( 1 << 4 ),
.eint = 4}, .eint = 4},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "9", .label = "9",
.letter = NULL, .letter = NULL,
.left = "FINANCE", .left = "FINANCE",
@ -594,7 +591,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 1 ), .columnbit = ( 1 << 1 ),
.rowbit = ( 1 << 4 ), .rowbit = ( 1 << 4 ),
.eint = 4}, .eint = 4},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "×", .label = "×",
.letter = NULL, .letter = NULL,
.left = "[ ]", .left = "[ ]",
@ -610,7 +607,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.rowbit = ( 1 << 4 ), .rowbit = ( 1 << 4 ),
.eint = 4}, .eint = 4},
{.css_class = "button-shift-left", {.css_class = "shift-left",
.label = "", .label = "",
.letter = NULL, .letter = NULL,
.left = NULL, .left = NULL,
@ -625,7 +622,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = 0, .columnbit = 0,
.rowbit = 0, .rowbit = 0,
.eint = 5}, .eint = 5},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "4", .label = "4",
.letter = NULL, .letter = NULL,
.left = "CALC", .left = "CALC",
@ -640,7 +637,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 3 ), .columnbit = ( 1 << 3 ),
.rowbit = ( 1 << 5 ), .rowbit = ( 1 << 5 ),
.eint = 5}, .eint = 5},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "5", .label = "5",
.letter = NULL, .letter = NULL,
.left = "MATRICES", .left = "MATRICES",
@ -655,7 +652,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 2 ), .columnbit = ( 1 << 2 ),
.rowbit = ( 1 << 5 ), .rowbit = ( 1 << 5 ),
.eint = 5}, .eint = 5},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "6", .label = "6",
.letter = NULL, .letter = NULL,
.left = "CONVERT", .left = "CONVERT",
@ -670,7 +667,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 1 ), .columnbit = ( 1 << 1 ),
.rowbit = ( 1 << 5 ), .rowbit = ( 1 << 5 ),
.eint = 5}, .eint = 5},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "-", .label = "-",
.letter = NULL, .letter = NULL,
.left = "( )", .left = "( )",
@ -686,7 +683,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.rowbit = ( 1 << 5 ), .rowbit = ( 1 << 5 ),
.eint = 5}, .eint = 5},
{.css_class = "button-shift-right", {.css_class = "shift-right",
.label = "", .label = "",
.letter = NULL, .letter = NULL,
.left = NULL, .left = NULL,
@ -701,7 +698,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = 0, .columnbit = 0,
.rowbit = 0, .rowbit = 0,
.eint = 6}, .eint = 6},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "1", .label = "1",
.letter = NULL, .letter = NULL,
.left = "ARITH", .left = "ARITH",
@ -716,7 +713,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 3 ), .columnbit = ( 1 << 3 ),
.rowbit = ( 1 << 6 ), .rowbit = ( 1 << 6 ),
.eint = 6}, .eint = 6},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "2", .label = "2",
.letter = NULL, .letter = NULL,
.left = "DEF", .left = "DEF",
@ -731,7 +728,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 2 ), .columnbit = ( 1 << 2 ),
.rowbit = ( 1 << 6 ), .rowbit = ( 1 << 6 ),
.eint = 6}, .eint = 6},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "3", .label = "3",
.letter = NULL, .letter = NULL,
.left = "#", .left = "#",
@ -746,7 +743,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 1 ), .columnbit = ( 1 << 1 ),
.rowbit = ( 1 << 6 ), .rowbit = ( 1 << 6 ),
.eint = 6}, .eint = 6},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "+", .label = "+",
.letter = NULL, .letter = NULL,
.left = "{ }", .left = "{ }",
@ -762,7 +759,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.rowbit = ( 1 << 6 ), .rowbit = ( 1 << 6 ),
.eint = 6}, .eint = 6},
{.css_class = "button-core", {.css_class = "core",
.label = "ON", .label = "ON",
.letter = NULL, .letter = NULL,
.left = "CONT", .left = "CONT",
@ -777,7 +774,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = 0, .columnbit = 0,
.rowbit = 0, .rowbit = 0,
.eint = 0}, .eint = 0},
{.css_class = "button-core-number", {.css_class = "core-number",
.label = "0", .label = "0",
.letter = NULL, .letter = NULL,
.left = "", .left = "",
@ -792,7 +789,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 3 ), .columnbit = ( 1 << 3 ),
.rowbit = ( 1 << 7 ), .rowbit = ( 1 << 7 ),
.eint = 7}, .eint = 7},
{.css_class = "button-core", {.css_class = "core",
.label = ".", .label = ".",
.letter = NULL, .letter = NULL,
.left = ": :", .left = ": :",
@ -807,7 +804,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 2 ), .columnbit = ( 1 << 2 ),
.rowbit = ( 1 << 7 ), .rowbit = ( 1 << 7 ),
.eint = 7}, .eint = 7},
{.css_class = "button-core", {.css_class = "core",
.label = "SPC", .label = "SPC",
.letter = NULL, .letter = NULL,
.left = "𝚷", .left = "𝚷",
@ -822,7 +819,7 @@ static x49gp_ui_key_t ui_keys[ NB_KEYS ] = {
.columnbit = ( 1 << 1 ), .columnbit = ( 1 << 1 ),
.rowbit = ( 1 << 7 ), .rowbit = ( 1 << 7 ),
.eint = 7}, .eint = 7},
{.css_class = "button-core", {.css_class = "core",
.label = "ENTER", .label = "ENTER",
.letter = NULL, .letter = NULL,
.left = "ANS", .left = "ANS",
@ -856,35 +853,35 @@ char* css_global = "window {"
" background-image: none;" " background-image: none;"
" padding: 0px;" " padding: 0px;"
"}" "}"
".button-menu {" "button.menu {"
" background-color: #a9a9a9;" " background-color: #a9a9a9;"
"}" "}"
".button-function {" "button.function {"
" background-color: #696969;" " background-color: #696969;"
"}" "}"
".button-arrow {" "button.arrow {"
" background-color: #e0e0e0;" " background-color: #e0e0e0;"
"}" "}"
".button-alpha {" "button.alpha {"
" background-color: #fae82c;" " background-color: #fae82c;"
"}" "}"
".button-core, .button-core-number {" "button.core, button.core-number {"
" background-color: #080808;" " background-color: #080808;"
"}" "}"
".button-alpha .label-key {" "button.alpha .label-key, button.arrow .label-key, button.menu .label-key {"
" color: #080808;" " color: #080808;"
"}" "}"
".button-shift-left {" "button.shift-left {"
" background-color: %s;" " background-color: %s;"
"}" "}"
".button-shift-right {" "button.shift-right {"
" background-color: #8e2518;" " background-color: #8e2518;"
"}" "}"
".button-shift-left .label-key, .button-shift-right .label-key, .button-arrow .label-key {" "button.shift-left .label-key, button.shift-right .label-key {"
" font-size: %ipx;" " font-size: %ipx;"
" color: #080808;" " color: #080808;"
"}" "}"
".button-core-number .label-key {" "button.core-number .label-key, button.arrow .label-key {"
" font-size: %ipx;" " font-size: %ipx;"
"}" "}"
".label-key {" ".label-key {"