Skip to content

Commit

Permalink
Fix code issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Mar 6, 2017
1 parent 6514281 commit d2784ff
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 7 deletions.
9 changes: 5 additions & 4 deletions src/main/java/org/jabref/gui/IconTheme.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@

public class IconTheme {

/* Colors */
// JabRef's default colors
/**
* JabRef's default color
*/
public static final Color DEFAULT_COLOR = JabRefPreferences.getInstance().getColor(JabRefPreferences.ICON_ENABLED_COLOR);
public static final Color DEFAULT_DISABLED_COLOR = JabRefPreferences.getInstance().getColor(JabRefPreferences.ICON_DISABLED_COLOR);
private static final String DEFAULT_ICON_PATH = "/images/external/red.png";
Expand All @@ -45,8 +46,8 @@ public class IconTheme {
// Christmas edition
//public static final Color DEFAULT_COLOR = new Color(0x155115);
//public static final Color DEFAULT_DISABLED_COLOR = new Color(0x990000);
public static Font FONT_16;
public static javafx.scene.text.Font FX_FONT;
private static Font FONT_16;
private static javafx.scene.text.Font FX_FONT;

static {
try (InputStream stream = FontBasedIcon.class.getResourceAsStream("/fonts/materialdesignicons-webfont.ttf")) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package org.jabref.logic.groups;

import org.jabref.gui.IconTheme;
import org.jabref.logic.l10n.Localization;
import org.jabref.model.groups.AllEntriesGroup;

public class DefaultGroupsFactory {

public static AllEntriesGroup getAllEntriesGroup() {
AllEntriesGroup group = new AllEntriesGroup(Localization.lang("All entries"));
group.setIconCode(IconTheme.JabRefIcon.ALL_ENTRIES_GROUP_ICON.getCode());
group.setIconCode(org.jabref.gui.IconTheme.JabRefIcon.ALL_ENTRIES_GROUP_ICON.getCode());
return group;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.jabref.logic.util.MetadataSerializationConfiguration;
import org.jabref.logic.util.strings.QuotedStringTokenizer;
import org.jabref.model.groups.AbstractGroup;
import org.jabref.model.groups.AllEntriesGroup;
import org.jabref.model.groups.ExplicitGroup;
import org.jabref.model.groups.GroupHierarchyType;
import org.jabref.model.groups.GroupTreeNode;
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_da.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=Größe_für_große_Icons
Size_of_small_icons=Größe_für_kleine_Icon
Default_table_font_size=Standard_Tabellenschriftgröße
Escape_underscores=Unterstriche_maskieren
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=Size_of_large_icons
Size_of_small_icons=Size_of_small_icons
Default_table_font_size=Default_table_font_size
Escape_underscores=Escape_underscores
Color=Color
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_fa.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_fr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=Taille_des_grands_icones
Size_of_small_icons=Taille_des_petits_icones
Default_table_font_size=Taille_par_défaut_des_police_du_tableau
Escape_underscores=Echapper_les_soulignements
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_in.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_it.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_ja.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_nl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_no.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_pt_BR.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_ru.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_sv.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=Maskera_understreck
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_tr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_vi.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_zh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2356,3 +2356,4 @@ Size_of_large_icons=
Size_of_small_icons=
Default_table_font_size=
Escape_underscores=
Color=

0 comments on commit d2784ff

Please sign in to comment.