Changeset 17116 in josm
- Timestamp:
- 2020-10-08T20:25:58+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r17109 r17116 913 913 setBorder(BorderFactory.createEmptyBorder(1, 2, 1, 2)); 914 914 915 latText.setForeground(PROP_FOREGROUND_COLOR.get()); 916 lonText.setForeground(PROP_FOREGROUND_COLOR.get()); 917 headingText.setForeground(PROP_FOREGROUND_COLOR.get()); 918 distText.setForeground(PROP_FOREGROUND_COLOR.get()); 919 nameText.setForeground(PROP_FOREGROUND_COLOR.get()); 920 915 921 latText.setInheritsPopupMenu(true); 916 922 lonText.setInheritsPopupMenu(true); … … 1158 1164 public void preferenceChanged(PreferenceChangeEvent e) { 1159 1165 String key = e.getKey(); 1160 if (key.startsWith("color.")) { 1161 key = key.substring("color.".length()); 1166 if (key.startsWith(NamedColorProperty.NAMED_COLOR_PREFIX)) { 1162 1167 if (PROP_BACKGROUND_COLOR.getKey().equals(key) || PROP_FOREGROUND_COLOR.getKey().equals(key)) { 1163 1168 for (ImageLabel il : new ImageLabel[]{latText, lonText, headingText, distText, nameText}) { -
trunk/src/org/openstreetmap/josm/gui/widgets/ImageLabel.java
r13369 r17116 56 56 } 57 57 58 /** 59 * Sets the foreground color of the text. 60 * @param fg text color 61 */ 62 @Override 63 public void setForeground(Color fg) { 64 super.setForeground(fg); 65 if (tf != null) { 66 tf.setForeground(fg); 67 } 68 } 69 58 70 @Override 59 71 public Dimension getPreferredSize() {
Note:
See TracChangeset
for help on using the changeset viewer.