How to change the focus color of button #1902
Replies: 1 comment
|
The focused button uses a separate style class. In the current widget implementation the So override from prompt_toolkit.styles import Style
style = Style.from_dict({
"button": "bg:#444444 #ffffff",
"button.focused": "bg:#005f87 #ffffff",
})If changing The repository's button example uses the same selector ( |
Uh oh!
There was an error while loading. Please reload this page.
I want to change the color focus when a button is focused, i looked at the buttons.py in the examples folder. But it does not work, the only color which is appplied to the focus bar is red, setting anything else in the style sheet does not change its color (remains red). Please help
All reactions