From 1be1137ebdafe5df3f73a40e3cbf0838f0d8fd15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Mon, 6 Apr 2026 02:48:33 -0300 Subject: [PATCH] Forgot to include dir for args library. --- premake4.lua | 1 + premake5.lua | 1 + src/examples/ui_html/ui_html.cpp | 8 +++++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/premake4.lua b/premake4.lua index cb822e134..006c0b601 100644 --- a/premake4.lua +++ b/premake4.lua @@ -1612,6 +1612,7 @@ solution "eepp" project "eepp-ui-html" set_kind() language "C++" + includedirs { "src/thirdparty" } files { "src/examples/ui_html/*.cpp" } build_link_configuration( "eepp-ui-html", true ) diff --git a/premake5.lua b/premake5.lua index b0a8bc5f3..8813ec958 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1491,6 +1491,7 @@ workspace "eepp" project "eepp-ui-html" set_kind() language "C++" + incdirs { "src/thirdparty" } files { "src/examples/ui_html/*.cpp" } build_link_configuration( "eepp-ui-html", true ) diff --git a/src/examples/ui_html/ui_html.cpp b/src/examples/ui_html/ui_html.cpp index fe88b886e..293df629e 100644 --- a/src/examples/ui_html/ui_html.cpp +++ b/src/examples/ui_html/ui_html.cpp @@ -6,12 +6,14 @@ EE_MAIN_FUNC int main( int argc, char** argv ) { args::ArgumentParser parser( "eepp HTML Example" ); args::HelpFlag help( parser, "help", "Display this help menu", { 'h', "help" } ); - args::Flag hnDark( parser, "hn-dark", - "Force a custom CSS style for Hacker News site to be dark.", { "hn-dark" } ); + + args::Positional url( parser, "URL", "The URL to request" ); args::ValueFlag prefersColorScheme( parser, "prefers-color-scheme", "Set the preferred color scheme (\"light\", \"dark\" or \"system\")", { 'c', "prefers-color-scheme" } ); + args::Flag hnDark( parser, "hn-dark", + "Force a custom CSS style for Hacker News site to be dark.", { "hn-dark" } ); try { parser.ParseCLI( Sys::parseArguments( argc, argv ) ); @@ -189,7 +191,7 @@ EE_MAIN_FUNC int main( int argc, char** argv ) { } ); updateNavButtons(); - loadDocument( "https://news.ycombinator.com" ); + loadDocument( !url.Get().empty() ? url.Get() : "https://news.ycombinator.com" ); urlBar->on( Event::OnPressEnter, [&]( auto event ) { loadDocument( urlBar->getText().toUtf8() ); } );