summaryrefslogtreecommitdiffstats
path: root/src/ui/style.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/style.rs')
-rw-r--r--src/ui/style.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/style.rs b/src/ui/style.rs
index c00137b7..e687e45e 100644
--- a/src/ui/style.rs
+++ b/src/ui/style.rs
@@ -143,7 +143,11 @@ impl Theme {
self.apply_select(style, selected)
}
- fn apply_select(&self, style: Style, selected: bool) -> Style {
+ const fn apply_select(
+ &self,
+ style: Style,
+ selected: bool,
+ ) -> Style {
if selected {
style.bg(self.selection_bg).fg(self.selection_fg)
} else {