Compare commits

...

4 Commits

Author SHA1 Message Date
Lea Anthony
5cd08e45f0 v2.0.0-alpha.20 2021-01-31 22:50:01 +11:00
Lea Anthony
c2d03f0e6e Update NSFontWeightRegular to float const 2021-01-31 22:49:29 +11:00
Lea Anthony
d3501f4cb7 v2.0.0-alpha.19 2021-01-31 21:59:16 +11:00
Lea Anthony
ee82cd25b7 Menu Items default to 12 pt on Mac 2021-01-31 21:58:41 +11:00
3 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
package main package main
var version = "v2.0.0-alpha.18" var version = "v2.0.0-alpha.20"

View File

@@ -740,7 +740,7 @@ void processMenuItem(Menu *menu, id parentMenu, JsonNode *item) {
const char *image = getJSONString(item, "Image"); const char *image = getJSONString(item, "Image");
const char *fontName = getJSONString(item, "FontName"); const char *fontName = getJSONString(item, "FontName");
const char *RGBA = getJSONString(item, "RGBA"); const char *RGBA = getJSONString(item, "RGBA");
int fontSize = 0; int fontSize = 12;
getJSONInt(item, "FontSize", &fontSize); getJSONInt(item, "FontSize", &fontSize);
// If we have an accelerator // If we have an accelerator

View File

@@ -22,7 +22,7 @@ typedef struct _NSRange {
#define NSFontWeightUltraLight -0.8 #define NSFontWeightUltraLight -0.8
#define NSFontWeightThin -0.6 #define NSFontWeightThin -0.6
#define NSFontWeightLight -0.4 #define NSFontWeightLight -0.4
#define NSFontWeightRegular 0 #define NSFontWeightRegular 0.0
#define NSFontWeightMedium 0.23 #define NSFontWeightMedium 0.23
#define NSFontWeightSemibold 0.3 #define NSFontWeightSemibold 0.3
#define NSFontWeightBold 0.4 #define NSFontWeightBold 0.4