Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


One thing I'm looking at right now is changing the font style and size
dropdown width. With Gnome 3.10 out of the box, I can fit 7 digits into the
size box ;-) The font style dropdown also feels a bit too big. So I trimmed
25% off the style name and 33% from the font size which still leaves plenty
of room. I didn't consider to change the font name because it seems fine
and they are often longer than style names.

The first change is in a .src file so I can't do any special logic coding
and it doesn't seem like it should be necessary with APPFONT dimensions.
Would it be okay if we trimmed those values somewhat? I haven't looked yet
if logical dimensions are based on dpi or font size so maybe that should be
changed. My fixes can mostly be proven to not break the standard-res
behavior, but these two can't, And they might not necessarily look good on
Macs or various other scripts either.

Thanks!

-Keith
--------
diff --git a/svx/source/tbxctrls/tbcontrl.src
b/svx/source/tbxctrls/tbcontrl.src
index 4d2cfbc..665f0fa 100644
--- a/svx/source/tbxctrls/tbcontrl.src
+++ b/svx/source/tbxctrls/tbcontrl.src
@@ -74,7 +74,7 @@ String RID_SVXSTR_FRAME_COLOR
 ComboBox RID_SVXTBX_STYLE
 {
     HelpId = HID_STYLE_LISTBOX ;
-    Size = MAP_APPFONT ( 67 , 86 ) ;
+    Size = MAP_APPFONT ( 50 , 86 ) ;
     DropDown = TRUE ;
     Sort = TRUE ;
     AutoHScroll = TRUE ;
diff --git a/svx/source/tbxctrls/tbunocontroller.cxx
b/svx/source/tbxctrls/tbunocontroller.cxx
index 36e257e..c343844 100644
--- a/svx/source/tbxctrls/tbunocontroller.cxx
+++ b/svx/source/tbxctrls/tbunocontroller.cxx
@@ -85,7 +85,7 @@ SvxFontSizeBox_Impl::SvxFontSizeBox_Impl(
     FontSizeBox( _pParent, WinBits( WB_DROPDOWN ) ),

     m_pCtrl             ( &_rCtrl ),
-    m_aLogicalSize      ( 30,100 ),
+    m_aLogicalSize      ( 20,100 ),
     m_bRelease          ( true ),
     m_xDispatchProvider ( _rDispatchProvider ),
     m_xFrame            ( _xFrame )

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.