[gnome-shell-sass] dialogs: Use a smaller font-size if the title width exceeds the space
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-sass] dialogs: Use a smaller font-size if the title width exceeds the space
- Date: Mon, 17 Feb 2020 23:36:50 +0000 (UTC)
commit 7eb4ca49c5e9724f4b9f155e94ee4dd254036685
Author: Jonas Dreßler <verdre v0yd nl>
Date: Mon Feb 17 19:59:31 2020 +0100
dialogs: Use a smaller font-size if the title width exceeds the space
Since quite a few strings of dialogs provided by external programs are
not updated yet and the string freeze is already in effect, make sure we
don't break those dialogs by stripping aways large parts of the
headline.
To do that, detect if the title label is larger than the available width
and if it is, switch to a smaller font-size of 13pt. This makes sure we
still show about the same number of characters in the headline as we did
in previous releases.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1012
widgets/_dialogs.scss | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/widgets/_dialogs.scss b/widgets/_dialogs.scss
index 6ee2b36..229c54a 100644
--- a/widgets/_dialogs.scss
+++ b/widgets/_dialogs.scss
@@ -42,6 +42,11 @@
text-align: center;
font-size: 18pt;
font-weight: 800;
+
+ &.leightweight {
+ font-size: 13pt;
+ font-weight: 800;
+ }
}
.message-dialog-description { text-align: center; }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]