Ui improvements
This commit is contained in:
committed by
Guillaume Meunier
parent
4226485c57
commit
2e9f2c8646
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user