mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 13:38:23 +02:00
Compare commits
3 Commits
1.0.1
...
dark_theme
| Author | SHA1 | Date | |
|---|---|---|---|
| 355c9d3ce4 | |||
| 8cecca2172 | |||
|
|
35f395d44a |
@@ -15,7 +15,7 @@ even in a "normal" CSV editor. So I decided to write this simple JavaFX applicat
|
|||||||
|
|
||||||
[Wiki & Documentation](https://github.com/frosch95/SmartCSV.fx/wiki)
|
[Wiki & Documentation](https://github.com/frosch95/SmartCSV.fx/wiki)
|
||||||
|
|
||||||
binary distribution of the [latest release (1.0.0)](https://github.com/frosch95/SmartCSV.fx/releases/download/1.0.0/SmartCSV.fx-1.0.0.zip)
|
binary distribution of the [latest release (1.0.1)](https://github.com/frosch95/SmartCSV.fx/releases/download/1.0.1/SmartCSV.fx-1.0.1.zip)
|
||||||
|
|
||||||
## Talks
|
## Talks
|
||||||
[Introduction](http://javafx.ninja/talks/introduction/)
|
[Introduction](http://javafx.ninja/talks/introduction/)
|
||||||
|
|||||||
@@ -85,6 +85,9 @@ public class SmartCSV extends Application {
|
|||||||
private void showUI(Stage primaryStage, String name, String version) {
|
private void showUI(Stage primaryStage, String name, String version) {
|
||||||
SmartCSVController smartCVSController = appContext.getBean(SmartCSVController.class);
|
SmartCSVController smartCVSController = appContext.getBean(SmartCSVController.class);
|
||||||
Scene scene = new Scene((Parent) smartCVSController.getView());
|
Scene scene = new Scene((Parent) smartCVSController.getView());
|
||||||
|
var darkThemeCss = scene.getRoot().getStylesheets().get(0);
|
||||||
|
scene.getRoot().getStylesheets().remove(darkThemeCss);
|
||||||
|
scene.getRoot().getStylesheets().add(darkThemeCss);
|
||||||
|
|
||||||
primaryStage.setScene(scene);
|
primaryStage.setScene(scene);
|
||||||
primaryStage.setTitle(String.format("%s %s", name, version));
|
primaryStage.setTitle(String.format("%s %s", name, version));
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
</Label>
|
</Label>
|
||||||
<Label text="AOE Takashi (https://github.com/aoetk)" />
|
<Label text="AOE Takashi (https://github.com/aoetk)" />
|
||||||
<Label text="Hasan Kara (https://github.com/haisi)" />
|
<Label text="Hasan Kara (https://github.com/haisi)" />
|
||||||
|
<Label text="apixandru (https://github.com/apixandru)" />
|
||||||
<Label text="3rd party software">
|
<Label text="3rd party software">
|
||||||
<VBox.margin>
|
<VBox.margin>
|
||||||
<Insets top="8.0" />
|
<Insets top="8.0" />
|
||||||
@@ -89,7 +90,7 @@
|
|||||||
<Font size="18.0" />
|
<Font size="18.0" />
|
||||||
</font>
|
</font>
|
||||||
</Label>
|
</Label>
|
||||||
<TextArea editable="false" prefHeight="200.0" prefWidth="200.0" text="Copyright (c) 2015-2019 Andreas Billmann <andreas.billmann@javafx.ninja> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." wrapText="true" />
|
<TextArea editable="false" prefHeight="200.0" prefWidth="200.0" text="Copyright (c) 2015-2021 Andreas Billmann <andreas.billmann@javafx.ninja> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." wrapText="true" />
|
||||||
</children>
|
</children>
|
||||||
<opaqueInsets>
|
<opaqueInsets>
|
||||||
<Insets />
|
<Insets />
|
||||||
|
|||||||
34
src/main/resources/ninja/javafx/smartcsv/fx/dark-theme.css
Normal file
34
src/main/resources/ninja/javafx/smartcsv/fx/dark-theme.css
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
.root {
|
||||||
|
-fx-base: rgb(39, 40, 40);
|
||||||
|
-fx-accent: rgb(80, 80, 80);
|
||||||
|
-fx-default-button: rgb(39, 40, 40);
|
||||||
|
-fx-focus-color: rgb(80, 80, 80);
|
||||||
|
-fx-faint-focus-color: #efefef22;
|
||||||
|
-fx-focused-text-base-color : ladder(
|
||||||
|
-fx-selection-bar,
|
||||||
|
-fx-light-text-color 45%,
|
||||||
|
-fx-dark-text-color 46%,
|
||||||
|
-fx-dark-text-color 59%,
|
||||||
|
-fx-mid-text-color 60%
|
||||||
|
);
|
||||||
|
-fx-focused-mark-color : -fx-focused-text-base-color ;
|
||||||
|
-fx-control-inner-background: rgb(39, 40, 40);
|
||||||
|
-fx-control-inner-background-alt: rgb(20, 20, 20);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.table-row-cell:selected {
|
||||||
|
-fx-background-color: rgb(80, 80, 80);
|
||||||
|
}
|
||||||
|
.table-row-cell {
|
||||||
|
-fx-background-color: #81c483;
|
||||||
|
}
|
||||||
|
.text-input:focused {
|
||||||
|
-fx-highlight-text-fill: ladder(
|
||||||
|
-fx-highlight-fill,
|
||||||
|
-fx-light-text-color 45%,
|
||||||
|
-fx-dark-text-color 46%,
|
||||||
|
-fx-dark-text-color 59%,
|
||||||
|
-fx-mid-text-color 60%
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -266,6 +266,7 @@
|
|||||||
<left>
|
<left>
|
||||||
</left>
|
</left>
|
||||||
<stylesheets>
|
<stylesheets>
|
||||||
|
<URL value="@/ninja/javafx/smartcsv/fx/dark-theme.css" />
|
||||||
<URL value="@/ninja/javafx/smartcsv/fx/smartcsv.css" />
|
<URL value="@/ninja/javafx/smartcsv/fx/smartcsv.css" />
|
||||||
</stylesheets>
|
</stylesheets>
|
||||||
<bottom>
|
<bottom>
|
||||||
|
|||||||
Reference in New Issue
Block a user