From 58cb9544e413a940ddb5bbcc38528572763f3be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20I=C3=B1iguez=20Goia?= Date: Wed, 26 Feb 2025 21:25:48 +0100 Subject: [PATCH] ui: popups layuout improvements - Removed hardcoded sizes for buttons. - Buttons horizontal layout adjusted to properly show the countdown (#1274). Note: 'Maximum' vertical policy does not seem to work with qt-material and QToolButton, the button height is resized to 0. 'Preferred' seems to work as expected. --- ui/opensnitch/res/prompt.ui | 154 +++++++----------------------------- 1 file changed, 30 insertions(+), 124 deletions(-) diff --git a/ui/opensnitch/res/prompt.ui b/ui/opensnitch/res/prompt.ui index 4a12a8e7..5e2efe4e 100644 --- a/ui/opensnitch/res/prompt.ui +++ b/ui/opensnitch/res/prompt.ui @@ -6,8 +6,8 @@ 0 0 - 563 - 339 + 560 + 316 @@ -36,12 +36,12 @@ 3 - + - 6 + 3 - 4 + 3 @@ -51,18 +51,6 @@ 0 - - - 97 - 26 - - - - - 204 - 30 - - from this executable @@ -103,18 +91,6 @@ 0 - - - 97 - 26 - - - - - 204 - 30 - - once @@ -163,23 +139,11 @@ - + 0 0 - - - 97 - 26 - - - - - 204 - 30 - - @@ -206,18 +170,6 @@ 0 - - - 97 - 26 - - - - - 204 - 30 - - Allow @@ -230,21 +182,15 @@ - + 0 0 - - - 26 - 26 - - - 40 - 30 + 35 + 16777215 @@ -469,7 +415,7 @@ - + 0 0 @@ -484,7 +430,7 @@ true - 5 + 2 Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse @@ -601,7 +547,7 @@ - 16 + 12 75 true true @@ -727,7 +673,7 @@ - + 0 0 @@ -754,6 +700,12 @@ + + + 0 + 0 + + 10 @@ -781,23 +733,10 @@ - - - - Qt::Horizontal - - - - 20 - 20 - - - - - + 0 0 @@ -825,7 +764,7 @@ - + 0 0 @@ -846,17 +785,11 @@ - + 0 0 - - - 90 - 0 - - 10 @@ -895,17 +828,11 @@ - + 0 0 - - - 90 - 0 - - 10 @@ -922,24 +849,18 @@ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse - + 0 0 - - - 90 - 0 - - 10 @@ -963,14 +884,11 @@ - + 0 0 - - 0 - @@ -983,7 +901,7 @@ - + 0 0 @@ -1004,17 +922,11 @@ - + 0 0 - - - 90 - 0 - - 10 @@ -1038,7 +950,7 @@ - + 0 0 @@ -1059,17 +971,11 @@ - + 0 0 - - - 90 - 0 - - 10