From fad98c8641342a77241124dd98e0cb781daef4ad Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Wed, 24 Apr 2019 22:12:37 +0900 Subject: tdf#124572 TabBar new look, protected icon, width and height MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the first try of a new TabBar look - borders have been removed, selected tab doesn't change the font to bold, adjustment to the selected tab line. Width and height of a tab item has been adjusted to make it better to fit the icons in and to not be so cramped. Draw "protected" status of an tab icon (in Calc) as an icon and not as a unicode glyph. Change-Id: If2ee930a573343166fbe9efcd94ae5159a620f22 Reviewed-on: https://gerrit.libreoffice.org/71238 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- sd/source/ui/view/grviewsh.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sd/source/ui/view/grviewsh.cxx') diff --git a/sd/source/ui/view/grviewsh.cxx b/sd/source/ui/view/grviewsh.cxx index b31013043ba3..db9b9225efee 100644 --- a/sd/source/ui/view/grviewsh.cxx +++ b/sd/source/ui/view/grviewsh.cxx @@ -27,6 +27,8 @@ #include +constexpr sal_Int32 TAB_HEIGHT_MARGIN = 10; + namespace sd { GraphicViewShell::GraphicViewShell ( @@ -74,7 +76,7 @@ void GraphicViewShell::ArrangeGUIElements() Size aSize = mpLayerTabBar->GetSizePixel(); const Size aFrameSize (GetViewFrame()->GetWindow().GetOutputSizePixel()); - aSize.setHeight( GetParentWindow()->GetFont().GetFontHeight() + 4 ); + aSize.setHeight(GetParentWindow()->GetFont().GetFontHeight() + TAB_HEIGHT_MARGIN); aSize.setWidth( aFrameSize.Width() ); Point aPos (0, maViewSize.Height() - aSize.Height()); -- cgit