Skip to content

Commit

Permalink
Add hover highlight to FileBrowser widget (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
araglu authored Dec 2, 2024
1 parent 318eb24 commit 8d50ea2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uit/gui_tools/file_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ def control_styles(self):
@param.depends('_disabled')
def panel(self):
self.file_listing_widget = pn.widgets.MultiSelect.from_param(
self.param.file_listing, height=200, width_policy='max'
self.param.file_listing, height=200, width_policy='max',
stylesheets=[".bk-input option:hover { "
"background-color: var(--design-surface-color, var(--primary-bg-subtle)); }"],
)
widgets = pn.Param(
self, parameters=self.controls + ['path_text'], widgets=self.control_styles, show_name=False,
Expand Down

0 comments on commit 8d50ea2

Please sign in to comment.