mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
upload vertical alignment patch, fix code (#94)
This commit is contained in:
parent
4bcdb3a7ff
commit
734cbe2f4c
26
patches/fix-vertical-alignment.patch
Normal file
26
patches/fix-vertical-alignment.patch
Normal file
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user