Wrap dialog titles

Resolves: https://issues.redhat.com/browse/RHEL-65821
This commit is contained in:
Florian Müllner 2024-11-12 12:57:44 +01:00
parent bf112e825f
commit 9f5780cf3e
No known key found for this signature in database
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,30 @@
From db2ac6188e3fb7ee727e9e71d5416e8f2b75f12b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Thu, 7 Nov 2024 16:23:48 +0100
Subject: [PATCH] dialog: Wrap titles
Dialogs should not use titles that are too long to fit, but if
they do, wrapping is more appropriate than ellipsizing.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3540>
---
js/ui/dialog.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/js/ui/dialog.js b/js/ui/dialog.js
index 11a27a0207..361fad3cb9 100644
--- a/js/ui/dialog.js
+++ b/js/ui/dialog.js
@@ -173,6 +173,9 @@ export const MessageDialogContent = GObject.registerClass({
this._title = new St.Label({style_class: 'message-dialog-title'});
this._description = new St.Label({style_class: 'message-dialog-description'});
+ this._title.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
+ this._title.clutter_text.line_wrap = true;
+
this._description.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
this._description.clutter_text.line_wrap = true;
--
2.47.0

View File

@ -43,6 +43,7 @@ Patch: 0001-st-texture-cache-purge-on-resume.patch
Patch: fix-some-js-warnings.patch
Patch: 0001-data-Update-generated-stylesheets.patch
Patch: 0001-theme-Welcome-Illustration.patch
Patch: 0001-dialog-Wrap-titles.patch
%define eds_version 3.45.1
%define gnome_desktop_version 44.0-7