Clean up media module logic and code. (#380)
* Organized media menu code * More consolidation
This commit is contained in:
14
modules/menus/media/components/title/index.ts
Normal file
14
modules/menus/media/components/title/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { BoxWidget } from 'lib/types/widget';
|
||||
import { songName } from './name/index';
|
||||
import { songAuthor } from './author/index';
|
||||
import { songAlbum } from './album/index';
|
||||
|
||||
export const MediaInfo = (): BoxWidget => {
|
||||
return Widget.Box({
|
||||
class_name: 'media-indicator-current-media-info',
|
||||
hpack: 'center',
|
||||
hexpand: true,
|
||||
vertical: true,
|
||||
children: [songName(), songAuthor(), songAlbum()],
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user