Opened 6 years ago

Last modified 6 years ago

#18945 closed enhancement

GettingStarted: display JOSM banner — at Version 1

Reported by: simon04 Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: banner logo Cc:

Description (last modified by simon04)

We could display source:trunk/nodist/images/logo/bannerhorizontal.jpg on JOSM's GettingStarted panel (i.e. initial screen of JOSM).


Change History (2)

comment:1 by simon04, 6 years ago

Description: modified (diff)
  • src/org/openstreetmap/josm/gui/GettingStarted.java

    diff --git a/src/org/openstreetmap/josm/gui/GettingStarted.java b/src/org/openstreetmap/josm/gui/GettingStarted.java
    index 6083ed746..8166caaa2 100644
    a b private void getMOTD() {  
    175175            if (!contentInitialized && Config.getPref().getBoolean("help.displaymotd", true)) {
    176176                try {
    177177                    content = new MotdContent().updateIfRequiredString();
     178                    content = content.replaceFirst("<h1",
     179                            "<center><img src='https://josm.openstreetmap.de/export/16155/josm/trunk/nodist/images/logo/bannerhorizontal.jpg'></center><h1");
    178180                    contentInitialized = true;
    179181                    ProxyPreference.removeProxyPreferenceListener(this);
    180182                } catch (IOException ex) {
Note: See TracTickets for help on using tickets.