Debian Codegraph @

au4/src/playback/qml/Audacity/Playback/components/ArrowMenuButton.qml

raw
1 /*
2 * Audacity: A Digital Audio Editor
3 */
4 import QtQuick
5
6 import Muse.Ui
7 import Muse.UiComponents
8
9 MenuButton {
10 id: menuBtn
11
12 icon: IconCode.SMALL_ARROW_DOWN
13 iconColor: ui.theme.fontSecondaryColor
14
15 menuAnchorItem: ui.rootItem
16
17 backgroundItem: RoundedRectangle {
18 id: background
19
20 topRightRadius: 3
21 bottomRightRadius: 3
22
23 color: ui.theme.backgroundQuarternaryColor
24
25 states: [
26 State {
27 name: "PRESSED"
28 when: menuBtn.mouseArea.pressed
29
30 PropertyChanges {
31 target: background
32 opacity: ui.theme.buttonOpacityHit
33 }
34 },
35
36 State {
37 name: "HOVERED"
38 when: menuBtn.mouseArea.containsMouse && !menuBtn.mouseArea.pressed
39
40 PropertyChanges {
41 target: background
42 opacity: ui.theme.buttonOpacityHover
43 }
44 }
45 ]
46 }
47 }