Changeset 29590 in osm for applications


Ignore:
Timestamp:
2013-05-13T21:43:06+02:00 (11 years ago)
Author:
zverik
Message:

[josm_geochat] fixed font sizes

Location:
applications/editors/josm/plugins/geochat/src/geochat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/geochat/src/geochat/ChatPaneManager.java

    r29588 r29590  
    135135        chatPane.setEditable(false);
    136136        Font font = chatPane.getFont();
    137         float sizeParameter = Main.pref.getInteger("geochat.panel.fontsize", -1);
    138         float size = sizeParameter;
    139         if ( sizeParameter <= 0 ) size += font.getSize2D();
    140         chatPane.setFont(font.deriveFont( size ));
    141 
     137        float size = Main.pref.getInteger("geochat.fontsize", -1);
     138        if( size < 6 )
     139            size += font.getSize2D();
     140        chatPane.setFont(font.deriveFont(size));
    142141//        DefaultCaret caret = (DefaultCaret)chatPane.getCaret(); // does not work
    143142//        caret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);
  • applications/editors/josm/plugins/geochat/src/geochat/GeoChatPanel.java

    r29588 r29590  
    5656            }
    5757        };
    58        
    59         Font font = input.getFont();
    60         float sizeParameter = Main.pref.getInteger("geochat.input.fontsize", 0);
    61         float size = sizeParameter;
    62         if ( sizeParameter <= 0 ) size += font.getSize2D();
    63         input.setFont(font.deriveFont( size ));
    6458       
    6559        String defaultUserName = constructUserName();
Note: See TracChangeset for help on using the changeset viewer.