summaryrefslogtreecommitdiff
path: root/vcl/aqua
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2010-11-25 00:25:02 +0100
committerThorsten Behrens <tbehrens@novell.com>2010-11-25 00:25:02 +0100
commitafd5ff21ce4e5859a92eef96157e3779c5b30853 (patch)
tree15056ea9168fa5ea1e02510550501f418f8c86d3 /vcl/aqua
parent5973a9a6552d185671068c9d3a1abb1c7c792924 (diff)
Make toolbar icon size native-widget controlled
This improves on the gui-toolbox-large-icons.diff, in that the icon size is set to 'auto', and the native widget code decides which size to pick. This was chiefly triggered by Mac user complaints, not so much liking the large icons there.
Diffstat (limited to 'vcl/aqua')
-rw-r--r--vcl/aqua/source/window/salframe.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/aqua/source/window/salframe.cxx b/vcl/aqua/source/window/salframe.cxx
index 27573318228c..e280a583b3d5 100644
--- a/vcl/aqua/source/window/salframe.cxx
+++ b/vcl/aqua/source/window/salframe.cxx
@@ -1170,6 +1170,8 @@ void AquaSalFrame::UpdateSettings( AllSettings& rSettings )
getResolution( nDPIX, nDPIY );
aAppFont = getFont( [NSFont systemFontOfSize: 0], nDPIY, aAppFont );
+ aStyleSettings.SetToolbarIconSize( nDPIY > 160 ? STYLE_TOOLBAR_ICONSIZE_LARGE : STYLE_TOOLBAR_ICONSIZE_SMALL );
+
// TODO: better mapping of aqua<->ooo font settings
aStyleSettings.SetAppFont( aAppFont );
aStyleSettings.SetHelpFont( aAppFont );