From 2a3a5dfc0bae11914d529f6f1888f1deacaf54bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 1 May 2017 12:49:55 +0200 Subject: [PATCH] theme: Use font-relative width for prompts The usual expectation when selecting large fonts is for content to be bigger, not that less content is displayed. While not always possible, there's no reason not to scale modal dialogues with the font size. https://bugzilla.gnome.org/show_bug.cgi?id=782000 --- data/theme/gnome-shell-high-contrast.css | 10 +++++----- data/theme/gnome-shell-sass | 2 +- data/theme/gnome-shell.css | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/data/theme/gnome-shell-high-contrast.css b/data/theme/gnome-shell-high-contrast.css index ed003f451..b899b5433 100644 --- a/data/theme/gnome-shell-high-contrast.css +++ b/data/theme/gnome-shell-high-contrast.css @@ -300,7 +300,7 @@ StScrollBar { padding-bottom: 6px; } .mount-question-dialog-subject { - max-width: 500px; } + max-width: 34em; } .show-processes-dialog-subject:rtl, .mount-question-dialog-subject:rtl { @@ -345,7 +345,7 @@ StScrollBar { /* Password or Authentication Dialog */ .prompt-dialog { - width: 500px; + width: 34em; border: 3px solid rgba(238, 238, 236, 0.2); } .prompt-dialog-main-layout { @@ -1010,9 +1010,9 @@ StScrollBar { /* NETWORK DIALOGS */ .nm-dialog { - max-height: 500px; - min-height: 450px; - min-width: 470px; } + max-height: 34em; + min-height: 31em; + min-width: 32em; } .nm-dialog-content { spacing: 20px; diff --git a/data/theme/gnome-shell-sass b/data/theme/gnome-shell-sass index e94bce1fc..b0640081e 160000 --- a/data/theme/gnome-shell-sass +++ b/data/theme/gnome-shell-sass @@ -1 +1 @@ -Subproject commit e94bce1fcfbcbe00f6a6375e992192c9e1a4ffb5 +Subproject commit b0640081e72fa96cd9e54e794e1cad45350ef232 diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 90aef5061..3896c99be 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -300,7 +300,7 @@ StScrollBar { padding-bottom: 6px; } .mount-question-dialog-subject { - max-width: 500px; } + max-width: 34em; } .show-processes-dialog-subject:rtl, .mount-question-dialog-subject:rtl { @@ -345,7 +345,7 @@ StScrollBar { /* Password or Authentication Dialog */ .prompt-dialog { - width: 500px; + width: 34em; border: 3px solid rgba(238, 238, 236, 0.2); } .prompt-dialog-main-layout { @@ -1010,9 +1010,9 @@ StScrollBar { /* NETWORK DIALOGS */ .nm-dialog { - max-height: 500px; - min-height: 450px; - min-width: 470px; } + max-height: 34em; + min-height: 31em; + min-width: 32em; } .nm-dialog-content { spacing: 20px;