Ui improvements

This commit is contained in:
ahsanswr
2026-07-26 17:24:36 +02:00
committed by Guillaume Meunier
parent 4226485c57
commit 2e9f2c8646
21 changed files with 1560 additions and 1026 deletions
+18 -1
View File
@@ -19,6 +19,11 @@
#pragma once
#include "render/ui_widgets.h"
#include <optional>
#include <string>
#include <openxr/openxr.h>
class configuration;
class imgui_context;
@@ -44,7 +49,8 @@ bool refresh_rate(
bool body_tracking_parts(
xr::system & system,
imgui_context & imgui_ctx,
configuration & config);
configuration & config,
bool in_game);
bool post_processing(
imgui_context & imgui_ctx,
@@ -52,5 +58,16 @@ bool post_processing(
float toggle_width();
// Battery pill shown in the top bar: the icon+percent label and the threshold colour.
struct battery_indicator
{
std::string label;
wivrn::ui::chip_style style;
};
// Current headset battery as a top-bar pill, or nullopt when unavailable (always nullopt
// off Android). now drives the charging animation. Shared by the lobby and in-stream GUI.
std::optional<battery_indicator> battery_status_indicator(XrTime now);
} // namespace gui
} // namespace wivrn