Compare commits

..

2 commits

Author SHA1 Message Date
Benjamin Palko
2f575bc541 focus and transition 2025-08-31 20:39:16 -04:00
Benjamin Palko
f1e15b427c menu separator 2025-08-31 19:03:40 -04:00
3 changed files with 26 additions and 3 deletions

View file

@ -8,5 +8,21 @@ Menu {
palette.window: Theme.palette.base100 palette.window: Theme.palette.base100
palette.base: Theme.palette.base100 palette.base: Theme.palette.base100
focus: true
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
enter: Transition {
NumberAnimation {
property: "opacity"
from: 0.0
to: 1.0
}
}
exit: Transition {
NumberAnimation {
property: "opacity"
from: 1.0
to: 0.0
}
}
} }

View file

@ -0,0 +1,9 @@
import qs.config
import QtQuick
import QtQuick.Controls
MenuSeparator {
palette.text: Theme.palette.basecontent
palette.highlight: Theme.palette.primary
palette.highlightedText: Theme.palette.primarycontent
}

View file

@ -134,9 +134,7 @@ StyledWindow {
StyledMenuItem { StyledMenuItem {
text: "Open..." text: "Open..."
} }
StyledMenuItem { StyledMenuSeparator {}
text: "Save"
}
StyledMenuItem { StyledMenuItem {
text: "Close" text: "Close"
} }