mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-29 16:39:34 +08:00
Improve mouse support for menu and toggle.
This commit is contained in:
@@ -5,10 +5,8 @@
|
||||
namespace ftxui {
|
||||
|
||||
Element Button::Render() {
|
||||
return text(label) | //
|
||||
border | //
|
||||
(Focused() ? inverted : nothing) | //
|
||||
reflect(box_);
|
||||
auto style = Focused() ? inverted : nothing;
|
||||
return text(label) | border | style | reflect(box_);
|
||||
}
|
||||
|
||||
bool Button::OnEvent(Event event) {
|
||||
|
Reference in New Issue
Block a user