@@ -0,0 +1,2074 @@
+package eg.document;%0A%0Aimport javax.swing.text.SimpleAttributeSet;%0Aimport javax.swing.text.StyleConstants;%0A%0Aimport java.awt.Color;%0A%0A//--Eadgyth--/%0Aimport eg.BackgroundTheme;%0A%0A/**%0A * Defines character attributes, each with the attributes foreground%0A * color and weight. The shade of blue and the forground for brackets%0A * depend on the background theme.%0A */%0Apublic final class Attributes %7B%0A%0A   public final SimpleAttributeSet redPlain     = new SimpleAttributeSet();%0A   public final SimpleAttributeSet bluePlain    = new SimpleAttributeSet();%0A   public final SimpleAttributeSet blueBold     = new SimpleAttributeSet();%0A   public final SimpleAttributeSet greenPlain   = new SimpleAttributeSet();%0A   public final SimpleAttributeSet orangePlain  = new SimpleAttributeSet();%0A   public final SimpleAttributeSet purplePlain  = new SimpleAttributeSet();%0A   public final SimpleAttributeSet bracketsBold = new SimpleAttributeSet();%0A%0A   private final static Color GREEN  = new Color(80, 190, 80);%0A   private final static Color RED    = new Color(255, 20, 20);%0A   private final static Color ORANGE = new Color(255, 128, 0);%0A   private final static Color PURPLE = new Color(230, 0, 255);%0A%0A   /**%0A    * @param theme  the BackgroundTheme%0A    */%0A   public Attributes(BackgroundTheme theme) %7B%0A%0A      StyleConstants.setForeground(redPlain, RED);%0A      StyleConstants.setBold(redPlain, false);%0A%0A      StyleConstants.setForeground(bluePlain, theme.blueForeground());%0A      StyleConstants.setBold(bluePlain, false);%0A%0A      StyleConstants.setForeground(blueBold, theme.blueForeground());%0A      StyleConstants.setBold(blueBold, true);%0A%0A      StyleConstants.setForeground(greenPlain, GREEN);%0A      StyleConstants.setBold(greenPlain, false);%0A%0A      StyleConstants.setForeground(orangePlain, ORANGE);%0A      StyleConstants.setBold(orangePlain, false);%0A%0A      StyleConstants.setForeground(purplePlain, PURPLE);%0A      StyleConstants.setBold(purplePlain, false);%0A%0A      StyleConstants.setForeground(bracketsBold, theme.accentedNormalForeground());%0A      StyleConstants.setBold(bracketsBold, true);%0A   %7D%0A%7D%0A

move class to documents and make it depend on background theme