-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fonts for time labels was not correctly registered as resources. Registered fonts at App starting.
- Loading branch information
Showing
8 changed files
with
125 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/java/com/github/tharindusathis/jomodoro/util/Resources.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.github.tharindusathis.jomodoro.util; | ||
|
||
import javafx.scene.text.Font; | ||
|
||
import java.util.EnumMap; | ||
import java.util.Map; | ||
import java.util.Optional; | ||
|
||
public final class Resources | ||
{ | ||
private static final Map<CustomFont,Font> FONTS = new EnumMap<>( CustomFont.class ); | ||
|
||
private Resources() | ||
{ | ||
} | ||
|
||
public static Optional<Font> getFont( CustomFont name ) | ||
{ | ||
return Optional.ofNullable( FONTS.get( name ) ); | ||
} | ||
|
||
public static void addFont( CustomFont name, Font font ) | ||
{ | ||
FONTS.put( name, font ); | ||
} | ||
|
||
public enum CustomFont | ||
{ | ||
ROBOTO_250, ROBOTO_87 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,6 +130,7 @@ | |
|
||
.lbl-timer { | ||
-fx-text-fill: rgba(115,214,148,1.0); | ||
-fx-font-size: 180; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters