feat: bullet lists for some descriptions in profile editor

This commit is contained in:
Gabriele Musco 2023-12-27 11:16:41 +00:00
commit f6faf38896
3 changed files with 7 additions and 7 deletions

View file

@ -22,7 +22,7 @@ pub static ENV_VAR_DESCRIPTIONS: Map<&str, &str> = phf_map! {
pub fn env_var_descriptions_as_paragraph() -> String { pub fn env_var_descriptions_as_paragraph() -> String {
ENV_VAR_DESCRIPTIONS ENV_VAR_DESCRIPTIONS
.into_iter() .into_iter()
.map(|(k, v)| format!("{}: {}", k, v)) .map(|(k, v)| format!(" \u{2022} <b>{}</b>: {}", k, v))
.collect::<Vec<String>>() .collect::<Vec<String>>()
.join("\n\n") .join("\n\n")
} }

View file

@ -146,9 +146,9 @@ impl SimpleComponent for ProfileEditor {
"Lighthouse Driver", "Lighthouse Driver",
Some(concat!( Some(concat!(
"Driver for lighhouse tracked XR devices (ie: Valve Index, HTC Vive...). Only applicable for Monado.\n\n", "Driver for lighhouse tracked XR devices (ie: Valve Index, HTC Vive...). Only applicable for Monado.\n\n",
"Vive: 3DOF tracking\n\n", " \u{2022} Vive: 3DOF tracking\n",
"Survive: 6DOF reverse engineered lighthouse tracking provided by Libsurvive\n\n", " \u{2022} Survive: 6DOF reverse engineered lighthouse tracking provided by Libsurvive\n",
"SteamVR: 6DOF lighthouse tracking using the proprietary SteamVR driver", " \u{2022} SteamVR: 6DOF lighthouse tracking using the proprietary SteamVR driver",
)), )),
model.profile.borrow().lighthouse_driver.to_string().as_str(), model.profile.borrow().lighthouse_driver.to_string().as_str(),
LighthouseDriver::iter() LighthouseDriver::iter()

View file

@ -69,11 +69,11 @@ impl SimpleComponent for SteamVrCalibrationBox {
set_hexpand: true, set_hexpand: true,
set_label: concat!( set_label: concat!(
"Run a quick SteamVR calibration.\n\n", "Run a quick SteamVR calibration.\n\n",
"\u{2022} Plug in your HMD and place it on the floor, ", " \u{2022} Plug in your HMD and place it on the floor, ",
"approximately in the middle of your play area\n", "approximately in the middle of your play area\n",
"\u{2022} Make sure your controllers and other VR devices ", " \u{2022} Make sure your controllers and other VR devices ",
"are turned off\n", "are turned off\n",
"\u{2022} Click the Calibrate button and wait for the ", " \u{2022} Click the Calibrate button and wait for the ",
"process to finish\n\n", "process to finish\n\n",
"Note that the orientation of your HMD during this process ", "Note that the orientation of your HMD during this process ",
"will dictate the forward direction of your play area.", "will dictate the forward direction of your play area.",