diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-13 13:50:28 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-13 13:50:28 +0300 |
commit | 488dcbf40df6bf80b1042d5234b60ee2973b2818 (patch) | |
tree | 0b0e0aa10e14c9bd6220bfac2d80b5bb158906e2 /src/ui/util.c | |
parent | e3a20607304e4933db283a6c78e614c472c95b9b (diff) |
Updated the UI fonts to Source Sans 3
A new version of the typeface, now with all font variations needed
for page content as well.
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index f430ac1c..e410ded1 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -1902,14 +1902,14 @@ static void addRadioButton_(iWidget *parent, const char *id, const char *label, | |||
1902 | 1902 | ||
1903 | static void addFontButtons_(iWidget *parent, const char *id) { | 1903 | static void addFontButtons_(iWidget *parent, const char *id) { |
1904 | const char *fontNames[] = { | 1904 | const char *fontNames[] = { |
1905 | "Nunito", "Fira Sans", "Literata", "Tinos", "Source Sans Pro", "Iosevka" | 1905 | "Nunito", "Fira Sans", "Literata", "Tinos", "Source Sans 3", "Iosevka" |
1906 | }; | 1906 | }; |
1907 | iArray *items = new_Array(sizeof(iMenuItem)); | 1907 | iArray *items = new_Array(sizeof(iMenuItem)); |
1908 | iForIndices(i, fontNames) { | 1908 | iForIndices(i, fontNames) { |
1909 | pushBack_Array(items, | 1909 | pushBack_Array(items, |
1910 | &(iMenuItem){ fontNames[i], 0, 0, format_CStr("!%s.set arg:%d", id, i) }); | 1910 | &(iMenuItem){ fontNames[i], 0, 0, format_CStr("!%s.set arg:%d", id, i) }); |
1911 | } | 1911 | } |
1912 | iLabelWidget *button = makeMenuButton_LabelWidget("Source Sans Pro", data_Array(items), size_Array(items)); | 1912 | iLabelWidget *button = makeMenuButton_LabelWidget("Source Sans 3", data_Array(items), size_Array(items)); |
1913 | setBackgroundColor_Widget(findChild_Widget(as_Widget(button), "menu"), uiBackgroundMenu_ColorId); | 1913 | setBackgroundColor_Widget(findChild_Widget(as_Widget(button), "menu"), uiBackgroundMenu_ColorId); |
1914 | setId_Widget(as_Widget(button), format_CStr("prefs.%s", id)); | 1914 | setId_Widget(as_Widget(button), format_CStr("prefs.%s", id)); |
1915 | addChildFlags_Widget(parent, iClob(button), alignLeft_WidgetFlag); | 1915 | addChildFlags_Widget(parent, iClob(button), alignLeft_WidgetFlag); |