Skip to content

Commit

Permalink
feat: inset text for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Yagnap committed Jul 10, 2024
1 parent 01dc745 commit 3ea708b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 186 deletions.
185 changes: 0 additions & 185 deletions src/main/java/eu/snik/tag/DocxLoader.java

This file was deleted.

4 changes: 4 additions & 0 deletions src/main/java/eu/snik/tag/gui/ClassTextPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import eu.snik.tag.Clazz;
import eu.snik.tag.Subtop;
import javafx.collections.ListChangeListener;
import javafx.geometry.Insets;
import javafx.scene.control.ScrollPane;
import javafx.scene.input.MouseButton;
import javafx.scene.input.MouseEvent;
Expand Down Expand Up @@ -103,6 +104,9 @@ public void highlightObject(Clazz old, Clazz neww) {
highlightObject(old, neww);
}
);

this.flow.setPadding(new Insets(50,240,50,320));
this.flow.getStyleClass().add("mainTextFlow");
}

private final Map<Subtop, String> cssClass = Map.of(
Expand Down
6 changes: 5 additions & 1 deletion src/main/resources/eu/snik/tag/gui/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@
.subject {-fx-border-style: dashed; -fx-border-color: yellow; -fx-stroke:gold}
.object {-fx-border-style: dashed; -fx-border-color: yellow; -fx-stroke:firebrick}

.heading {-fx-font-size: 18pt;}
.heading {-fx-font-size: 18pt;}

.mainTextFlow {
-fx-text-alignment: justify;
}

0 comments on commit 3ea708b

Please sign in to comment.