mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 17:00:52 +01:00
Show fork in program title
This commit is contained in:
parent
5261fdfb3c
commit
b5c34e53b7
@ -26,6 +26,8 @@ import java.util.Properties;
|
|||||||
|
|
||||||
public class GEarth extends Application {
|
public class GEarth extends Application {
|
||||||
|
|
||||||
|
private static final String OFFICIAL_REPOSITORY = "sirjonasxx/G-Earth";
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(GEarth.class);
|
private static final Logger logger = LoggerFactory.getLogger(GEarth.class);
|
||||||
|
|
||||||
public static GEarth main;
|
public static GEarth main;
|
||||||
@ -141,7 +143,8 @@ public class GEarth extends Application {
|
|||||||
stage.getIcons().clear();
|
stage.getIcons().clear();
|
||||||
final Image image = new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", theme.overridesLogo() ? theme.internalName() : defaultTheme.internalName())));
|
final Image image = new Image(GEarth.class.getResourceAsStream(String.format("/gearth/ui/themes/%s/logoSmall.png", theme.overridesLogo() ? theme.internalName() : defaultTheme.internalName())));
|
||||||
stage.getIcons().add(image);
|
stage.getIcons().add(image);
|
||||||
stage.setTitle((theme.overridesTitle() ? theme.title() : defaultTheme.title()) + " " + GEarth.version);
|
final String isFork = GEarth.repository.equals(OFFICIAL_REPOSITORY) ? "" : " (" + GEarth.repository + ")";
|
||||||
|
stage.setTitle((theme.overridesTitle() ? theme.title() : defaultTheme.title()) + " " + GEarth.version + isFork);
|
||||||
|
|
||||||
controller.infoController.img_logo.setImage(new Image(GEarth.class.getResourceAsStream(
|
controller.infoController.img_logo.setImage(new Image(GEarth.class.getResourceAsStream(
|
||||||
String.format(
|
String.format(
|
||||||
|
Loading…
Reference in New Issue
Block a user