Changeset 9350 in josm


Ignore:
Timestamp:
2016-01-09T12:21:27+01:00 (8 years ago)
Author:
simon04
Message:

fix #6171 - Improve OAuth message in wizard

Since OAuth is considered safer than Basic authentication,

  • change background color to light green (instead of yellow)
  • drop "Warning: JOSM does login once using a secure connection." completely
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java

    r9059 r9350  
    9595        HTMLEditorKit kit = (HTMLEditorKit) pnlMessage.getEditorPane().getEditorKit();
    9696        kit.getStyleSheet().addRule(
    97                 ".warning-body {background-color:rgb(253,255,221);padding: 10pt; " +
     97                ".warning-body {background-color:#DDFFDD; padding: 10pt; " +
    9898                "border-color:rgb(128,128,128);border-style: solid;border-width: 1px;}");
    9999        kit.getStyleSheet().addRule("ol {margin-left: 1cm}");
     
    136136        valPassword = new PasswordValidator(tfPassword);
    137137        valPassword.validate();
    138 
    139         gc.gridy = 3;
    140         gc.gridx = 0;
    141         gc.anchor = GridBagConstraints.NORTHWEST;
    142         gc.fill = GridBagConstraints.HORIZONTAL;
    143         gc.weightx = 1.0;
    144         gc.gridwidth = 2;
    145         pnlMessage = new HtmlPanel();
    146         kit = (HTMLEditorKit) pnlMessage.getEditorPane().getEditorKit();
    147         kit.getStyleSheet().addRule(
    148                 ".warning-body {background-color:rgb(253,255,221);padding: 10pt; " +
    149                 "border-color:rgb(128,128,128);border-style: solid;border-width: 1px;}");
    150         kit.getStyleSheet().addRule("ol {margin-left: 1cm}");
    151         pnlMessage.setText("<html><body>"
    152                 + "<p class=\"warning-body\">"
    153                 + tr("<strong>Warning:</strong> JOSM does login <strong>once</strong> using a secure connection.")
    154                 + "</p>"
    155                 + "</body></html>");
    156         pnl.add(pnlMessage, gc);
    157138
    158139        // filler - grab remaining space
Note: See TracChangeset for help on using the changeset viewer.