[PR #147] [MERGED] Support customizable formats #1577

Closed
opened 2026-03-14 15:21:38 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/147
Author: @aome510
Created: 2/25/2023
Status: Merged
Merged: 2/25/2023
Merged by: @aome510

Base: masterHead: customizable-formats


📝 Commits (9)

  • 7a64345 add regex
  • b0b6b47 add playback_format config option and playback_artists component style
  • c742d37 format string works but without handling newlines
  • 102a955 handle newline
  • 3518909 move notify code to notify_new_track function
  • 69b777e allow notify's format to be configurable
  • e2647be update config documentation and example app.toml
  • 1c32702 mention playback_artists component style
  • 8c6ce2f cleanup

📊 Changes

10 files changed (+172 additions, -54 deletions)

View changed files

📝 Cargo.lock (+1 -0)
📝 docs/config.md (+4 -0)
📝 examples/app.toml (+3 -0)
📝 examples/theme.toml (+5 -0)
📝 scripts/theme_parse (+1 -0)
📝 spotify_player/Cargo.toml (+1 -0)
📝 spotify_player/src/client/mod.rs (+62 -25)
📝 spotify_player/src/config/mod.rs (+18 -0)
📝 spotify_player/src/config/theme.rs (+11 -0)
📝 spotify_player/src/ui/playback.rs (+66 -29)

📄 Description

Resolves #146

Changes

  • added playback_format config option for text formatting in the playback window
  • added notify_format config option for formatting in the notification
  • added playback_artists component style

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/aome510/spotify-player/pull/147 **Author:** [@aome510](https://github.com/aome510) **Created:** 2/25/2023 **Status:** ✅ Merged **Merged:** 2/25/2023 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `customizable-formats` --- ### 📝 Commits (9) - [`7a64345`](https://github.com/aome510/spotify-player/commit/7a6434576ac64a4989dee6b739ce38e10ac0479f) add `regex` - [`b0b6b47`](https://github.com/aome510/spotify-player/commit/b0b6b470edc38171534ca576c3021ea35d87b3ba) add `playback_format` config option and `playback_artists` component style - [`c742d37`](https://github.com/aome510/spotify-player/commit/c742d370420ef54f7da4462a5378a25a450d4488) format string works but without handling newlines - [`102a955`](https://github.com/aome510/spotify-player/commit/102a9554a98e27ae2def824f6d73e383a3850894) handle newline - [`3518909`](https://github.com/aome510/spotify-player/commit/35189090aaecd112ec2ce376a677fd4da35224ab) move notify code to `notify_new_track` function - [`69b777e`](https://github.com/aome510/spotify-player/commit/69b777ed9256f721b32acd2e5b5d9edb34329a52) allow notify's format to be configurable - [`e2647be`](https://github.com/aome510/spotify-player/commit/e2647be7fd3a4868a7b19f7bb6ff51c9e4368d2c) update config documentation and example `app.toml` - [`1c32702`](https://github.com/aome510/spotify-player/commit/1c327029075162d15a66a8497c466c32418517ec) mention `playback_artists` component style - [`8c6ce2f`](https://github.com/aome510/spotify-player/commit/8c6ce2ff2d5964023fc16d070ff044264a05b885) cleanup ### 📊 Changes **10 files changed** (+172 additions, -54 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+1 -0) 📝 `docs/config.md` (+4 -0) 📝 `examples/app.toml` (+3 -0) 📝 `examples/theme.toml` (+5 -0) 📝 `scripts/theme_parse` (+1 -0) 📝 `spotify_player/Cargo.toml` (+1 -0) 📝 `spotify_player/src/client/mod.rs` (+62 -25) 📝 `spotify_player/src/config/mod.rs` (+18 -0) 📝 `spotify_player/src/config/theme.rs` (+11 -0) 📝 `spotify_player/src/ui/playback.rs` (+66 -29) </details> ### 📄 Description Resolves #146 ## Changes - added `playback_format` config option for text formatting in the playback window - added `notify_format` config option for formatting in the notification - added `playback_artists` component style --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 15:21:38 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#1577
No description provided.