public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-desktop/, kde-plasma/plasma-desktop/files/
Date: Mon, 18 Nov 2024 20:09:28 +0000 (UTC)	[thread overview]
Message-ID: <1731960226.b59fa71c78d94704ceaeb4bf0aa7941dd1653339.asturm@gentoo> (raw)

commit:     b59fa71c78d94704ceaeb4bf0aa7941dd1653339
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 18 15:36:43 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Nov 18 20:03:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b59fa71c

kde-plasma/plasma-desktop: Fill panel size w/ flexible spacer in panel

KDE-bug: https://bugs.kde.org/495378

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ...a-desktop-6.2.3-panel-fix-flexible-spacer.patch | 70 ++++++++++++++++++++++
 .../plasma-desktop/plasma-desktop-6.2.3-r1.ebuild  |  1 +
 2 files changed, 71 insertions(+)

diff --git a/kde-plasma/plasma-desktop/files/plasma-desktop-6.2.3-panel-fix-flexible-spacer.patch b/kde-plasma/plasma-desktop/files/plasma-desktop-6.2.3-panel-fix-flexible-spacer.patch
new file mode 100644
index 000000000000..185b1493102b
--- /dev/null
+++ b/kde-plasma/plasma-desktop/files/plasma-desktop-6.2.3-panel-fix-flexible-spacer.patch
@@ -0,0 +1,70 @@
+From 8789c9c2a847d2e1c83b8de7b915cf9888e68937 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Niccol=C3=B2=20Venerandi?= <niccolo@venerandi.com>
+Date: Thu, 7 Nov 2024 13:30:27 +0000
+Subject: [PATCH] Fill panel width/height in custom/fit content modes when
+ flexible spacer is in panel
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The flexible spacer should always make the panel gain its maximum
+width/height; this implements that.
+
+BUG:495378
+
+
+(cherry picked from commit 7d2e16b09d391b7bc979e447d21bc8747399c55d)
+
+Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com>
+---
+ containments/panel/contents/ui/main.qml |  6 ++++++
+ desktoppackage/contents/views/Panel.qml | 14 ++++++++++++++
+ 2 files changed, 20 insertions(+)
+
+diff --git a/containments/panel/contents/ui/main.qml b/containments/panel/contents/ui/main.qml
+index 2570f9f520..e69131d6a6 100644
+--- a/containments/panel/contents/ui/main.qml
++++ b/containments/panel/contents/ui/main.qml
+@@ -26,6 +26,12 @@ ContainmentItem {
+ //BEGIN properties
+     Layout.preferredWidth: fixedWidth || currentLayout.implicitWidth + currentLayout.horizontalDisplacement
+     Layout.preferredHeight: fixedHeight || currentLayout.implicitHeight + currentLayout.verticalDisplacement
++    Layout.fillWidth: {
++        return currentLayout.children
++            .filter(child => child?.applet?.plasmoid?.pluginName === "org.kde.plasma.panelspacer")
++            .some(child => child.applet.plasmoid.configuration.expanding)
++    }
++    Layout.fillHeight: Layout.fillWidth
+ 
+     property Item toolBox
+     property var layoutManager: LayoutManager
+diff --git a/desktoppackage/contents/views/Panel.qml b/desktoppackage/contents/views/Panel.qml
+index 2083123282..a4fab11699 100644
+--- a/desktoppackage/contents/views/Panel.qml
++++ b/desktoppackage/contents/views/Panel.qml
+@@ -275,8 +275,22 @@ Item {
+                 return;
+             }
+             if (verticalPanel) {
++                if (containment.Layout.fillHeight) {
++                    if (panel.lengthMode == Panel.Global.Custom) {
++                        return panel.maximumHeight
++                    } else {
++                        return panel.screenGeometry.height
++                    }
++                }
+                 return containment.Layout.preferredHeight
+             } else {
++                if (containment.Layout.fillWidth) {
++                    if (panel.lengthMode == Panel.Global.Custom) {
++                        return panel.maximumWidth
++                    } else {
++                        return panel.screenGeometry.width
++                    }
++                }
+                 return containment.Layout.preferredWidth
+             }
+         }
+-- 
+GitLab
+

diff --git a/kde-plasma/plasma-desktop/plasma-desktop-6.2.3-r1.ebuild b/kde-plasma/plasma-desktop/plasma-desktop-6.2.3-r1.ebuild
index 429089f8e01a..b7e4dd945e2e 100644
--- a/kde-plasma/plasma-desktop/plasma-desktop-6.2.3-r1.ebuild
+++ b/kde-plasma/plasma-desktop/plasma-desktop-6.2.3-r1.ebuild
@@ -129,6 +129,7 @@ BDEPEND="
 PATCHES=(
 	"${FILESDIR}/${PN}-6.1.80-override-include-dirs.patch" # downstream patch
 	"${FILESDIR}/${P}-tablet-kcm-optional.patch" # bug 942817
+	"${FILESDIR}/${P}-panel-fix-flexible-spacer.patch" # KDE-bug 495378
 )
 
 src_prepare() {


             reply	other threads:[~2024-11-18 20:09 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-18 20:09 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-09 19:30 [gentoo-commits] repo/gentoo:master commit in: kde-plasma/plasma-desktop/, kde-plasma/plasma-desktop/files/ Andreas Sturmlechner
2024-11-18 20:09 Andreas Sturmlechner
2023-12-23 18:30 Andreas Sturmlechner
2023-02-01  9:47 Andreas Sturmlechner
2023-01-15 14:36 Andreas Sturmlechner
2022-11-30  1:44 Sam James
2022-10-10 12:23 Andreas Sturmlechner
2022-10-10 12:23 Andreas Sturmlechner
2022-10-10  9:54 Andreas Sturmlechner
2022-08-07 15:51 Andreas Sturmlechner
2022-07-11 16:00 Andreas Sturmlechner
2022-04-18 14:17 Andreas Sturmlechner
2022-02-19 16:27 Andreas Sturmlechner
2021-09-16 11:14 Andreas Sturmlechner
2020-05-16 22:38 Andreas Sturmlechner
2020-05-16 22:38 Andreas Sturmlechner
2020-01-12 16:20 Andreas Sturmlechner
2018-11-29 13:51 Andreas Sturmlechner
2018-11-29 10:09 Andreas Sturmlechner
2018-09-04 12:25 Andreas Sturmlechner
2015-12-09 11:53 Michael Palimaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1731960226.b59fa71c78d94704ceaeb4bf0aa7941dd1653339.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox