| 336 | } |
| 337 | |
| 338 | Result draw_help_tab(Config &ctx) { |
| 339 | if (!im::BeginTabItem("Help")) |
| 340 | return 0; |
| 341 | |
| 342 | if (im::CollapsingHeader("Usage")) { |
| 343 | im::BulletText("\ue121 Touchscreen:\n" |
| 344 | "Drag the sliders to set the values to your liking.\n"); |
| 345 | im::BulletText("\ue122 Controller:\n" |
| 346 | "Use the \ue0aa keypad to navigate the window.\n" |
| 347 | "Use \ue000 to select an item, then \ue0b1 \ue0b2 to modify\n its value.\n" |
| 348 | "Use \ue001 to deselect an item.\n" |
| 349 | "Use \ue002 to input a value using the keyboard.\n" |
| 350 | "Use \ue0b3 to exit (\ue0b9 is not recommended).\n"); |
| 351 | } |
| 352 | |
| 353 | if (im::CollapsingHeader("Documentation")) { |
| 354 | im::BulletText( |
| 355 | R"(The temperature slider adjusts the color |
| 356 | temperature of the screen. Use this as a night |
| 357 | color feature.)"); |
| 358 | im::BulletText( |
| 359 | R"(The filter feature can be used to restrict the color |
| 360 | displayed to one single component (red, green, |
| 361 | or blue).)"); |
| 362 | im::BulletText( |
| 363 | R"(The gamma slider adjusts the regamma ramp. |
| 364 | This can be useful on bad/old monitors.)"); |
| 365 | im::BulletText( |
| 366 | R"(The luminance slider can increase/decrease the |
| 367 | perceived luminance. This is different from the |
| 368 | backlight brightness, but can be used along with |
| 369 | it to lower the luminosity below normal limits.)"); |
| 370 | im::BulletText( |
| 371 | R"(The color range pickers adjust the intensity |
| 372 | range of color components. This can be useful |
| 373 | on certain monitors. Unticking "Full range" is |
| 374 | equivalent to using the "Limited range" official |
| 375 | setting.)"); |
| 376 | } |
| 377 | |
| 378 | im::TextUnformatted("Compiled on " __DATE__ " " __TIME__); |
| 379 | |
| 380 | im::EndTabItem(); |
| 381 | return 0; |
| 382 | } |
| 383 | |
| 384 | } // namespace |
| 385 | |