From accd65c6524302d697e984ee1f184251489b7aff Mon Sep 17 00:00:00 2001 From: ochi12 Date: Mon, 23 Dec 2024 15:11:47 +0800 Subject: [PATCH 1/4] initial commit: reworked prompt dialog padding and border-radius --- gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss b/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss index ad4db615ad..aac5433d3d 100644 --- a/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss +++ b/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss @@ -1,5 +1,7 @@ /* Modal Dialogs */ +$dialog_padding: $base_padding * 4 $base_padding * 3 $base_padding * 3 $base_padding * 3; + .headline { @extend %title_4; } @@ -87,8 +89,9 @@ /* Password or Authentication Dialog */ .prompt-dialog { - width: 28em; - + width: 26em; + padding: $dialog_padding; // Yaru change: padding match to quick settings + border-radius: $yaru_menu_border_radius; // Yaru change: match border-radius to quick settings .modal-dialog-content-box { margin-bottom: $base_margin * 6; } From ce153ffabc32b177c2c404e1ea717e06abf3cbb9 Mon Sep 17 00:00:00 2001 From: ochi12 Date: Mon, 23 Dec 2024 18:24:43 +0800 Subject: [PATCH 2/4] reworked session dialogs --- gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss b/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss index aac5433d3d..64cc5dc106 100644 --- a/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss +++ b/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss @@ -27,7 +27,8 @@ $dialog_padding: $base_padding * 4 $base_padding * 3 $base_padding * 3 $base_pad /* End Session Dialog */ .end-session-dialog { width: 24em; - + border-radius: $yaru_menu_border_radius; + padding: $base_padding * 3; .end-session-dialog-battery-warning, .dialog-list-title { color: $warning_color; From e3c1945948c86f3dbb7574ecb9a176c7678847bb Mon Sep 17 00:00:00 2001 From: ochi12 Date: Mon, 23 Dec 2024 20:56:38 +0800 Subject: [PATCH 3/4] reworked run-dialog --- gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss b/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss index 64cc5dc106..48368617e4 100644 --- a/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss +++ b/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss @@ -75,9 +75,10 @@ $dialog_padding: $base_padding * 4 $base_padding * 3 $base_padding * 3 $base_pad /* Run Dialog */ .run-dialog { + padding: $base_padding * 3; // Yaru change: padding match to quick settings + border-radius: $yaru_menu_border_radius; // Yaru change: match border-radius to quick settings .modal-dialog-content-box { - margin-top: $base_padding * 4; - margin-bottom: $base_padding * 2; + margin-top: $base_padding * 3; } .run-dialog-entry { width: 20em; } .run-dialog-description { From a1e3638aab7f2889195def4590d68caddff118c9 Mon Sep 17 00:00:00 2001 From: ochi12 Date: Sat, 15 Feb 2025 22:43:22 +0800 Subject: [PATCH 4/4] Added All Necessary Comments --- gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss b/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss index 48368617e4..6c7c45f212 100644 --- a/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss +++ b/gnome-shell/src/gnome-shell-sass/widgets/_dialogs.scss @@ -1,5 +1,6 @@ /* Modal Dialogs */ +// Yaru Custom Definition $dialog_padding: $base_padding * 4 $base_padding * 3 $base_padding * 3 $base_padding * 3; .headline { @@ -27,8 +28,8 @@ $dialog_padding: $base_padding * 4 $base_padding * 3 $base_padding * 3 $base_pad /* End Session Dialog */ .end-session-dialog { width: 24em; - border-radius: $yaru_menu_border_radius; - padding: $base_padding * 3; + border-radius: $yaru_menu_border_radius; // Yaru Change: Override default radius + padding: $base_padding * 3; // Yaru Change: Override default padding .end-session-dialog-battery-warning, .dialog-list-title { color: $warning_color; @@ -78,7 +79,7 @@ $dialog_padding: $base_padding * 4 $base_padding * 3 $base_padding * 3 $base_pad padding: $base_padding * 3; // Yaru change: padding match to quick settings border-radius: $yaru_menu_border_radius; // Yaru change: match border-radius to quick settings .modal-dialog-content-box { - margin-top: $base_padding * 3; + margin-top: $base_padding * 3; // Yaru Change } .run-dialog-entry { width: 20em; } .run-dialog-description { @@ -91,7 +92,7 @@ $dialog_padding: $base_padding * 4 $base_padding * 3 $base_padding * 3 $base_pad /* Password or Authentication Dialog */ .prompt-dialog { - width: 26em; + width: 26em; // Yaru Change: Decrease from 28 to 26 em padding: $dialog_padding; // Yaru change: padding match to quick settings border-radius: $yaru_menu_border_radius; // Yaru change: match border-radius to quick settings .modal-dialog-content-box {