From e1a25c6923cc460403451aecdcf88aa0009d508b Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 18 Dec 2018 16:24:14 +0100 Subject: Color scheme: Reduce minimum size and add scroll area to details First thing that should happen when reducing the size of the preferences dialog is to add a vertical scroll bar to the color scheme details, not to the whole settings page. Change-Id: Ifaa6d21627f26ec1a6426cdae2477f6143454c57 Reviewed-by: Alessandro Portale --- src/plugins/texteditor/colorschemeedit.cpp | 2 + src/plugins/texteditor/colorschemeedit.ui | 1237 +++++++++++++++------------- src/plugins/texteditor/fontsettingspage.ui | 4 +- 3 files changed, 647 insertions(+), 596 deletions(-) (limited to 'src/plugins/texteditor') diff --git a/src/plugins/texteditor/colorschemeedit.cpp b/src/plugins/texteditor/colorschemeedit.cpp index 8049c191a3..ff5bc543cb 100644 --- a/src/plugins/texteditor/colorschemeedit.cpp +++ b/src/plugins/texteditor/colorschemeedit.cpp @@ -152,6 +152,8 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) : { setContentsMargins(0, layoutSpacing, 0, 0); m_ui->setupUi(this); + m_ui->detailsScrollArea->viewport()->setAutoFillBackground(false); + m_ui->scrollAreaWidgetContents->setAutoFillBackground(false); m_ui->itemList->setModel(m_formatsModel); populateUnderlineStyleComboBox(); diff --git a/src/plugins/texteditor/colorschemeedit.ui b/src/plugins/texteditor/colorschemeedit.ui index fa31aa590d..e9bb34596b 100644 --- a/src/plugins/texteditor/colorschemeedit.ui +++ b/src/plugins/texteditor/colorschemeedit.ui @@ -7,10 +7,10 @@ 0 0 462 - 389 + 416 - + 0 @@ -23,296 +23,11 @@ 0 - - 0 - - - - - - 75 - true - - - - Relative Foreground - - - - - - - - 0 - 0 - - - - Foreground: - - - foregroundToolButton - - - - - - - - 0 - 0 - - - - - 0 - 18 - - - - - 16777215 - 18 - - - - - - - - - 0 - 0 - - - - Lightness: - - - - - - - - 0 - 0 - - - - - - - - - - - Qt::Vertical - - - - 200 - 0 - - - - - - - - - 0 - 0 - - - - Erase background. - - - x - - - Qt::LeftArrow - - - - - - - - 0 - 0 - - - - - 0 - 6 - - - - - 16777215 - 6 - - - - - - - - -1.000000000000000 - - - 1.000000000000000 - - - 0.050000000000000 - - - - - - - - 0 - 0 - - - - Lightness: - - - - - - - - 0 - 0 - - - - Erase foreground. - - - x - - - Qt::LeftArrow - - - - - - - - 0 - 0 - - - - Saturation: - - - - - - - Italic - - - - - - - -1.000000000000000 - - - 1.000000000000000 - - - 0.050000000000000 - - - - - - - - 0 - 0 - - - - - 0 - 6 - - - - - 16777215 - 6 - - - - - - - - -1.000000000000000 - - - 1.000000000000000 - - - 0.050000000000000 - - - - - - - - 0 - 0 - - - - Background: - - - backgroundToolButton - - - - - - - - 0 - 0 - - - - - 0 - 18 - - - - - 16777215 - 18 - - - - - + - 1 + 0 0 @@ -324,316 +39,650 @@ - - - - - 75 - true - - - - Font - - - - - - - - 0 - 0 - - - - Saturation: - - - - - - - Bold - - - - - - - - 0 - 0 - - - - - 0 - 6 - - - - - 16777215 - 6 - - - - - - - - - 0 - 0 - - - - - 0 - 6 - - - - - 16777215 - 6 - - - - - - + + - + 0 0 - - - 0 - 18 - - - - - 16777215 - 18 - - - - - - - - - 0 - 0 - - - - - 0 - 6 - - - - - 16777215 - 6 - - - - - - - - - 0 - 0 - - - - - 0 - 6 - - - - - 16777215 - 6 - - - - - - - - - 0 - 0 - - - - - - - - - - - - 75 - true - - - - Underline - - - - - - - - 0 - 0 - - - - Color: - - - backgroundToolButton - - - - - - - - 75 - true - - - - Relative Background - - - - - - - - 0 - 0 - - - - - 0 - 18 - - - - - 16777215 - 18 - - - - - - - - -1.000000000000000 - - - 1.000000000000000 - - - 0.050000000000000 - - - - - - - - 0 - 0 - - - - - - - - - - - - 0 - 0 - - - - Erase background. - - - x - - - Qt::LeftArrow - - - - - - - - - - - 0 - 0 - - - - - 0 - 6 - - - - - 16777215 - 6 - - - - - - - - - 0 - 0 - - - - - 0 - 6 - - - - - 16777215 - 6 - - + + QFrame::NoFrame + + + QFrame::Plain + + + Qt::ScrollBarAlwaysOff + + + QAbstractScrollArea::AdjustToContents + + + + + 0 + 0 + 212 + 390 + + + + + QLayout::SetFixedSize + + + 0 + + + 0 + + + 20 + + + 0 + + + 0 + + + + + + 75 + true + + + + Relative Foreground + + + + + + + + 0 + 0 + + + + Foreground: + + + foregroundToolButton + + + + + + + + 0 + 0 + + + + + 0 + 18 + + + + + 16777215 + 18 + + + + + + + + + 0 + 0 + + + + Lightness: + + + + + + + + 0 + 0 + + + + + + + + + + + Qt::Vertical + + + + 200 + 0 + + + + + + + + + 0 + 0 + + + + Erase background. + + + x + + + Qt::LeftArrow + + + + + + + + 0 + 0 + + + + + 0 + 6 + + + + + 16777215 + 6 + + + + + + + + -1.000000000000000 + + + 1.000000000000000 + + + 0.050000000000000 + + + + + + + + 0 + 0 + + + + Lightness: + + + + + + + + 0 + 0 + + + + Erase foreground. + + + x + + + Qt::LeftArrow + + + + + + + + 0 + 0 + + + + Saturation: + + + + + + + Italic + + + + + + + -1.000000000000000 + + + 1.000000000000000 + + + 0.050000000000000 + + + + + + + + 0 + 0 + + + + + 0 + 6 + + + + + 16777215 + 6 + + + + + + + + -1.000000000000000 + + + 1.000000000000000 + + + 0.050000000000000 + + + + + + + + 0 + 0 + + + + Background: + + + backgroundToolButton + + + + + + + + 0 + 0 + + + + + 0 + 18 + + + + + 16777215 + 18 + + + + + + + + + 75 + true + + + + Font + + + + + + + + 0 + 0 + + + + Saturation: + + + + + + + Bold + + + + + + + + 0 + 0 + + + + + 0 + 6 + + + + + 16777215 + 6 + + + + + + + + + 0 + 0 + + + + + 0 + 6 + + + + + 16777215 + 6 + + + + + + + + + 0 + 0 + + + + + 0 + 18 + + + + + 16777215 + 18 + + + + + + + + + 0 + 0 + + + + + 0 + 6 + + + + + 16777215 + 6 + + + + + + + + + 0 + 0 + + + + + 0 + 6 + + + + + 16777215 + 6 + + + + + + + + + 0 + 0 + + + + + + + + + + + + 75 + true + + + + Underline + + + + + + + + 0 + 0 + + + + Color: + + + backgroundToolButton + + + + + + + + 75 + true + + + + Relative Background + + + + + + + + 0 + 0 + + + + + 0 + 18 + + + + + 16777215 + 18 + + + + + + + + -1.000000000000000 + + + 1.000000000000000 + + + 0.050000000000000 + + + + + + + + 0 + 0 + + + + + + + + + + + + 0 + 0 + + + + Erase background. + + + x + + + Qt::LeftArrow + + + + + + + + + + + 0 + 0 + + + + + 0 + 6 + + + + + 16777215 + 6 + + + + + + + + + 0 + 0 + + + + + 0 + 6 + + + + + 16777215 + 6 + + + + + + diff --git a/src/plugins/texteditor/fontsettingspage.ui b/src/plugins/texteditor/fontsettingspage.ui index c47c4eb940..8c3a0baa50 100644 --- a/src/plugins/texteditor/fontsettingspage.ui +++ b/src/plugins/texteditor/fontsettingspage.ui @@ -6,7 +6,7 @@ 0 0 - 614 + 639 306 @@ -173,7 +173,7 @@ - + 0 1 -- cgit v1.2.1