Changeset 29590 in osm for applications/editors
- Timestamp:
- 2013-05-13T21:43:06+02:00 (12 years ago)
- 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 135 135 chatPane.setEditable(false); 136 136 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)); 142 141 // DefaultCaret caret = (DefaultCaret)chatPane.getCaret(); // does not work 143 142 // caret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE); -
applications/editors/josm/plugins/geochat/src/geochat/GeoChatPanel.java
r29588 r29590 56 56 } 57 57 }; 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 ));64 58 65 59 String defaultUserName = constructUserName();
Note:
See TracChangeset
for help on using the changeset viewer.