diff --git a/patches/fix-vertical-alignment.patch b/patches/fix-vertical-alignment.patch new file mode 100644 index 0000000..136087c --- /dev/null +++ b/patches/fix-vertical-alignment.patch @@ -0,0 +1,26 @@ +diff --git a/sources/awesome-widget/package/contents/ui/main.qml b/sources/awesome-widget/package/contents/ui/main.qml +index 79c6ddf..0e20bc9 100644 +--- a/sources/awesome-widget/package/contents/ui/main.qml ++++ b/sources/awesome-widget/package/contents/ui/main.qml +@@ -84,7 +84,7 @@ Item { + // ui + Text { + id: text +- anchors.fill: Plasmoid.Layout ++ anchors.fill: parent + renderType: Text.NativeRendering + textFormat: Text.RichText + wrapMode: plasmoid.configuration.wrapText ? Text.WordWrap : Text.NoWrap +diff --git a/sources/desktop-panel/package/contents/ui/main.qml b/sources/desktop-panel/package/contents/ui/main.qml +index 5a1e9b6..20f8732 100644 +--- a/sources/desktop-panel/package/contents/ui/main.qml ++++ b/sources/desktop-panel/package/contents/ui/main.qml +@@ -57,7 +57,7 @@ Item { + + // ui + GridLayout { +- anchors.fill: Plasmoid.Layout ++ anchors.fill: parent + columns: plasmoid.configuration.verticalLayout ? 1 : dpAdds.numberOfDesktops() + rows: plasmoid.configuration.verticalLayout ? dpAdds.numberOfDesktops() : 1 + diff --git a/sources/awesome-widget/package/contents/ui/main.qml b/sources/awesome-widget/package/contents/ui/main.qml index 79c6ddf..0e20bc9 100644 --- a/sources/awesome-widget/package/contents/ui/main.qml +++ b/sources/awesome-widget/package/contents/ui/main.qml @@ -84,7 +84,7 @@ Item { // ui Text { id: text - anchors.fill: Plasmoid.Layout + anchors.fill: parent renderType: Text.NativeRendering textFormat: Text.RichText wrapMode: plasmoid.configuration.wrapText ? Text.WordWrap : Text.NoWrap diff --git a/sources/desktop-panel/package/contents/ui/main.qml b/sources/desktop-panel/package/contents/ui/main.qml index 5a1e9b6..20f8732 100644 --- a/sources/desktop-panel/package/contents/ui/main.qml +++ b/sources/desktop-panel/package/contents/ui/main.qml @@ -57,7 +57,7 @@ Item { // ui GridLayout { - anchors.fill: Plasmoid.Layout + anchors.fill: parent columns: plasmoid.configuration.verticalLayout ? 1 : dpAdds.numberOfDesktops() rows: plasmoid.configuration.verticalLayout ? dpAdds.numberOfDesktops() : 1