Add horizontal ruler / line / separator

Đang mở
#371 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
frontend

Hướng nghiên cứu

The issue describes expanding standalone symbols into full-width separators in settings descriptions and links to an example implementation in Blue-Recipe-Book's DescriptionSeparators.java. Start by reading that example and locating how YetAnotherConfigLib renders description text. Done means standalone symbol lines display as full-width separators while surrounding description text remains readable.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

In my own plugin I added a fun little helper that turns any symbol that is alone on it's text line in the description into a full-width version to have a good scaling separator / <hr>

Input string                  In settings description window

"\n---\n"           ->        |----------------------|
"\n%%%%%%\n"        ->        |%%%%%%%%%%%%%%%%%%%%%%|
"\n§1dddddd\n"      ->        |§1dddddddddddddddddddd|


"hello\n\n---\n\nthere   ->   |hello                 |
                              |----------------------|
                              |there                 |

You can find the code here: https://github.com/PhoenixIV/Blue-Recipe-Book/blob/1b326286fba6a1baa074c57f9698447111edee76/common/src/main/java/dev/bluerecipebook/client/DescriptionSeparators.java

Maybe this is something you want to adopt?

It could go even more fanciful, of course, but I did not need that:

"- hi ---"          ->        |-- hi ----------------|
Ngôn ngữ chính
Java
Star
161
Fork
70
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của isXander/YetAnotherConfigLib

Tất cả issue của isXander/YetAnotherConfigLib

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.