Kaydet (Commit) 59647fa4 authored tarafından Xisco Faulí's avatar Xisco Faulí

tdf#122761: Revert "Resolves tdf#122118 - Toolbar dropdown button triangles are too large"

This reverts commit b56ad2a1.

Change-Id: I0fa94c4a027a85a14e85c53a18443d97fa862a59
Reviewed-on: https://gerrit.libreoffice.org/66507Reviewed-by: 's avatarHeiko Tietze <tietze.heiko@gmail.com>
Tested-by: 's avatarXisco Faulí <xiscofauli@libreoffice.org>
üst 2f7e02e7
......@@ -2492,12 +2492,9 @@ static void ImplDrawDropdownArrow(vcl::RenderContext& rRenderContext, const tool
float fScaleFactor = rRenderContext.GetDPIScaleFactor();
tools::Polygon aPoly(4);
int iTBHeight = rRenderContext.GetOutputSize().Height(); //scale triangle depending on theme/toolbar height
long width = round(iTBHeight/5.5) * fScaleFactor; // 7 for gtk, 5 for gen
long height = round(iTBHeight/9.5) * fScaleFactor; // 4 for gtk, 3 for gen
if (width < 4) width = 4;
if (height < 3) height = 3;
long width = 7 * fScaleFactor;
long height = 4 * fScaleFactor;
long x = rDropDownRect.Left() + (rDropDownRect.getWidth() - width)/2;
long y = rDropDownRect.Top() + (rDropDownRect.getHeight() - height)/2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment