bar: media use identity
Use identity instead of entry cause some players don't have an entry (e.g. feishin) Add feishin icon
This commit is contained in:
parent
3246e9596c
commit
f1298fbb29
2 changed files with 6 additions and 2 deletions
4
assets/icons/caelestia-feishin-symbolic.svg
Normal file
4
assets/icons/caelestia-feishin-symbolic.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 13 KiB |
|
|
@ -81,8 +81,8 @@ const MediaPlaying = () => {
|
|||
>
|
||||
<icon
|
||||
setup={self =>
|
||||
players.hookLastPlayer(self, "notify::entry", () => {
|
||||
const icon = `caelestia-${players.lastPlayer?.entry}-symbolic`;
|
||||
players.hookLastPlayer(self, "notify::identity", () => {
|
||||
const icon = `caelestia-${players.lastPlayer?.identity.toLowerCase()}-symbolic`;
|
||||
self.icon = players.lastPlayer
|
||||
? Astal.Icon.lookup_icon(icon)
|
||||
? icon
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue