From afeb3d2f26dd86a954a1ce64cbddbd7d11cd5930 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 27 Oct 2019 16:24:47 +0100 Subject: [PATCH] msgbox: ensure top allignment of buttons in message boxes Behavior with definied frame colors, e.g. error and info boxes, is untouched. --- src/gui/widget/msgbox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/widget/msgbox.cpp b/src/gui/widget/msgbox.cpp index 38de6c61a..f4640ac7b 100644 --- a/src/gui/widget/msgbox.cpp +++ b/src/gui/widget/msgbox.cpp @@ -105,7 +105,7 @@ void CMsgBox::init( const int& Height, col_frame = color_frame; col_body = color_body; col_shadow = color_shadow; - fr_thickness = g_settings.theme.message_frame_enable ? frame_width : 0; + fr_thickness = g_settings.theme.message_frame_enable || col_frame != HINTBOX_DEFAULT_FRAME_COLOR ? frame_width : 0; //enable footer and add its height showFooter(true); @@ -119,6 +119,7 @@ void CMsgBox::init( const int& Height, int h_current = height; h_current += ccw_footer->getHeight(); height = max(max(MSGBOX_MIN_HEIGHT, Height), h_current); + ccw_footer->ButtonsOnTop(true); //ensure matching height for screen height = min(MAX_WINDOW_HEIGHT, height);