| 99 | } |
| 100 | |
| 101 | std::optional<std::size_t> |
| 102 | UiState::model_index_of(std::string_view variable_name) const { |
| 103 | for (std::size_t i = 0; i < model_.size(); ++i) { |
| 104 | if (model_.variable_name_of(i) == variable_name) { |
| 105 | return i; |
| 106 | } |
| 107 | } |
| 108 | return std::nullopt; |
| 109 | } |
| 110 | |
| 111 | bool UiState::contrast_enabled() const { |
| 112 | return contrast_; |
no test coverage detected