Rename project and add logo
This commit is contained in:
parent
73e389339c
commit
2a499d09ce
13
README.md
13
README.md
@ -1,11 +1,13 @@
|
|||||||
# TODO: Name the project
|
# Banana Editor
|
||||||
|
|
||||||
|
Probably tastes better than any Apple editor and NetBeans combined.
|
||||||
|
|
||||||
## TODO:
|
## TODO:
|
||||||
- [ ] Tabs
|
- [ ] ~~Tabs~~
|
||||||
- [ ] Modeline w/ linenumbers
|
- [ ] Modeline w/ linenumbers
|
||||||
- [ ] Syntax highlighting
|
- [ ] Syntax highlighting
|
||||||
- [ ] Filetree
|
- [ ] Filetree
|
||||||
- [ ] Line numbers
|
- [X] Line numbers
|
||||||
|
|
||||||
## Maybe TODO?
|
## Maybe TODO?
|
||||||
- [ ] Shortcuts
|
- [ ] Shortcuts
|
||||||
@ -19,5 +21,6 @@
|
|||||||
|
|
||||||
## Credits/Sources
|
## Credits/Sources
|
||||||
- [james-d/SimpleMVP](https://github.com/james-d/SimpleMVP/tree/master/src/examples/mvp) -> Demonstration of JavaFX Model/View/Controller application
|
- [james-d/SimpleMVP](https://github.com/james-d/SimpleMVP/tree/master/src/examples/mvp) -> Demonstration of JavaFX Model/View/Controller application
|
||||||
- [FXMisc/RichtTextFX](https://github.com/FXMisc/RichTextFX) -> Library for handling rich text and line numbers
|
- [FXMisc/RichTextFX](https://github.com/FXMisc/RichTextFX) -> Library for handling rich text and line numbers
|
||||||
- [richtextfx-demos](https://github.com/FXMisc/RichTextFX/blob/master/richtextfx-demos/README.md) -> Examples and demos of how to use RichTextFX, including [Java Keywords Demo](https://github.com/FXMisc/RichTextFX/blob/master/richtextfx-demos/src/main/java/org/fxmisc/richtext/demo/JavaKeywordsAsyncDemo.java)
|
- [richtextfx-demos](https://github.com/FXMisc/RichTextFX/blob/master/richtextfx-demos/README.md) -> Examples and demos of how to use RichTextFX, including [Java Keywords Demo](https://github.com/FXMisc/RichTextFX/blob/master/richtextfx-demos/src/main/java/org/fxmisc/richtext/demo/JavaKeywordsAsyncDemo.java)
|
||||||
|
- [Pixabay/311788](https://pixabay.com/vectors/bananas-fruits-pair-yellow-bananas-311788/) -> Banana logo
|
@ -5,6 +5,7 @@ import javafx.application.Application;
|
|||||||
import javafx.fxml.FXMLLoader;
|
import javafx.fxml.FXMLLoader;
|
||||||
import javafx.scene.Parent;
|
import javafx.scene.Parent;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
|
import javafx.scene.image.Image;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
|
||||||
public class Main extends Application {
|
public class Main extends Application {
|
||||||
@ -22,7 +23,9 @@ public class Main extends Application {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage window) throws IOException {
|
public void start(Stage window) throws IOException {
|
||||||
window.setTitle("Hello world");
|
window.setTitle("Banana Editor");
|
||||||
|
|
||||||
|
window.getIcons().add(new Image(getClass().getResourceAsStream("/graphics/logo.png")));
|
||||||
|
|
||||||
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/fxml/Main.fxml"));
|
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/fxml/Main.fxml"));
|
||||||
Parent document;
|
Parent document;
|
||||||
|
BIN
src/main/resources/graphics/logo.png
Normal file
BIN
src/main/resources/graphics/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
49
src/main/resources/graphics/logo.svg
Normal file
49
src/main/resources/graphics/logo.svg
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg version="1.1" viewBox="0 0 280 230" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<defs>
|
||||||
|
<filter id="j" x="-.056193" y="-.11273" width="1.1124" height="1.2255" color-interpolation-filters="sRGB">
|
||||||
|
<feGaussianBlur stdDeviation="5.6595849"/>
|
||||||
|
</filter>
|
||||||
|
<filter id="l" x="-.086823" y="-.83412" width="1.1736" height="2.6682" color-interpolation-filters="sRGB">
|
||||||
|
<feGaussianBlur stdDeviation="6.9509855"/>
|
||||||
|
</filter>
|
||||||
|
<filter id="k" x="-.049684" y="-.47732" width="1.0994" height="1.9546" color-interpolation-filters="sRGB">
|
||||||
|
<feGaussianBlur stdDeviation="3.9776785"/>
|
||||||
|
</filter>
|
||||||
|
<linearGradient id="g" x1="330.57" x2="334.87" y1="784.67" y2="766.99" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#feec8f" offset="0"/>
|
||||||
|
<stop stop-color="#feec8f" stop-opacity="0" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="h" x1="347.75" x2="351.53" y1="749.82" y2="765.48" gradientTransform="translate(-.12627)" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#bbb44e" offset="0"/>
|
||||||
|
<stop stop-color="#bbb44e" stop-opacity="0" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<mask id="i" maskUnits="userSpaceOnUse">
|
||||||
|
<path d="m231.63 966.09c-0.78751 1.7801-1.548 3.524-2.4688 5.375-1.3954 2.8053-2.9431 5.6932-4.625 8.625s-3.4926 5.9231-5.4375 8.9375-4.0032 6.0406-6.1875 9.0938c-2.1843 3.0531-4.5061 6.1083-6.9062 9.1562-2.4002 3.048-4.8763 6.0949-7.4688 9.0938s-5.3013 5.9691-8.0625 8.875-5.5936 5.7622-8.5 8.5312c-2.9064 2.7691-5.8782 5.443-8.9062 8.0313-3.028 2.5882-6.0926 5.0739-9.2188 7.4375s-6.2993 4.5924-9.5 6.6875c-3.2007 2.095-6.4358 4.0612-9.6875 5.8437-3.2517 1.7826-6.5334 3.3863-9.8125 4.8125s-6.5608 2.6616-9.8438 3.6875c-3.283 1.026-6.5713 1.8824-9.875 2.5625s-6.6308 1.1978-9.9375 1.5625c-3.3067 0.3648-6.6144 0.5764-9.9062 0.6563-3.2919 0.08-6.5532 0.018-9.8125-0.1563-3.2593-0.1746-6.5097-0.4764-9.7188-0.875-3.209-0.3986-6.3903-0.8766-9.5312-1.4687-3.1409-0.5922-6.2261-1.2761-9.2812-2.0313s-6.0797-1.5809-9.0312-2.4687c-5.9031-1.7757-11.586-3.7829-16.969-5.9063-5.3822-2.1234-10.468-4.3663-15.188-6.5937-4.7193-2.2275-9.0544-4.4434-12.969-6.5313-3.9143-2.0879-7.4077-4.0453-10.375-5.75l-2.5 2.1875c0.0636 0.3082 0.0283 0.5054 0.125 0.8438 13.132 18.435 32.586 28.777 42.688 32.312 10.102 3.5355 20.95 11.363 69.438 6.3125 48.487-5.0508 78.027-27.791 103.28-54.812 21.376-22.873 26.256-49.585 26.188-64.031z" fill="#d9b74d" filter="url(#j)"/>
|
||||||
|
</mask>
|
||||||
|
</defs>
|
||||||
|
<g transform="translate(0 -822.36)">
|
||||||
|
<g transform="translate(-97.746 118.55)">
|
||||||
|
<path transform="matrix(1.2982 -1.3211e-8 -1.0106e-8 1.2032 -85.793 -179.01)" d="m342.86 904.51c0 5.5228-43.013 10-96.071 10-53.059 0-96.071-4.4772-96.071-10s43.013-10 96.071-10c53.059 0 96.071 4.4772 96.071 10z" filter="url(#k)" opacity=".178"/>
|
||||||
|
<path transform="matrix(.97261 .23242 -.23242 .97261 173.97 -62.288)" d="m138.03 856.14c4.5457-3.283 40.154-5.3033 59.346-4.5457 19.193 0.75762 52.168-0.24588 77.277-13.637 18.94-10.102 35.355-25.254 43.689-39.143 8.3338-13.89 14.647-32.325 16.415-34.598 1.7678-2.2728 6.8185-24.749 0.75762-45.204 8.5863-8.5863 16.668-9.5964 19.445-14.142 1.7678 4.2932 0.50507 8.5863-0.25254 12.122-0.75762 3.5355-1.7678 17.173 0.50507 23.739 2.2728 6.566 19.445 33.588 21.213 44.699 1.7678 11.112-0.50508 43.689-25.759 70.711s-54.801 49.75-103.29 54.801c-48.487 5.0508-59.346-2.7779-69.448-6.3134s-29.547-13.89-42.679-32.325c-1.5152-5.3033 1.2627-6.8185 1.2627-6.8185s-2.2728-1.7678-2.0203-3.0305c0.25254-1.2627 3.5355-6.3134 3.5355-6.3134z" fill="#f3cc5e"/>
|
||||||
|
<path transform="matrix(.97261 .23242 -.23242 .97261 173.97 -62.288)" d="m333.49 766.26c-2.5612 5.4543-8.2174 20.769-15.406 32.75-8.3338 13.89-24.747 29.024-43.688 39.125-25.108 13.391-58.088 14.414-77.281 13.656-17.747-0.70053-49.499 0.96076-57.781 3.8125l-0.1875 6.0312c1.2627 0.75761 54.025 5.6094 58.594 5.8125 11.364 0.50508 56.561-1.5006 85.098-17.41 28.537-15.91 50.758-41.178 58.839-82.09-6.345-1.0575-7.8472-1.5444-8.1875-1.6875z" fill="url(#g)" opacity=".631"/>
|
||||||
|
<g transform="matrix(.97261 .23242 -.23242 .97261 173.97 -62.288)">
|
||||||
|
<path d="m354.51 718.32s-3.1036 2.1776-6.3817 3.4688c-3.6203 1.426-11.656 0.625-11.656 0.625 4.5116 19.396 0.0694 39.424-1.5938 41.562-0.23487 0.30197-0.73558 1.5198-1.125 2.3438 1.4407 0.58644 2.9069 1.2189 4.2812 1.5625 0.99437 0.24859 1.925 0.40297 2.7812 0.4375 0.85626 0.0345 1.6186-0.06 2.25-0.3125 2.5254-1.0102 8.2892-2.3272 13.719-3.9688 2.7148-0.82075 5.3225-1.7402 7.4375-2.7188 0.58739-0.27178 0.90741-0.40196 1.405-0.68591-4.671-8.6936-9.1738-16.962-10.28-20.158-2.1044-6.0795-1.5552-17.584-0.83705-22.156z" fill="url(#h)"/>
|
||||||
|
</g>
|
||||||
|
<path transform="matrix(.97261 .23242 -.23242 .97261 173.97 -62.288)" d="m135.22 872.16c0.6781-0.59077 1.3776-1.41 2.0312-2.375 0.66291-0.97859 1.2534-2.0905 1.6875-3.1875 0.43405-1.097 0.71875-2.178 0.71875-3.125 0.1894-0.56821 0.26184-1.4777 0.25-2.5312-0.0118-1.0536-0.10826-2.2544-0.21875-3.375-0.10389-1.0538-0.14689-1.2145-0.25-1.9688-0.45665 0.17984-1.1453 0.3428-1.4062 0.53125 0 0-3.2787 5.0498-3.5312 6.3125-0.25254 1.2627 2.0312 3.0312 2.0312 3.0312s-2.7098 1.536-1.3125 6.6875z" fill="#634121"/>
|
||||||
|
<path transform="matrix(.97261 .23242 -.23242 .97261 355.81 -197.34)" d="m-7.4277 1029.9c4.5457-3.283 40.154-5.3033 59.346-4.5457 19.193 0.7576 52.168-0.2459 77.277-13.637 18.94-10.102 35.355-25.254 43.689-39.143 8.3338-13.89 14.647-32.325 16.415-34.598 1.7678-2.2728 6.8185-24.749 0.75762-45.204 8.5863-8.5863 16.668-9.5964 19.445-14.142 1.7678 4.2932 0.50507 8.5863-0.25254 12.122-0.75762 3.5355-1.7678 17.173 0.50507 23.739 2.2728 6.566 19.445 33.588 21.213 44.699 1.7678 11.112-0.50508 43.689-25.759 70.711s-54.801 49.75-103.29 54.801c-48.487 5.0507-59.346-2.778-69.448-6.3135s-29.547-13.89-42.679-32.325c-1.5152-5.3033 1.2627-6.8185 1.2627-6.8185s-2.2728-1.7678-2.0203-3.0305c0.25254-1.2627 3.5355-6.3134 3.5355-6.3134z" fill="#d7b34e" mask="url(#i)"/>
|
||||||
|
<path transform="matrix(.97261 .23242 -.23242 .97261 173.97 -62.288)" d="m335.56 719.12c0.29619 0.0938 0.47208 0.20456 0.78125 0.28125 1.018 0.25254 2.0882 0.36806 3.2188 0.28125 1.1305-0.0868 2.3004-0.39959 3.5-1.0625s2.6147-1.6156 4.0312-2.75c1.4166-1.1344 2.8468-2.4314 4.0938-3.8125 1.2469-1.3811 2.3095-2.8472 3-4.25 0.34527-0.70139 0.58508-1.3979 0.71875-2.0625 0.0579-0.28793-0.0117-0.53525 0-0.8125-2.8189 4.4848-10.834 5.5216-19.375 14.062 0.0123 0.0416 0.019 0.0834 0.0312 0.125z" fill="#e2bd8c"/>
|
||||||
|
<path transform="matrix(.97261 .23242 -.23242 .97261 173.97 -62.288)" d="m354.97 704.88c-0.32701 0.5351-0.87696 1.1565-1.3431 1.6118 0.0989 0.55712 0.231 0.79088 0.31187 1.357 0.23438 1.6406 0.37333 3.3175 0.4375 5 0.0642 1.6825-0.30714 4.1144-0.44094 5.7886 0.17743-0.17319 0.59169 0.0592 0.73734-1.0957 0.64712-3.6144 2.0651-8.3685 0.29735-12.662z" fill="#8a5741"/>
|
||||||
|
<path transform="matrix(.76219 0 0 .60721 40.588 360.64)" d="m342.86 904.51c0 5.5228-43.013 10-96.071 10-53.059 0-96.071-4.4772-96.071-10s43.013-10 96.071-10c53.059 0 96.071 4.4772 96.071 10z" filter="url(#l)" opacity=".631"/>
|
||||||
|
<g transform="matrix(.99998 -.0062541 .0062541 .99998 -4.527 2.2071)">
|
||||||
|
<path d="m138.03 856.14c4.5457-3.283 40.154-5.3033 59.346-4.5457 19.193 0.75762 52.168-0.24588 77.277-13.637 18.94-10.102 35.355-25.254 43.689-39.143 8.3338-13.89 14.647-32.325 16.415-34.598 1.7678-2.2728 6.8185-24.749 0.75762-45.204 8.5863-8.5863 16.668-9.5964 19.445-14.142 1.7678 4.2932 0.50507 8.5863-0.25254 12.122-0.75762 3.5355-1.7678 17.173 0.50507 23.739 2.2728 6.566 19.445 33.588 21.213 44.699 1.7678 11.112-0.50508 43.689-25.759 70.711s-54.801 49.75-103.29 54.801c-48.487 5.0508-59.346-2.7779-69.448-6.3134s-29.547-13.89-42.679-32.325c-1.5152-5.3033 1.2627-6.8185 1.2627-6.8185s-2.2728-1.7678-2.0203-3.0305c0.25254-1.2627 3.5355-6.3134 3.5355-6.3134z" fill="#f3cc5e"/>
|
||||||
|
<path d="m333.49 766.26c-2.5612 5.4543-8.2174 20.769-15.406 32.75-8.3338 13.89-24.747 29.024-43.688 39.125-25.108 13.391-58.088 14.414-77.281 13.656-17.747-0.70053-49.499 0.96076-57.781 3.8125l-0.1875 6.0312c1.2627 0.75761 54.025 5.6094 58.594 5.8125 11.364 0.50508 56.561-1.5006 85.098-17.41 28.537-15.91 50.758-41.178 58.839-82.09-6.345-1.0575-7.8472-1.5444-8.1875-1.6875z" fill="url(#g)"/>
|
||||||
|
<path d="m354.51 718.32s-3.1036 2.1776-6.3817 3.4688c-3.6203 1.426-11.656 0.625-11.656 0.625 4.5116 19.396 0.0694 39.424-1.5938 41.562-0.23487 0.30197-0.73558 1.5198-1.125 2.3438 1.4407 0.58644 2.9069 1.2189 4.2812 1.5625 0.99437 0.24859 1.925 0.40297 2.7812 0.4375 0.85626 0.0345 1.6186-0.06 2.25-0.3125 2.5254-1.0102 8.2892-2.3272 13.719-3.9688 2.7148-0.82075 5.3225-1.7402 7.4375-2.7188 0.58739-0.27178 0.90741-0.40196 1.405-0.68591-4.671-8.6936-9.1738-16.962-10.28-20.158-2.1044-6.0795-1.5552-17.584-0.83705-22.156z" fill="url(#h)"/>
|
||||||
|
<path d="m135.22 872.16c0.6781-0.59077 1.3776-1.41 2.0312-2.375 0.66291-0.97859 1.2534-2.0905 1.6875-3.1875 0.43405-1.097 0.71875-2.178 0.71875-3.125 0.1894-0.56821 0.26184-1.4777 0.25-2.5312-0.0118-1.0536-0.10826-2.2544-0.21875-3.375-0.10389-1.0538-0.14689-1.2145-0.25-1.9688-0.45665 0.17984-1.1453 0.3428-1.4062 0.53125 0 0-3.2787 5.0498-3.5312 6.3125-0.25254 1.2627 2.0312 3.0312 2.0312 3.0312s-2.7098 1.536-1.3125 6.6875z" fill="#634121"/>
|
||||||
|
<path transform="translate(145.46 -173.62)" d="m-7.4277 1029.9c4.5457-3.283 40.154-5.3033 59.346-4.5457 19.193 0.7576 52.168-0.2459 77.277-13.637 18.94-10.102 35.355-25.254 43.689-39.143 8.3338-13.89 14.647-32.325 16.415-34.598 1.7678-2.2728 6.8185-24.749 0.75762-45.204 8.5863-8.5863 16.668-9.5964 19.445-14.142 1.7678 4.2932 0.50507 8.5863-0.25254 12.122-0.75762 3.5355-1.7678 17.173 0.50507 23.739 2.2728 6.566 19.445 33.588 21.213 44.699 1.7678 11.112-0.50508 43.689-25.759 70.711s-54.801 49.75-103.29 54.801c-48.487 5.0507-59.346-2.778-69.448-6.3135s-29.547-13.89-42.679-32.325c-1.5152-5.3033 1.2627-6.8185 1.2627-6.8185s-2.2728-1.7678-2.0203-3.0305c0.25254-1.2627 3.5355-6.3134 3.5355-6.3134z" fill="#d7b34e" mask="url(#i)"/>
|
||||||
|
<path d="m335.56 719.12c0.29619 0.0938 0.47208 0.20456 0.78125 0.28125 1.018 0.25254 2.0882 0.36806 3.2188 0.28125 1.1305-0.0868 2.3004-0.39959 3.5-1.0625s2.6147-1.6156 4.0312-2.75c1.4166-1.1344 2.8468-2.4314 4.0938-3.8125 1.2469-1.3811 2.3095-2.8472 3-4.25 0.34527-0.70139 0.58508-1.3979 0.71875-2.0625 0.0579-0.28793-0.0117-0.53525 0-0.8125-2.8189 4.4848-10.834 5.5216-19.375 14.062 0.0123 0.0416 0.019 0.0834 0.0312 0.125z" fill="#e2bd8c"/>
|
||||||
|
<path d="m354.97 704.88c-0.32701 0.5351-0.87696 1.1565-1.3431 1.6118 0.0989 0.55712 0.231 0.79088 0.31187 1.357 0.23438 1.6406 0.37333 3.3175 0.4375 5 0.0642 1.6825-0.30714 4.1144-0.44094 5.7886 0.17743-0.17319 0.59169 0.0592 0.73734-1.0957 0.64712-3.6144 2.0651-8.3685 0.29735-12.662z" fill="#8a5741"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 10 KiB |
Loading…
Reference in New Issue
Block a user