Ticket #2111: textlinkhud.patch

File textlinkhud.patch, 2.2 KB (added by diana, 15 years ago)
  • src/main/java/org/sophie2/main/func/text/view/TextLinkColorHud.java

    ### Eclipse Workspace Patch 1.0
    #P org.sophie2.main.func.text
     
    102102                protected ImmColor computeColor() { 
    103103                        TextLinksHud hud = BaseVisualElement.findParentElement(this, TextLinksHud.class); 
    104104                        if (hud == null || hud.holder().get() == null) { 
    105                                 return ImmColor.MAGENTA; 
     105                                ImmColor magenta = ImmColor.MAGENTA;  
     106                                return new ImmColor(magenta.getRedValue(), 
     107                                                magenta.getGreenValue(),magenta.getBlueValue(), 0.2f); 
    106108                        } 
    107109                         
    108110                        LinkAttachment linkAtt = hud.holder().get().getLinkAttachment();                 
     
    140142                protected ImmColor computeColor() { 
    141143                        TextLinksHud hud = BaseVisualElement.findParentElement(this, TextLinksHud.class); 
    142144                        if (hud == null || hud.holder().get() == null) { 
    143                                 return ImmColor.MAGENTA; 
     145                                ImmColor magenta = ImmColor.MAGENTA;  
     146                                return new ImmColor(magenta.getRedValue(), 
     147                                                magenta.getGreenValue(),magenta.getBlueValue(), 0.2f); 
    144148                        } 
    145149                         
    146150                        LinkAttachment linkAtt = hud.holder().get().getLinkAttachment();                 
     
    178182                protected ImmColor computeColor() { 
    179183                        TextLinksHud hud = BaseVisualElement.findParentElement(this, TextLinksHud.class); 
    180184                        if (hud == null || hud.holder().get() == null) { 
    181                                 return ImmColor.MAGENTA; 
     185                                ImmColor magenta = ImmColor.MAGENTA;  
     186                                return new ImmColor(magenta.getRedValue(), 
     187                                                magenta.getGreenValue(),magenta.getBlueValue(), 0.2f); 
    182188                        } 
    183189                         
    184190                        LinkAttachment linkAtt = hud.holder().get().getLinkAttachment();                 
     
    216222                protected ImmColor computeColor() { 
    217223                        TextLinksHud hud = BaseVisualElement.findParentElement(this, TextLinksHud.class); 
    218224                        if (hud == null || hud.holder().get() == null) { 
    219                                 return ImmColor.MAGENTA; 
     225                                ImmColor magenta = ImmColor.MAGENTA;  
     226                                return new ImmColor(magenta.getRedValue(), 
     227                                                magenta.getGreenValue(),magenta.getBlueValue(), 0.2f); 
    220228                        } 
    221229                         
    222230                        LinkAttachment linkAtt = hud.holder().get().getLinkAttachment();