mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 10:23:32 +00:00
parent
ec88305867
commit
fe333049ea
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,6 @@ component MenuItemImpl {
|
|||
callback activate(entry : MenuEntry, y: length);
|
||||
|
||||
background-layer := Rectangle {
|
||||
|
||||
// FIXME: note that the fluent style uses the secondary color for highlighted item
|
||||
background: Palette.background;
|
||||
border-radius: 3px;
|
||||
border-width: 1px;
|
||||
|
@ -63,6 +61,7 @@ component MenuItemImpl {
|
|||
|
||||
states [
|
||||
is-current when root.is-current: {
|
||||
// FIXME: note that the fluent style uses the secondary color for highlighted item
|
||||
background-layer.background: Palette.accent-background;
|
||||
menu-text.color: Palette.accent-foreground;
|
||||
}
|
||||
|
@ -97,6 +96,7 @@ export component PopupMenuImpl inherits Window {
|
|||
|
||||
for entry[index] in entries: MenuItemImpl {
|
||||
entry: entry;
|
||||
is-current: current == index;
|
||||
|
||||
set-current => {
|
||||
focus-scope.focus();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue