| 645 | } |
| 646 | |
| 647 | void Widget::setHighlighted(bool highlight) |
| 648 | { |
| 649 | if (highlight == _highlight) |
| 650 | { |
| 651 | return; |
| 652 | } |
| 653 | |
| 654 | _highlight = highlight; |
| 655 | if (_bright) |
| 656 | { |
| 657 | if (_highlight) |
| 658 | { |
| 659 | setBrightStyle(BrightStyle::HIGHLIGHT); |
| 660 | } |
| 661 | else |
| 662 | { |
| 663 | setBrightStyle(BrightStyle::NORMAL); |
| 664 | } |
| 665 | } |
| 666 | else |
| 667 | { |
| 668 | onPressStateChangedToDisabled(); |
| 669 | } |
| 670 | } |
| 671 | |
| 672 | void Widget::setBright(bool bright) |
| 673 | { |