diff --git a/src/gui/ApplicationSettingsWidgetGeneral.ui b/src/gui/ApplicationSettingsWidgetGeneral.ui index 56b2d124a..5a9c76a6b 100644 --- a/src/gui/ApplicationSettingsWidgetGeneral.ui +++ b/src/gui/ApplicationSettingsWidgetGeneral.ui @@ -1357,6 +1357,9 @@ Remember last typed entry for: + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index a2b946563..af3dddf58 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -2015,6 +2015,7 @@ void MainWindow::initViewMenu() restartApp(tr("You must restart the application to apply this setting. Would you like to restart now?")); } else { kpxcApp->applyTheme(); + kpxcApp->applyFontSize(); } }); diff --git a/src/gui/dbsettings/DatabaseSettingsWidgetEncryption.ui b/src/gui/dbsettings/DatabaseSettingsWidgetEncryption.ui index dd5efe671..581bc6ca2 100644 --- a/src/gui/dbsettings/DatabaseSettingsWidgetEncryption.ui +++ b/src/gui/dbsettings/DatabaseSettingsWidgetEncryption.ui @@ -537,7 +537,6 @@ transformBenchmarkButton memorySpinBox parallelismSpinBox - advancedSettingsButton diff --git a/src/gui/styles/base/BaseStyle.cpp b/src/gui/styles/base/BaseStyle.cpp index d849ef94a..58beba8b9 100644 --- a/src/gui/styles/base/BaseStyle.cpp +++ b/src/gui/styles/base/BaseStyle.cpp @@ -319,6 +319,7 @@ namespace Phantom S_sliderHandle_pressed, S_sliderHandle_specular, S_sliderHandle_pressed_specular, + S_splitterHandle, S_base_shadow, S_base_divider, S_windowText_disabled, @@ -435,7 +436,8 @@ namespace Phantom isLight ? colors[S_button_pressed] : Dc::adjustLightness(colors[S_button_pressed], 0.03); colors[S_sliderHandle_pressed_specular] = isLight ? Dc::specularOf(colors[S_sliderHandle_pressed]) : Dc::lightSpecularOf(colors[S_sliderHandle_pressed]); - + colors[S_splitterHandle] = + isLight ? Dc::adjustLightness(colors[S_window], -0.1) : Dc::adjustLightness(colors[S_window], 0.15); colors[S_base_shadow] = Dc::overhangShadowOf(colors[S_base]); colors[S_base_divider] = colors[S_window_divider]; colors[S_windowText_disabled] = pal.color(QPalette::Disabled, QPalette::WindowText); @@ -2208,7 +2210,7 @@ void BaseStyle::drawControl(ControlElement element, if (r.width() < 5 || r.height() < 5) break; int length = Ph::dpiScaled(Ph::SplitterMaxLength); - int thickness = Ph::dpiScaled(1); + int thickness = Ph::dpiScaled(2); QSize size; if (option->state & State_Horizontal) { if (r.height() < length) @@ -2220,8 +2222,7 @@ void BaseStyle::drawControl(ControlElement element, size = QSize(length, thickness); } QRect filledRect = QStyle::alignedRect(option->direction, Qt::AlignCenter, size, r); - painter->fillRect(filledRect, swatch.color(S_button_specular)); - Ph::fillRectOutline(painter, filledRect.adjusted(-1, 0, 1, 0), 1, swatch.color(S_window_divider)); + painter->fillRect(filledRect, swatch.color(S_splitterHandle)); break; } // TODO update this for phantom diff --git a/src/gui/styles/dark/darkstyle.qss b/src/gui/styles/dark/darkstyle.qss index 716430113..e65efded6 100644 --- a/src/gui/styles/dark/darkstyle.qss +++ b/src/gui/styles/dark/darkstyle.qss @@ -29,10 +29,6 @@ QPushButton:default:hover, QPushButton:checked:hover { background: #2E582E; } -QSplitterHandle { - background-color: #56565A; -} - QToolTip { color: #BFBFBF; background-color: #2D532D;