Skip to content
Snippets Groups Projects
Commit 93f0cd9b authored by LABOUREL Arnaud's avatar LABOUREL Arnaud
Browse files

Version finale du template formula

parent 0d5f9b4c
No related branches found
No related tags found
No related merge requests found
#pane, .root, .split-pane{
-fx-background-color: #353434;
-fx-foreground-color: #353434;
}
.chart-vertical-zero-line {
-fx-stroke: white;
}
.chart-horizontal-zero-line {
-fx-stroke: white;
}
.chart-plot-background {
-fx-background-color: #575758;
-fx-foreground-color: white;
-fx-stroke: white;
}
.chart-vertical-grid-lines {
-fx-stroke: #898887;
}
.chart-horizontal-grid-lines {
-fx-stroke: #898887;
}
.chart-alternative-row-fill {
-fx-fill: transparent;
-fx-stroke: transparent;
-fx-stroke-width: 1;
}
.axis {
-fx-stroke: white;
-fx-fill: white;
-fx-font-size: 1.4em;
-fx-tick-label-fill: white;
-fx-font-family: Tahoma;
-fx-tick-length: 0;
-fx-minor-tick-length: 0;
}
.background {
-fx-background-color: #674A44;
-fx-foreground-color: #353434;
}
.button {
-fx-padding: 5 22 5 22;
-fx-border-color: #353434;
-fx-border-width: 0;
-fx-background-radius: 0;
-fx-background-color: derive(#353434,20%);
-fx-font-family: "Segoe UI", Helvetica, Arial, sans-serif;
-fx-font-size: 11pt;
-fx-text-fill: #d8d8d8;
-fx-background-insets: 0 0 0 0, 0, 1, 2;
}
.button:hover {
-fx-background-color: #3a3a3a;
}
.button:pressed, .button:default:hover:pressed {
-fx-background-color: #bdbcbc;
-fx-text-fill: black;
}
.button:disabled, .button:default:disabled {
-fx-opacity: 0.4;
-fx-background-color: #353434;
-fx-text-fill: white;
}
.button:default {
-fx-background-color: -fx-focus-color;
-fx-text-fill: #ffffff;
}
.button:default:hover {
-fx-background-color: derive(-fx-focus-color,30%);
}
.text-area .content {
-fx-background-color: #575758;
}
\ No newline at end of file
import image.BlankImage;
import javafx.scene.paint.Color;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
public class BlankImageTest {
@Test
public void testBlankImageGetWidth(){
BlankImage blankImage = new BlankImage(200, 300);
assertThat(blankImage.getWidth(), is(equalTo(200)));
}
@Test
public void testBlankImageGetHeight(){
BlankImage blankImage = new BlankImage(200, 300);
assertThat(blankImage.getHeight(), is(equalTo(300)));
}
@Test
public void testBlankImageGetPixelColor(){
BlankImage blankImage = new BlankImage(200, 300);
assertThat(blankImage.getPixelColor(0,0), is(equalTo(Color.WHITE)));
assertThat(blankImage.getPixelColor(100,100), is(equalTo(Color.WHITE)));
assertThat(blankImage.getPixelColor(199,299), is(equalTo(Color.WHITE)));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment