From a626e495183333e765b80d8d280e73ef8d620523 Mon Sep 17 00:00:00 2001 From: Vince Date: Fri, 9 Apr 2021 20:16:57 +0800 Subject: [PATCH] Fixed #175 --- src/sass/gtk/_common-3.0.scss | 8 ++++++-- src/sass/gtk/_common-4.0.scss | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/sass/gtk/_common-3.0.scss b/src/sass/gtk/_common-3.0.scss index fb18965..44ae224 100644 --- a/src/sass/gtk/_common-3.0.scss +++ b/src/sass/gtk/_common-3.0.scss @@ -3363,12 +3363,14 @@ calendar { // Dialogs // +$messagedialog_bg: if($trans == 'true', rgba($bg_color, 0.95), $bg_color); + messagedialog { // Message Dialog styling - &.background { background-color: rgba($bg_color, 0.95); } + &.background { background-color: rgba($messagedialog_bg, 1); } .titlebar { min-height: 28px; - background-color: rgba($bg_color, 0.95); + background-color: rgba($messagedialog_bg, 1); border: none; } @@ -3417,6 +3419,8 @@ messagedialog { // Message Dialog styling border-bottom-right-radius: $wm_radius; border: none; } + + &.background, .titlebar { background-color: $messagedialog_bg; } } } diff --git a/src/sass/gtk/_common-4.0.scss b/src/sass/gtk/_common-4.0.scss index 0b06044..08088a1 100644 --- a/src/sass/gtk/_common-4.0.scss +++ b/src/sass/gtk/_common-4.0.scss @@ -3558,12 +3558,14 @@ calendar { // Dialogs // +$messagedialog_bg: if($trans == 'true', rgba($bg_color, 0.95), $bg_color); + window.dialog.message { // Message Dialog styling - &.background { background-color: rgba($bg_color, 0.95); } + &.background { background-color: rgba($messagedialog_bg, 1); } .titlebar { min-height: 28px; - background-color: rgba($bg_color, 0.95); + background-color: rgba($messagedialog_bg, 1); border: none; } @@ -3621,6 +3623,8 @@ window.dialog.message { // Message Dialog styling border-bottom-right-radius: $wm_radius; border: none; } + + &.background, .titlebar { background-color: $messagedialog_bg; } } }