From 28c7dc1f5e8b206353df69429eeca292deda7be4 Mon Sep 17 00:00:00 2001 From: Natalie Clarius Date: Wed, 28 Sep 2022 15:31:29 +0000 Subject: [PATCH] kdecoration: reword "draw borders on screen edges" option The "Allow resizing maximized windows from window edges" option is worded misleadingly: What it actually does is continue showing window borders whenever they touch a screen edge. It does not only affect maximized windows, and it is also not just about resizability, but the presence of borders. This commit changes the wording in the UI to reflect more accurately what it does. --- kdecoration/config/breezeconfigwidget.cpp | 4 + .../config/ui/breezeconfigurationui.ui | 146 +++++++++++------- 2 files changed, 92 insertions(+), 58 deletions(-) diff --git a/kdecoration/config/breezeconfigwidget.cpp b/kdecoration/config/breezeconfigwidget.cpp index 1e50a987..12e8375a 100644 --- a/kdecoration/config/breezeconfigwidget.cpp +++ b/kdecoration/config/breezeconfigwidget.cpp @@ -14,6 +14,7 @@ #include #include +#include namespace Breeze { @@ -41,6 +42,9 @@ ConfigWidget::ConfigWidget(QWidget *parent, const QVariantList &args) // track exception changes connect(m_ui.exceptions, &ExceptionListWidget::changed, this, &ConfigWidget::updateChanged); + + // set formatting + m_ui.drawBorderOnMaximizedWindowsHelpLabel->setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont)); } //_________________________________________________________ diff --git a/kdecoration/config/ui/breezeconfigurationui.ui b/kdecoration/config/ui/breezeconfigurationui.ui index 39db4bf1..67f13256 100644 --- a/kdecoration/config/ui/breezeconfigurationui.ui +++ b/kdecoration/config/ui/breezeconfigurationui.ui @@ -46,6 +46,43 @@ + + + + + Left + + + + + Center + + + + + Center (Full Width) + + + + + Right + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + @@ -88,44 +125,65 @@ - - - - - Left - - - - - Center - - + + + + Draw a circle around close button + + + + + + + Draw border on maximized and tiled windows + + + + + - - Center (Full Width) - + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 25 + 20 + + + - - Right - + + + This setting will allow you to resize from window edges touching screen edges. Scrollbars and window close buttons will shift positions and will not touch screen edges. + + + true + + - + - - - - Qt::Horizontal + + + + Draw titlebar background gradient - - - 40 - 20 - + + + + + + Add handle to resize windows with no border - + - + Qt::Vertical @@ -138,34 +196,6 @@ - - - - Add handle to resize windows with no border - - - - - - - Allow resizing maximized windows from window edges - - - - - - - Draw a circle around close button - - - - - - - Draw titlebar background gradient - - -