feat: simplify Wikipedia app starting page
This commit is contained in:
@@ -928,7 +928,7 @@ static void build_welcome_lines(bool preserve_scroll = false) {
|
|||||||
add_spacer(gui_max(FONT_SIZE - 4, 10));
|
add_spacer(gui_max(FONT_SIZE - 4, 10));
|
||||||
|
|
||||||
const char* intro =
|
const char* intro =
|
||||||
"Search for an article above, or use this page as a calmer starting point than the Wikipedia Main Page.";
|
"Search for an article above.";
|
||||||
wrap_text(body_font, FONT_SIZE, intro, (int)strlen(intro), max_px, palette.text);
|
wrap_text(body_font, FONT_SIZE, intro, (int)strlen(intro), max_px, palette.text);
|
||||||
add_spacer(gui_max(FONT_SIZE + 2, 16));
|
add_spacer(gui_max(FONT_SIZE + 2, 16));
|
||||||
|
|
||||||
@@ -963,10 +963,6 @@ static void build_welcome_lines(bool preserve_scroll = false) {
|
|||||||
wrap_text(tf, SECTION_SIZE, section, (int)strlen(section), max_px, palette.heading);
|
wrap_text(tf, SECTION_SIZE, section, (int)strlen(section), max_px, palette.heading);
|
||||||
add_spacer(gui_max(FONT_SIZE - 8, 8));
|
add_spacer(gui_max(FONT_SIZE - 8, 8));
|
||||||
|
|
||||||
const char* suggestions =
|
|
||||||
"Try topics like Linux, Montauk, operating system, Norway, mathematics, music, or any article title that comes to mind.";
|
|
||||||
wrap_text(body_font, FONT_SIZE, suggestions, (int)strlen(suggestions), max_px, palette.text);
|
|
||||||
|
|
||||||
if (g_welcome_status[0]) {
|
if (g_welcome_status[0]) {
|
||||||
add_spacer(gui_max(FONT_SIZE - 6, 8));
|
add_spacer(gui_max(FONT_SIZE - 6, 8));
|
||||||
wrap_text(body_font, gui_max(FONT_SIZE - 2, 12),
|
wrap_text(body_font, gui_max(FONT_SIZE - 2, 12),
|
||||||
|
|||||||
Reference in New Issue
Block a user