fix: display media total length on bar and add a time label (#435)
* fix: display media total length on bar * fix: add option to display custom nomedia text * feat: add dedicated label too * fix: media add more window names for playables * fix: add option to control display time * Consolidate code and make tooltip timestamp for media bar opt-in. --------- Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
@@ -15,6 +15,19 @@ export const MediaMenuSettings = (): Scrollable<Child, Attribute> => {
|
||||
Header('Media'),
|
||||
Option({ opt: options.menus.media.hideAuthor, title: 'Hide Author', type: 'boolean' }),
|
||||
Option({ opt: options.menus.media.hideAlbum, title: 'Hide Album', type: 'boolean' }),
|
||||
Option({ opt: options.menus.media.displayTime, title: 'Display Time Info', type: 'boolean' }),
|
||||
Option({
|
||||
opt: options.menus.media.displayTimeTooltip,
|
||||
title: 'Display Time Tooltip',
|
||||
subtitle: 'Display the current media time tooltip when hovering over the bar',
|
||||
type: 'boolean',
|
||||
}),
|
||||
Option({
|
||||
opt: options.menus.media.noMediaText,
|
||||
title: 'No Media Placeholder',
|
||||
subtitle: 'Text to display when no media is being played',
|
||||
type: 'string',
|
||||
}),
|
||||
],
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -18,6 +18,7 @@ export const MediaMenuTheme = (): Scrollable<Child, Attribute> => {
|
||||
Option({ opt: options.theme.bar.menus.menu.media.song, title: 'Song', type: 'color' }),
|
||||
Option({ opt: options.theme.bar.menus.menu.media.artist, title: 'Artist', type: 'color' }),
|
||||
Option({ opt: options.theme.bar.menus.menu.media.album, title: 'Album', type: 'color' }),
|
||||
Option({ opt: options.theme.bar.menus.menu.media.timestamp, title: 'Time Stamp', type: 'color' }),
|
||||
|
||||
Header('Background'),
|
||||
Option({
|
||||
|
||||
Reference in New Issue
Block a user