Skip to content

Commit

Permalink
Merge pull request #16 from gleidsonmt/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
gleidsonmt committed Oct 13, 2022
2 parents a5d51ed + f9da048 commit 5e6b77a
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h1></h1>

<p align="center">
<img src="BackLogo.png" />
<img src="./src/main/resources/logo/logo_flier.png" />
</p>

<h1></h1>
Expand Down
31 changes: 29 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ plugins {
id 'application'
id 'maven-publish'
id 'org.openjfx.javafxplugin' version '0.0.10'
id 'org.beryx.jlink' version '2.24.1'
id 'signing'
}

group 'io.github.gleidsonmt'
version '2.1.25'

sourceCompatibility = '17'
targetCompatibility = '17'

repositories {
mavenCentral()
Expand Down Expand Up @@ -111,3 +110,31 @@ publishing {
}
}

jlink {
imageZip = project.file("${buildDir}/distributions/app-${javafx.platform.classifier}.zip")
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'GNDecorator'
}

jpackage {

imageOptions = [
'--icon', 'logo_256.ico'
]
installerType = 'exe'
installerOptions = [
'--description', "A decorator stage for javafx apps.",
'--copyright', 'Copyrigth © 2021-2022 GLEIDSON NEVES DA SILVEIRA'
, '--icon', 'logo_256.ico'

]

addExtraDependencies("javafx")
}
}

jlinkZip {
group = 'distribution'
}

Binary file added logo_256.ico
Binary file not shown.
9 changes: 6 additions & 3 deletions src/main/java/io/github/gleidsonmt/gndecorator/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
package io.github.gleidsonmt.gndecorator;

import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.Button;
import javafx.scene.control.Menu;
import javafx.scene.control.MenuItem;
import javafx.scene.control.SeparatorMenuItem;
import javafx.scene.image.Image;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;
import org.scenicview.ScenicView;

import java.util.Objects;

/**
* @author Gleidson Neves da Silveira | gleidisonmt@gmail.com
Expand All @@ -43,6 +43,9 @@ public void start(Stage stage) throws Exception {
decorator.setContent(content);


decorator.getIcons().add(new Image(Objects.requireNonNull(getClass().getResource("/logo/logo_32.png")).toExternalForm()));


decorator.setTitle(null);

Button block = new Button("Block or unblock controls");
Expand Down
Binary file added src/main/resources/logo/BackLogo.psd
Binary file not shown.
Binary file added src/main/resources/logo/Logo.psd
Binary file not shown.
Binary file added src/main/resources/logo/logo_128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/logo/logo_16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/logo/logo_256.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/logo/logo_32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/logo/logo_48.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/logo/logo_64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/logo/logo_flier.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5e6b77a

Please sign in to comment.