Forgot to include dir for args library.

This commit is contained in:
Martín Lucas Golini
2026-04-06 02:48:33 -03:00
parent dbde511d99
commit 1be1137ebd
3 changed files with 7 additions and 3 deletions

View File

@@ -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 )

View File

@@ -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 )

View File

@@ -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<std::string> url( parser, "URL", "The URL to request" );
args::ValueFlag<std::string> 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() ); } );