✨ ags(center-window/bigmedia): add revealer for animations
This commit is contained in:
@@ -21,6 +21,7 @@ export function BigMedia(): Gtk.Widget {
|
|||||||
className: "image",
|
className: "image",
|
||||||
hexpand: false,
|
hexpand: false,
|
||||||
orientation: Gtk.Orientation.VERTICAL,
|
orientation: Gtk.Orientation.VERTICAL,
|
||||||
|
marginTop: 6,
|
||||||
visible: getAlbumArt(players[0]).as(Boolean),
|
visible: getAlbumArt(players[0]).as(Boolean),
|
||||||
css: getAlbumArt(players[0]).as((artUrl: string|undefined) =>
|
css: getAlbumArt(players[0]).as((artUrl: string|undefined) =>
|
||||||
artUrl ? `.image { background-image: url('${artUrl}'); }` : undefined),
|
artUrl ? `.image { background-image: url('${artUrl}'); }` : undefined),
|
||||||
@@ -31,6 +32,8 @@ export function BigMedia(): Gtk.Widget {
|
|||||||
new Widget.Box({
|
new Widget.Box({
|
||||||
className: "info",
|
className: "info",
|
||||||
orientation: Gtk.Orientation.VERTICAL,
|
orientation: Gtk.Orientation.VERTICAL,
|
||||||
|
vexpand: true,
|
||||||
|
valign: Gtk.Align.CENTER,
|
||||||
children: [
|
children: [
|
||||||
new Widget.Label({
|
new Widget.Label({
|
||||||
className: "title",
|
className: "title",
|
||||||
@@ -77,6 +80,7 @@ export function BigMedia(): Gtk.Widget {
|
|||||||
className: "bottom",
|
className: "bottom",
|
||||||
homogeneous: false,
|
homogeneous: false,
|
||||||
hexpand: true,
|
hexpand: true,
|
||||||
|
marginBottom: 6,
|
||||||
startWidget: new Widget.Label({
|
startWidget: new Widget.Label({
|
||||||
className: "elapsed",
|
className: "elapsed",
|
||||||
valign: Gtk.Align.START,
|
valign: Gtk.Align.START,
|
||||||
|
|||||||
Reference in New Issue
Block a user