#include <hikogui/theme/theme_book.hpp>
theme_book keeps track of multiple themes.
◆ find()
| std::optional< std::filesystem::path > hi::v1::detail::theme_book::find |
( |
std::string | name, |
|
|
theme_mode | mode ) const |
|
inlinenoexcept |
Find a theme matching the name and mode.
- Parameters
-
| name | The name of the theme to select. |
| mode | The mode of the theme to select. |
- Returns
- A theme most closely matching the requested theme.
◆ names()
Get a list of theme names.
This list of names is sorted and does not contain duplicates, ready to be displayed to the user.
◆ refresh()
| void hi::v1::detail::theme_book::refresh |
( |
| ) |
|
|
inline |
Refresh the list of themes from the theme directories.
The documentation for this class was generated from the following file: