forked from prmr/JetUML
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
248 additions
and
90 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
.welcome-tab-panel | ||
{ | ||
-fx-padding: 20px; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.jetuml.gui; | ||
|
||
import javafx.scene.Scene; | ||
import javafx.scene.input.KeyCode; | ||
import javafx.scene.input.KeyEvent; | ||
import javafx.scene.layout.GridPane; | ||
import javafx.stage.Modality; | ||
import javafx.stage.Stage; | ||
|
||
/** | ||
* | ||
*/ | ||
public class AbstractDialog extends Stage | ||
{ | ||
/** | ||
* s. | ||
* @param pOwner d | ||
*/ | ||
public AbstractDialog(Stage pOwner) | ||
{ | ||
Scene scenex = new Scene(new GridPane()); | ||
setScene(scenex); | ||
setResizable(false); | ||
initModality(Modality.WINDOW_MODAL); | ||
initOwner(pOwner); | ||
addEventHandler(KeyEvent.KEY_PRESSED, pEvent -> | ||
{ | ||
if( pEvent.getCode() == KeyCode.ESCAPE ) | ||
{ | ||
close(); | ||
} | ||
}); | ||
getScene().getStylesheets().add(getClass().getResource("DarkMode.css").toExternalForm()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
.root { | ||
-fx-accent: #1e74c6; | ||
-fx-focus-color: -fx-accent; | ||
-fx-base: #373e43; | ||
-fx-control-inner-background: derive(-fx-base, 35%); | ||
-fx-control-inner-background-alt: -fx-control-inner-background ; | ||
} | ||
|
||
.label{ | ||
-fx-text-fill: lightgray; | ||
} | ||
|
||
.text-field { | ||
-fx-prompt-text-fill: gray; | ||
} | ||
|
||
.titulo{ | ||
-fx-font-weight: bold; | ||
-fx-font-size: 18px; | ||
} | ||
|
||
.button{ | ||
-fx-focus-traversable: false; | ||
} | ||
|
||
.button:hover{ | ||
-fx-text-fill: white; | ||
} | ||
|
||
.separator *.line { | ||
-fx-background-color: #3C3C3C; | ||
-fx-border-style: solid; | ||
-fx-border-width: 1px; | ||
} | ||
|
||
.scroll-bar{ | ||
-fx-background-color: derive(-fx-base,45%) | ||
} | ||
|
||
.button:default { | ||
-fx-base: -fx-accent ; | ||
} | ||
|
||
.table-view{ | ||
/*-fx-background-color: derive(-fx-base, 10%);*/ | ||
-fx-selection-bar-non-focused: derive(-fx-base, 50%); | ||
} | ||
|
||
.table-view .column-header .label{ | ||
-fx-alignment: CENTER_LEFT; | ||
-fx-font-weight: none; | ||
} | ||
|
||
.list-cell:even, | ||
.list-cell:odd, | ||
.table-row-cell:even, | ||
.table-row-cell:odd{ | ||
-fx-control-inner-background: derive(-fx-base, 15%); | ||
} | ||
|
||
.list-cell:empty, | ||
.table-row-cell:empty { | ||
-fx-background-color: transparent; | ||
} | ||
|
||
.list-cell, | ||
.table-row-cell{ | ||
-fx-border-color: transparent; | ||
-fx-table-cell-border-color:transparent; | ||
} | ||
|
||
|
||
.welcome-tab-panel | ||
{ | ||
-fx-padding: 20px; | ||
} | ||
|
||
.welcome-tab-panel .panel-title | ||
{ | ||
-fx-padding: 0px 0px 3px 0px; | ||
-fx-font-size: 20pt; | ||
-fx-border-width: 0 0 3 0; | ||
-fx-border-color: black; | ||
-fx-border-insets: 0 0 15px 15px; | ||
} | ||
|
||
.welcome-tab-panel .button | ||
{ | ||
-fx-background-color: transparent; | ||
-fx-font-size: 17pt; | ||
-fx-text-fill: white; | ||
} | ||
|
||
.welcome-tab-panel .button:hover | ||
{ | ||
-fx-text-fill: black; | ||
-fx-font-size: 17pt; | ||
} | ||
|
||
.welcome-tab-footer | ||
{ | ||
-fx-alignment: center; | ||
-fx-padding: 0 0 10px 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.