Skip to content

Commit

Permalink
hideo-browser: Made the title bar more compact.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Nov 3, 2024
1 parent ec05da0 commit 27ef989
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/apps/hideo-browser/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
#include <mdi/code-tags.h>
#include <mdi/cog.h>
#include <mdi/dots-horizontal.h>
#include <mdi/google-downasaur.h>
#include <mdi/printer.h>
#include <mdi/refresh.h>
#include <mdi/surfing.h>
#include <mdi/web.h>
#include <vaev-driver/fetcher.h>
#include <vaev-view/inspect.h>
Expand Down Expand Up @@ -170,7 +172,7 @@ Ui::Child sidePanel(State const &s) {

Ui::Child alert(State const &s, String title, String body) {
return Kr::errorPageContent({
Kr::errorPageTitle(Mdi::ALERT_DECAGRAM, title),
Kr::errorPageTitle(Mdi::GOOGLE_DOWNASAUR, title),
Kr::errorPageBody(body),
Kr::errorPageFooter({
Ui::button(Model::bindIf<GoBack>(s.canGoBack()), "Go Back"),
Expand Down Expand Up @@ -209,8 +211,8 @@ Ui::Child app(Mime::Url url, Res<Strong<Vaev::Markup::Document>> dom) {
},
[](State const &s) {
return Kr::scaffold({
.icon = Mdi::WEB,
.title = "Browser"s,
.icon = Mdi::SURFING,
.title = "Vaev"s,
.startTools = slots$(
Ui::button(Model::bindIf<GoBack>(s.canGoBack()), Ui::ButtonStyle::subtle(), Mdi::ARROW_LEFT),
Ui::button(Model::bindIf<GoForward>(s.canGoForward()), Ui::ButtonStyle::subtle(), Mdi::ARROW_RIGHT),
Expand All @@ -227,6 +229,7 @@ Ui::Child app(Mime::Url url, Res<Strong<Vaev::Markup::Document>> dom) {
)
),
.body = slot$(appContent(s)),
.compact = true,
});
}
);
Expand Down

0 comments on commit 27ef989

Please sign in to comment.