Add New Theme Presets
Maintainer thường phản hồi trong vòng 1 ngày
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
- 45/100
Hướng nghiên cứu
Read the ThemePreset enum and its related methods in src/user_config.rs, using the Dracula or Nord preset as an example. Choose a distinct theme name and add it to the enum, all(), name(), from_name(), and to_theme(). Test the theme in the app and check that all listed UI colors are readable and consistent.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Add New Theme Presets
We want to expand our collection of built-in themes and we'd love YOUR creativity!
What We're Looking For
Feel free to add any theme you'd like! Some ideas to inspire you:
- Recreate your favorite color scheme from another app
- Design something based on a vibe (synthwave, lo-fi, nature, etc.)
- Create accessibility-focused themes (high contrast, colorblind-friendly)
- Port popular themes (Tokyo Night, Catppuccin, One Dark, Rosé Pine, etc.)
- Make something completely original!
How to Contribute
- Comment below with the theme name you want to add (to avoid duplicates)
- Open
src/user_config.rsand find theThemePresetenum - Add your theme in four places:
- Add variant to the
ThemePresetenum (e.g.,ThemePreset::YourTheme) - Add it to the
all()function array - Add the name in the
name()match statement - Add the name mapping in the
from_name()match statement - Add the color definitions in the
to_theme()match statement
- Add variant to the
- Test it in the app to make sure it looks good
- Submit a PR!
Current themes: Default, Spotify, Dracula, Nord, Solarized Dark, Monokai, Gruvbox, Custom
Color Elements to Define
Each theme needs to specify colors for all UI elements:
analysis_bar/analysis_bar_textactive/inactivebanner/error_border/error_texthint/hoveredplaybar_background/playbar_progress/playbar_progress_text/playbar_textselected/textheader/highlighted_lyrics
Look at the Dracula or Nord themes in the code for a complete example!
Guidelines
- Use RGB color values:
Color::Rgb(r, g, b) - Choose colors with good contrast for readability
- Test your theme to make sure all UI elements are visible and look good together
- Add helpful comments (like
// Purple,// Nord8 (frost)) to document your color choices - Give your theme a descriptive name
- One theme per PR to keep reviews simple
Feel free to ask questions in the comments if you need help getting started!
- Ngôn ngữ chính
- Rust
- Star
- 1.4k
- Fork
- 238
- Merge trung bình
- 8 giờ 56 phút
- Pull request đã merge (30 ngày)
- 208
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của LargeModGames/spotatui
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
LargeModGames/spotatui#878 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
LargeModGames/spotatui#872 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
LargeModGames/spotatui#871 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
LargeModGames/spotatui#832 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
LargeModGames/spotatui#829 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của LargeModGames/spotatui
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
pop-os/cosmic-comp#2956 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
libp2p/rust-libp2p#6694 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Stack overflow in `check bans` with `include-dependencies = true` and a dev-dependency cycleĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
EmbarkStudios/cargo-deny#910 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tursodatabase/turso#10054 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
build: Update rust versionCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởdependencies
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
ibm-granite-community/granite-cli#229 ·
Maintainer thường phản hồi trong vòng 1 ngày