Skip to content

Commit

Permalink
fixed Lilypond Lyrics plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkorsukov committed Nov 29, 2024
1 parent e02f6f2 commit 08975fe
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 17 deletions.
58 changes: 41 additions & 17 deletions share/plugins/lilyrics/lilyrics.qml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import QtQuick 2.1
import QtQuick.Controls 2.15
import QtQuick
import QtQuick.Controls

import MuseScore 3.0
import Muse.UiComponents 1.0
import Muse.Ui
import Muse.UiComponents

// Inspired by roblyric, by Robbie Matthews

Expand Down Expand Up @@ -57,8 +58,8 @@ MuseScore {
anchors.topMargin: 10
}

TextArea {
id:textLily
Rectangle {

anchors.top: textLabel.bottom
anchors.left: window.left
anchors.right: buttonDump.left
Expand All @@ -67,15 +68,34 @@ MuseScore {
anchors.bottomMargin: 10
anchors.leftMargin: 10
anchors.rightMargin: 5
width: parent.width
wrapMode: TextEdit.WrapAnywhere
textFormat: TextEdit.PlainText
text: ""

color: ui.theme.textFieldColor
border.color: ui.theme.strokeColor
border.width: Math.max(ui.theme.borderWidth, 1)
radius: 3

ScrollView {
id: view

anchors.fill: parent
ScrollBar.vertical.policy: ScrollBar.AlwaysOn

TextArea {
id:textLily
width: parent.width
height: Math.max(textLily.implicitHeight, view.height)
anchors.margins: 8
wrapMode: TextEdit.WrapAnywhere
textFormat: TextEdit.PlainText
selectByMouse: true
text: ""
}
}
}

/******************************************
**************** Buttons ******************
******************************************/
/******************************************
**************** Buttons ******************
******************************************/

// PASTE
FlatButton {
Expand Down Expand Up @@ -241,17 +261,17 @@ MuseScore {
}


/******************************************
*********** Bottom bar controls ***********
******************************************/
/******************************************
*********** Bottom bar controls ***********
******************************************/

Row {
id: bottomBar

spacing: 10

anchors.left: textLily.left
anchors.right: textLily.right
anchors.left: window.left
anchors.right: window.right
anchors.bottom: window.bottom
anchors.margins: 10

Expand Down Expand Up @@ -337,6 +357,8 @@ MuseScore {

checked: true
text: qsTr("Skip ties")

onClicked: checked = !checked
}

CheckBox {
Expand All @@ -346,6 +368,8 @@ MuseScore {

checked: true
text: qsTr("Extender")

onClicked: checked = !checked
}

FlatButton {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ StyledDialogView {
contentWidth: viewer.width
contentHeight: viewer.height

alwaysOnTop: true

ExtensionViewer {
id: viewer

Expand Down

0 comments on commit 08975fe

Please sign in to comment.