From 44a9ae48fc2ec970a7de7ee287c15cd1c5c7b502 Mon Sep 17 00:00:00 2001
From: ZartaX0O3 <76948902+ZartaX0O3@users.noreply.github.com>
Date: Sat, 27 Nov 2021 12:01:04 +0100
Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20sample.css=20+=20D=C3=A9but=20fr?=
=?UTF-8?q?ont=20end?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/.gitignore | 8 ++++++++
code/src/css/sample.css | 10 ++++++++++
code/src/sample/Main.java | 6 ++++--
code/src/sample/sample.fxml | 29 ++++++++++++++++++++++-------
4 files changed, 44 insertions(+), 9 deletions(-)
create mode 100644 .idea/.gitignore
create mode 100644 code/src/css/sample.css
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/code/src/css/sample.css b/code/src/css/sample.css
new file mode 100644
index 0000000..1234ada
--- /dev/null
+++ b/code/src/css/sample.css
@@ -0,0 +1,10 @@
+.round-red {
+ -fx-background-color: linear-gradient(#ff5400, #EB9C0A);
+ -fx-background-radius: 30;
+ -fx-background-insets: 0;
+ -fx-text-fill: white;
+}
+
+.root{
+ -fx-background-color: #3A3A41;
+}
\ No newline at end of file
diff --git a/code/src/sample/Main.java b/code/src/sample/Main.java
index 5333744..a02fcd7 100644
--- a/code/src/sample/Main.java
+++ b/code/src/sample/Main.java
@@ -6,13 +6,15 @@ import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
+import java.util.Objects;
+
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
- Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
+ Parent root = FXMLLoader.load(Objects.requireNonNull(getClass().getResource("sample.fxml")));
primaryStage.setTitle("Hello World");
- primaryStage.setScene(new Scene(root, 300, 275));
+ primaryStage.setScene(new Scene(root, 900, 600));
primaryStage.show();
}
diff --git a/code/src/sample/sample.fxml b/code/src/sample/sample.fxml
index 363237a..54eb907 100644
--- a/code/src/sample/sample.fxml
+++ b/code/src/sample/sample.fxml
@@ -1,8 +1,23 @@
-
-
+
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file