Skip to content

Commit 94547c6

Browse files
committed
Disable maximize button and resizing window
1 parent 2a08f34 commit 94547c6

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

jar/Image Resizer.jar

4 Bytes
Binary file not shown.
Binary file not shown.

src/com/marwaeltayeb/fir/Main.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ public class Main extends Application {
1212
@Override
1313
public void start(Stage primaryStage) throws Exception{
1414
Parent root = FXMLLoader.load(getClass().getResource("ui/main.fxml"));
15-
primaryStage.setTitle("Fast Image ResizeManager");
15+
primaryStage.setTitle("Fast Image Resizer");
1616
primaryStage.setScene(new Scene(root, 650, 400));
1717
primaryStage.getIcons().add(new Image("/com/marwaeltayeb/fir/assets/logo.png"));
1818
primaryStage.getScene().getStylesheets().add(getClass().getResource("stylesheet/application.css").toExternalForm());
19+
primaryStage.setResizable(false);
1920
primaryStage.show();
2021
}
2122

src/com/marwaeltayeb/fir/stylesheet/application.css

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,47 @@
1-
.root{
2-
-fx-background-color: #3C3C3C;
1+
.root {
2+
-fx-background-color: #3C3C3C;
33
}
44

55
#lstImagesList .list-cell {
66
-fx-background-color: #1E1E1E;
77
-fx-text-fill: #ffffff;
8-
98
}
109

1110
#lstImagesList .list-cell:focused {
1211
-fx-background-color: #3b3b3b;
1312
}
1413

15-
.label{
16-
-fx-text-fill: white;
17-
-fx-background-color : #1E1E1E;
18-
-fx-padding: 3 3 3 5;
14+
.label {
15+
-fx-text-fill: white;
16+
-fx-background-color: #1E1E1E;
17+
-fx-padding: 3 3 3 5;
1918
}
2019

21-
#lbtHeight, #lbWidth{
22-
-fx-text-fill: white;
23-
-fx-background-color : #1E1E1E;
24-
-fx-padding: 3 3 3 3;
25-
-fx-border-color: black;
26-
-fx-border-radius: 1;
27-
-fx-border-width: 1;
20+
#lbtHeight, #lbWidth {
21+
-fx-text-fill: white;
22+
-fx-background-color: #1E1E1E;
23+
-fx-padding: 3 3 3 3;
24+
-fx-border-color: black;
25+
-fx-border-radius: 1;
26+
-fx-border-width: 1;
2827
}
2928

30-
#lblOutputPath{
29+
#lblOutputPath {
3130
-fx-font-size: 10px;
32-
-fx-background-color : #4A4A4A;
31+
-fx-background-color: #4A4A4A;
3332
-fx-border-color: gray;
3433
-fx-border-radius: 1;
3534
-fx-border-width: 1;
3635
-fx-padding: 0 0 0 10; /* right */
3736
}
3837

39-
#lbType, #lbSize, #lbDimen{
40-
-fx-text-fill: gray;
38+
#lbType, #lbSize, #lbDimen {
39+
-fx-text-fill: gray;
4140
}
4241

43-
.button{
42+
.button {
4443
-fx-text-fill: white;
45-
-fx-background-color : #4A4A4A;
44+
-fx-background-color: #4A4A4A;
4645
-fx-border-color: gray;
4746
-fx-border-radius: 5;
4847
-fx-border-insets: 1;
@@ -59,29 +58,29 @@
5958
-fx-scale-x: 0.9;
6059
}
6160

62-
#btnResize{
61+
#btnResize {
6362
-fx-font-size: 12px;
6463
-fx-text-fill: red;
65-
-fx-background-color : #4A4A4A;
64+
-fx-background-color: #4A4A4A;
6665
-fx-border-color: gray;
6766
-fx-font-weight: bold;
6867
}
6968

70-
#btnResize:hover{
69+
#btnResize:hover {
7170
-fx-background-color: #383838;
7271
}
7372

74-
#editHeight, #editWidth{
75-
-fx-background-color : #4A4A4A;
76-
-fx-text-fill: white;
73+
#editHeight, #editWidth {
74+
-fx-background-color: #4A4A4A;
75+
-fx-text-fill: white;
7776
}
7877

79-
#imageContainer{
80-
-fx-background-color: #1E1E1E;
78+
#imageContainer {
79+
-fx-background-color: #1E1E1E;
8180
}
8281

83-
#lstImagesList{
84-
-fx-background-color: #1E1E1E;
82+
#lstImagesList {
83+
-fx-background-color: #1E1E1E;
8584
}
8685

8786
.combo-box {
@@ -94,7 +93,7 @@
9493
-fx-background-color: gray;
9594
}
9695

97-
.combo-box-base .text{
96+
.combo-box-base .text {
9897
-fx-fill: white;
9998
}
10099

0 commit comments

Comments
 (0)