* feat: make music lable more dynamically configurable * fix: move seekbar above controls * fix: add menu for media * fix: add menu for media * fix: add menu for media * Organize media player code * fix: revert back controls position * Delete pnpm-lock.yaml * Update options.ts * Update widget/settings/pages/config/bar/index.ts * fix: merge changes broken --------- Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
20 lines
701 B
TypeScript
20 lines
701 B
TypeScript
import { BoxWidget } from 'lib/types/widget';
|
|
import { songName } from './name/index';
|
|
import { songAuthor } from './author/index';
|
|
import { songAlbum } from './album/index';
|
|
import options from 'options';
|
|
|
|
const { hideAlbum, hideAuthor } = options.menus.media;
|
|
|
|
export const MediaInfo = (): BoxWidget => {
|
|
return Widget.Box({
|
|
class_name: 'media-indicator-current-media-info',
|
|
hpack: 'center',
|
|
hexpand: true,
|
|
vertical: true,
|
|
children: Utils.merge([hideAlbum.bind('value'), hideAuthor.bind('value')], (hidAlbum, hidAuthor) => {
|
|
return [songName(), ...(hidAuthor ? [] : [songAuthor()]), ...(hidAlbum ? [] : [songAlbum()])];
|
|
}),
|
|
});
|
|
};
|