diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-04-24 22:12:37 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-04-25 08:39:38 +0200 |
commit | fad98c8641342a77241124dd98e0cb781daef4ad (patch) | |
tree | fadb5c9694876fb03fe46a798a6a8926bf7192b5 /sd | |
parent | e1ebb5cb58edc325bb30bb5eb992665fb861960f (diff) |
tdf#124572 TabBar new look, protected icon, width and height
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 <quikee@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/grviewsh.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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 <tools/helpers.hxx> +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()); |