asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.86k stars 297 forks source link

Request : Add UI Text Size Config Setting. #599

Closed life888888 closed 8 months ago

life888888 commented 11 months ago

Is it possible to increase and adjust the text size of the tree UI on the left and the text size set by the ITEM of the TAB on the right?

Because even with a large screen, the menu text cannot be resized to a larger size. Editor can be resized, but the setting menu of the right TAB cannot be resized. screen

rahmanusta commented 8 months ago

You can configure them in css files located under conf/themes folder.

life888888 commented 8 months ago

You can configure them in css files located under conf/themes folder.

Can you please provide some more tips? Do I need to create a new css file or modify the existing css file (conf/themes/Shared.css & conf/themes/default/Style.css)? If I want to change the left What keywords should be modified to make the "workdir" of Tab or the directory tree inside become larger font size ?

rahmanusta commented 8 months ago

You can edit the existing ones or you can create your own theme. You can check the JavaFX css guide in here https://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html

life888888 commented 8 months ago

I will try again, thank you.

life888888 commented 8 months ago

Update

Before

screen

After

screen_after

add -fx-font-size: 24px; to some block

AsciidocFX/conf/themes/Shared.css

Shared.css.txt

AsciidocFX/conf/themes/default/Style.css

Style.css.txt

  1. Due to poor eyesight, I changed to a larger screen, but the menu, tree structure, Tab and Settings text and labels in the AsciidocFX panel still look too small.
  2. After adjusting the css file under the theme according to the suggestions, the text and labels in the menu, tree structure, Tab and Settings have all become larger.