-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new CSS themes (pdf-view-atlanta.css and nord-light.css) to customize the appearance of the PDF Viewer. The changes include color schemes, typography, and element sizes, among others. These changes improve the visual presentation and usability of the PDF viewer.
- Loading branch information
1 parent
1c0d7d0
commit 18b3e95
Showing
8 changed files
with
9,579 additions
and
3 deletions.
There are no files selected for viewing
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
22 changes: 22 additions & 0 deletions
22
pdfviewfx-demo/src/main/java/com/dlsc/pdfviewfx/demo/PDFViewAtlantaApp.java
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,22 @@ | ||
package com.dlsc.pdfviewfx.demo; | ||
|
||
import javafx.application.Application; | ||
import javafx.stage.Stage; | ||
|
||
import java.util.Objects; | ||
|
||
public class PDFViewAtlantaApp extends PDFViewApp { | ||
|
||
@Override | ||
public void start(Stage primaryStage) { | ||
super.start(primaryStage); | ||
|
||
pdfView.getStylesheets().setAll(Objects.requireNonNull(PDFViewAtlantaApp.class.getResource("/pdf-view-atlanta.css")).toExternalForm()); | ||
} | ||
|
||
public static void main(String[] args) { | ||
// Application.setUserAgentStylesheet(Objects.requireNonNull(PDFViewAtlantaApp.class.getResource("/nord-light.css")).toExternalForm()); | ||
Application.setUserAgentStylesheet(Objects.requireNonNull(PDFViewAtlantaApp.class.getResource("/nord-dark.css")).toExternalForm()); | ||
launch(args); | ||
} | ||
} |
Oops, something went wrong.