From 0e386e22cb6ba8a114b569840a635e096dcb645e Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 17 Aug 2022 21:03:39 +0300 Subject: [PATCH] New separator styles, simplify translucent query. --- spellcheck/spelling_highlighter_helper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spellcheck/spelling_highlighter_helper.cpp b/spellcheck/spelling_highlighter_helper.cpp index d271948..05a1766 100644 --- a/spellcheck/spelling_highlighter_helper.cpp +++ b/spellcheck/spelling_highlighter_helper.cpp @@ -29,12 +29,12 @@ bool IsContextMenuTop(not_null menu, QPoint mousePosition) { const auto itemHeight = st.itemPadding.top() + st.itemStyle.font->height + st.itemPadding.bottom(); - const auto sepHeight = st.separatorPadding.top() - + st.separatorWidth - + st.separatorPadding.bottom(); + const auto sepHeight = st.separator.padding.top() + + st.separator.width + + st.separator.padding.bottom(); const auto line = st::lineWidth; - const auto p = Ui::Platform::TranslucentWindowsSupported(mousePosition) + const auto p = Ui::Platform::TranslucentWindowsSupported() ? stPopup.shadow.extend : style::margins(line, line, line, line);