Skip to content

Commit

Permalink
[4.4.4] fixed Lilypond Lyrics plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkorsukov committed Dec 3, 2024
1 parent 0c67d1e commit 3916fb8
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 18 deletions.
60 changes: 42 additions & 18 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,35 @@ 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
//! Bad work for Mac
//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 +262,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 +358,8 @@ MuseScore {

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

onClicked: checked = !checked
}

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

checked: true
text: qsTr("Extender")

onClicked: checked = !checked
}

FlatButton {
Expand Down Expand Up @@ -844,4 +869,3 @@ MuseScore {
}

}

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 3916fb8

Please sign in to comment.