Ticket #2111: textlinkhudlogic.patch

File textlinkhudlogic.patch, 1004 bytes (added by diana, 15 years ago)
  • src/main/java/org/sophie2/main/func/text/view/TextLinksHud.java

    ### Eclipse Workspace Patch 1.0
    #P org.sophie2.main.func.text
     
    223223                                 
    224224                                TextLinksHud hud = event.getSource(TextLinksHud.class); 
    225225                                Link newLink = event.getEventParam(0, Link.class); 
    226                                 LinkAttachment textLink = new LinkAttachment(newLink, ImmColor.MAGENTA); 
     226                                ImmColor magenta = ImmColor.MAGENTA;  
     227                                ImmColor linkColor = new ImmColor(magenta.getRedValue(), 
     228                                                magenta.getGreenValue(),magenta.getBlueValue(), 0.2f); 
     229                                LinkAttachment textLink = new LinkAttachment(newLink, linkColor); 
    227230                                String description = event.getEventParam(1, String.class); 
    228231                                 
    229232                                TextFrameView frameView = AppHaloUtil.getSingleSelected(hud, TextFrameView.class);