Skip to content

Commit

Permalink
New separator styles, simplify translucent query.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Aug 17, 2022
1 parent b2f2b7b commit 0e386e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spellcheck/spelling_highlighter_helper.cpp
Expand Up @@ -29,12 +29,12 @@ bool IsContextMenuTop(not_null<QMenu*> 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);

Expand Down

0 comments on commit 0e386e2

Please sign in to comment.