update subtitle format

This commit is contained in:
yggverse 2024-08-27 23:33:29 +03:00
parent 74b030a132
commit bc16526b84

View File

@ -89,9 +89,11 @@ void Page::update()
{ {
// Update page extras // Update page extras
set( set(
_("Loading.."), pageNavbar->get_request_host(),
pageNavbar->get_request_text(), Glib::ustring::sprintf(
0 _("load %s.."),
pageNavbar->get_request_text()
), 0
); );
// Connect scheme driver // Connect scheme driver
@ -125,9 +127,11 @@ void Page::update()
[this](const Glib::RefPtr<Gio::AsyncResult> & result) [this](const Glib::RefPtr<Gio::AsyncResult> & result)
{ {
set( set(
_("Connect.."),
pageNavbar->get_request_host(), pageNavbar->get_request_host(),
.25 Glib::ustring::sprintf(
_("connect %s.."),
pageNavbar->get_request_host()
), .25
); );
GioSocketConnection_RefPtr = GioSocketClient_RefPtr->connect_to_host_finish( GioSocketConnection_RefPtr = GioSocketClient_RefPtr->connect_to_host_finish(
@ -143,9 +147,12 @@ void Page::update()
[this](const Glib::RefPtr<Gio::AsyncResult> & result) [this](const Glib::RefPtr<Gio::AsyncResult> & result)
{ {
set( set(
_("Request.."),
pageNavbar->get_request_host(), pageNavbar->get_request_host(),
.5 Glib::ustring::sprintf(
_("request %s.."),
pageNavbar->get_request_path().empty() ? pageNavbar->get_request_host()
: pageNavbar->get_request_path()
), .5
); );
// Response // Response
@ -155,9 +162,12 @@ void Page::update()
[this](const Glib::RefPtr<Gio::AsyncResult> & result) [this](const Glib::RefPtr<Gio::AsyncResult> & result)
{ {
set( set(
_("Reading response.."),
pageNavbar->get_request_host(), pageNavbar->get_request_host(),
.75 Glib::ustring::sprintf(
_("reading %s.."),
pageNavbar->get_request_path().empty() ? pageNavbar->get_request_host()
: pageNavbar->get_request_path()
), .75
); );
// Parse meta // Parse meta
@ -195,9 +205,10 @@ void Page::update()
GioSocketConnection_RefPtr->close(); GioSocketConnection_RefPtr->close();
set( set(
_("Page title"), // @TODO pageNavbar->get_request_host(), // @TODO title
pageNavbar->get_request_host(), pageNavbar->get_request_path().empty() ? pageNavbar->get_request_host()
1 : pageNavbar->get_request_path()
, 1
); );
} }
); );