Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add New Theme Presets

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

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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
cli

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ả

enhancement good first issue

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

  1. Comment below with the theme name you want to add (to avoid duplicates)
  2. Open src/user_config.rs and find the ThemePreset enum
  3. Add your theme in four places:
    • Add variant to the ThemePreset enum (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
  4. Test it in the app to make sure it looks good
  5. 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_text
  • active / inactive
  • banner / error_border / error_text
  • hint / hovered
  • playbar_background / playbar_progress / playbar_progress_text / playbar_text
  • selected / text
  • header / 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

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 LargeModGames/spotatui

Tất cả issue của LargeModGames/spotatui

Issue tương tự

Thêm issue về Rust

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.