feat(ags): modify player config to my liking

This commit is contained in:
matt1432 2023-09-17 17:27:23 -04:00
parent 81c36b5dec
commit 348f95484e
5 changed files with 444 additions and 573 deletions

View file

@ -1,102 +1,114 @@
const { CACHE_DIR, execAsync, ensureDirectory, lookUpIcon } = ags.Utils; const { CACHE_DIR, execAsync, ensureDirectory, lookUpIcon } = ags.Utils;
const { Button, Icon, Label, Box, Stack, Slider } = ags.Widget; const { Button, Icon, Label, Box, Stack, Slider, CenterBox } = ags.Widget;
const { GLib } = imports.gi; const { GLib } = imports.gi;
const icons = { const icons = {
mpris: { mpris: {
fallback: 'audio-x-generic-symbolic', fallback: 'audio-x-generic-symbolic',
shuffle: { shuffle: {
enabled: '󰒟', enabled: '󰒝',
disabled: '󰒟', disabled: '󰒞',
}, },
loop: { loop: {
none: '󰓦', none: '󰑗',
track: '󰓦', track: '󰑘',
playlist: '󰑐', playlist: '󰑖',
}, },
playing: '󰏦', playing: '',
paused: '󰐍', paused: '',
stopped: '󰐍', stopped: '',
prev: '󰒮', prev: '󰒮',
next: '󰒭', next: '󰒭',
}, },
} }
let coloryou = path => ['bash', '-c', `[[ -f "${path}" ]] && coloryou "${path}"`];
const MEDIA_CACHE_PATH = CACHE_DIR + '/media'; const MEDIA_CACHE_PATH = CACHE_DIR + '/media';
export const CoverArt = (player, props) => Box({ export const CoverArt = (player, params) => CenterBox({
...props, ...params,
className: 'cover', className: 'player',
connections: [[player, box => { vertical: true,
box.setStyle(`background-image: url("${player.coverPath}")`); connections: [
}]], [player, box => {
execAsync(coloryou(player.coverPath))
.then(out => {
let colors = JSON.parse(out);
box.setStyle(`background: radial-gradient(circle,
rgba(0, 0, 0, 0.4) 30%,
${colors.imageAccent}),
url("${player.coverPath}");
background-size: cover;
background-position: center;`);
}).catch(err => { if (err !== "") print(err) });
}],
],
}); });
export const BlurredCoverArt = (player, props) => Box({ export const TitleLabel = (player, params) => Label({
...props, ...params,
className: 'blurred-cover', xalign: 0,
connections: [[player, box => { maxWidthChars: 40,
const url = player.coverPath; truncate: 'end',
if (!url) justification: 'left',
return;
const blurredPath = MEDIA_CACHE_PATH + '/blurred';
const blurred = blurredPath +
url.substring(MEDIA_CACHE_PATH.length);
if (GLib.file_test(blurred, GLib.FileTest.EXISTS)) {
box.setStyle(`background-image: url("${blurred}")`);
return;
}
ensureDirectory(blurredPath);
execAsync(['convert', url, '-blur', '0x22', blurred])
.then(() => box.setStyle(`background-image: url("${blurred}")`))
.catch(() => { });
}]],
});
export const TitleLabel = (player, props) => Label({
...props,
className: 'title', className: 'title',
binds: [['label', player, 'trackTitle']], binds: [['label', player, 'trackTitle']],
}); });
export const ArtistLabel = (player, props) => Label({ export const ArtistLabel = (player, params) => Label({
...props, ...params,
xalign: 0,
maxWidthChars: 40,
truncate: 'end',
justification: 'left',
className: 'artist', className: 'artist',
connections: [[player, label => { connections: [[player, label => {
label.label = player.trackArtists.join(', ') || ''; label.label = player.trackArtists.join(', ') || '';
}]], }]],
}); });
export const PlayerIcon = (player, { symbolic = true, ...props } = {}) => Icon({ export const PlayerIcon = (player, { symbolic = true, ...params } = {}) => Icon({
...props, ...params,
className: 'player-icon', className: 'player-icon',
tooltipText: player.indentity || '', tooltipText: player.indentity || '',
connections: [[player, icon => { connections: [[player, icon => {
const name = `${player.entry}${symbolic ? '-symbolic' : ''}`; const name = `${player.entry}${symbolic ? '-symbolic' : ''}`;
lookUpIcon(name) lookUpIcon(name) ? icon.icon = name
? icon.icon = name
: icon.icon = icons.mpris.fallback; : icon.icon = icons.mpris.fallback;
}]], }]],
}); });
export const PositionSlider = (player, props) => Slider({ export const PositionSlider = (player, params) => Slider({
...props, ...params,
className: 'position-slider', className: 'position-slider',
hexpand: true,
drawValue: false, drawValue: false,
onChange: ({ value }) => { onChange: ({ value }) => {
player.position = player.length * value; player.position = player.length * value;
}, },
properties: [['update', slider => { properties: [
['update', slider => {
execAsync(coloryou(player.coverPath))
.then(out => {
let colors = JSON.parse(out);
slider.setCss(`highlight { background-color: ${colors.buttonAccent}; }
slider { background-color: ${colors.buttonAccent}; }
slider:hover { background-color: #303240; }
trough { background-color: ${colors.buttonAccent}; }`);
}).catch(err => { if (err !== "") print(err) });
if (slider.dragging) if (slider.dragging)
return; return;
slider.visible = player.length > 0; slider.sensitive = player.length > 0;
if (player.length > 0) if (player.length > 0)
slider.value = player.position / player.length; slider.value = player.position / player.length;
}]], }],
],
connections: [ connections: [
[player, s => s._update(s), 'position'], [player, s => s._update(s), 'position'],
[1000, s => s._update(s)], [1000, s => s._update(s)],
@ -112,8 +124,7 @@ function lengthStr(length) {
export const PositionLabel = player => Label({ export const PositionLabel = player => Label({
properties: [['update', label => { properties: [['update', label => {
player.length > 0 player.length > 0 ? label.label = lengthStr(player.position)
? label.label = lengthStr(player.position)
: label.visible = !!player; : label.visible = !!player;
}]], }]],
connections: [ connections: [
@ -124,8 +135,7 @@ export const PositionLabel = player => Label({
export const LengthLabel = player => Label({ export const LengthLabel = player => Label({
connections: [[player, label => { connections: [[player, label => {
player.length > 0 player.length > 0 ? label.label = lengthStr(player.length)
? label.label = lengthStr(player.length)
: label.visible = !!player; : label.visible = !!player;
}]], }]],
}); });
@ -137,13 +147,29 @@ export const Slash = player => Label({
}]], }]],
}); });
const PlayerButton = ({ player, items, onClick, prop, canProp, cantValue }) => Button({ const PlayerButton = ({ player, items, onClick, prop }) => Button({
child: Stack({ items }), child: Stack({ items }),
onClicked: () => player[onClick](), onPrimaryClickRelease: () => player[onClick](),
connections: [[player, button => { connections: [
button.visible = player[canProp] !== cantValue; [player, button => {
button.child.shown = `${player[prop]}`; button.child.shown = `${player[prop]}`;
}]],
execAsync(coloryou(player.coverPath))
.then(out => {
let colors = JSON.parse(out);
if (prop == 'playBackStatus') {
items.forEach(item => {
item[1].setStyle(`background-color: ${colors.buttonAccent};
color: ${colors.buttonText};`);
})
}
else {
button.setStyle(`color: ${colors.buttonAccent};`);
}
}).catch(err => { if (err !== "") print(err) });
}],
],
}); });
export const ShuffleButton = player => PlayerButton({ export const ShuffleButton = player => PlayerButton({
@ -160,8 +186,6 @@ export const ShuffleButton = player => PlayerButton({
], ],
onClick: 'shuffle', onClick: 'shuffle',
prop: 'shuffleStatus', prop: 'shuffleStatus',
canProp: 'shuffleStatus',
cantValue: null,
}); });
export const LoopButton = player => PlayerButton({ export const LoopButton = player => PlayerButton({
@ -182,30 +206,26 @@ export const LoopButton = player => PlayerButton({
], ],
onClick: 'loop', onClick: 'loop',
prop: 'loopStatus', prop: 'loopStatus',
canProp: 'loopStatus',
cantValue: null,
}); });
export const PlayPauseButton = player => PlayerButton({ export const PlayPauseButton = player => PlayerButton({
player, player,
items: [ items: [
['Playing', Label({ ['Playing', Label({
className: 'playing', className: 'pausebutton playing',
label: icons.mpris.playing, label: icons.mpris.playing,
})], })],
['Paused', Label({ ['Paused', Label({
className: 'paused', className: 'pausebutton paused',
label: icons.mpris.paused, label: icons.mpris.paused,
})], })],
['Stopped', Label({ ['Stopped', Label({
className: 'stopped', className: 'pausebutton stopped paused',
label: icons.mpris.stopped, label: icons.mpris.stopped,
})], })],
], ],
onClick: 'playPause', onClick: 'playPause',
prop: 'playBackStatus', prop: 'playBackStatus',
canProp: 'canPlay',
cantValue: false,
}); });
export const PreviousButton = player => PlayerButton({ export const PreviousButton = player => PlayerButton({
@ -215,11 +235,13 @@ export const PreviousButton = player => PlayerButton({
className: 'previous', className: 'previous',
label: icons.mpris.prev, label: icons.mpris.prev,
})], })],
['false', Label({
className: 'previous',
label: icons.mpris.prev,
})],
], ],
onClick: 'previous', onClick: 'previous',
prop: 'canGoPrev', prop: 'canGoPrev',
canProp: 'canGoPrev',
cantValue: false,
}); });
export const NextButton = player => PlayerButton({ export const NextButton = player => PlayerButton({
@ -229,9 +251,11 @@ export const NextButton = player => PlayerButton({
className: 'next', className: 'next',
label: icons.mpris.next, label: icons.mpris.next,
})], })],
['false', Label({
className: 'next',
label: icons.mpris.next,
})],
], ],
onClick: 'next', onClick: 'next',
prop: 'canGoNext', prop: 'canGoNext',
canProp: 'canGoNext',
cantValue: false,
}); });

View file

@ -1,83 +1,84 @@
import * as mpris from './mpris.js';
const { Mpris } = ags.Service; const { Mpris } = ags.Service;
const { Box, CenterBox } = ags.Widget; const { Box, CenterBox, Label } = ags.Widget;
const Footer = player => CenterBox({ import * as mpris from './mpris.js';
className: 'footer-box', import { Separator } from '../misc/separator.js';
const Top = player => Box({
className: 'top',
halign: 'start',
valign: 'start',
children: [ children: [
Box({
className: 'position',
children: [
mpris.PositionLabel(player),
mpris.Slash(player),
mpris.LengthLabel(player),
],
}),
Box({
className: 'controls',
children: [
mpris.ShuffleButton(player),
mpris.PreviousButton(player),
mpris.PlayPauseButton(player),
mpris.NextButton(player),
mpris.LoopButton(player),
],
}),
mpris.PlayerIcon(player, { mpris.PlayerIcon(player, {
symbolic: false, symbolic: false,
hexpand: true,
halign: 'end',
}), }),
], ],
}); });
const TextBox = player => Box({ const Center = player => Box({
className: 'center',
children: [ children: [
mpris.CoverArt(player, {
halign: 'end', CenterBox({
hexpand: false, vertical: true,
child: Box({ children: [
className: 'shader',
hexpand: true,
}),
}),
Box({ Box({
hexpand: true, className: 'metadata',
vertical: true, vertical: true,
className: 'labels', halign: 'start',
valign: 'center',
hexpand: true,
children: [ children: [
mpris.TitleLabel(player, { mpris.TitleLabel(player),
xalign: 0, mpris.ArtistLabel(player),
justification: 'left',
wrap: true,
}),
mpris.ArtistLabel(player, {
xalign: 0,
justification: 'left',
wrap: true,
}),
], ],
}), }),
Label(),
Label(),
],
}),
CenterBox({
vertical: true,
children: [
Label(),
mpris.PlayPauseButton(player),
Label(),
],
}),
], ],
}); });
const PlayerBox = player => Box({ const Bottom = player => Box({
className: `player ${player.name}`, className: 'bottom',
children: [ children: [
mpris.BlurredCoverArt(player, {
className: 'cover-art-bg', mpris.PreviousButton(player, {
hexpand: true, valign: 'end',
children: [Box({ halign: 'start',
className: 'shader',
hexpand: true,
vertical: true,
children: [
TextBox(player),
mpris.PositionSlider(player),
Footer(player),
],
})],
}), }),
Separator(8),
mpris.PositionSlider(player),
Separator(8),
mpris.NextButton(player),
Separator(8),
mpris.ShuffleButton(player),
Separator(8),
mpris.LoopButton(player),
],
});
const PlayerBox = player => mpris.CoverArt(player, {
className: `player ${player.name}`,
hexpand: true,
children: [
Top(player),
Center(player),
Bottom(player),
], ],
}); });

View file

@ -1,189 +1,101 @@
.arrow { .arrow {
transition: -gtk-icon-transform 0.3s ease-in-out; transition: -gtk-icon-transform 0.3s ease-in-out;
margin-bottom: 5px; margin-bottom: 12px;
} }
.media .player { .media {
all: unset;
border-radius: 9px;
color: #eee;
background-color: rgba(238, 238, 238, 0.06);
border: 1px solid rgba(238, 238, 238, 0.03);
margin-top: 9px; margin-top: 9px;
* { }
font-size: 16px;
font-family: "Ubuntu Nerd Font", sans-serif; .player {
}
label {
color: white;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
}
.shader {
all: unset; all: unset;
box-shadow: inset 0 0 3em 1em rgba(23, 23, 23, 0.7); padding: 10px;
* { min-width: 400px;
font-size: 16px; min-height: 200px;
font-family: "Ubuntu Nerd Font", sans-serif; border-radius: 30px;
border-top: 2px solid $contrastbg;
border-bottom: 2px solid $contrastbg;
transition: background 250ms;
.top {
font-size: 23px;
} }
.metadata {
.title{
font-weight: 500;
transition: text 250ms;
}
.artist{
font-weight: 400;
font-size: 15px;
transition: text 250ms;
}
}
.bottom {
font-size: 30px;
}
.pausebutton {
transition: background 250ms;
font-size: 15px;
min-height: 14px;
min-width: 14px;
padding: 14px 14px 14px 17px;
}
.playing {
transition: all ease .2s;
border-radius: 15px;
}
.stopped,
.paused {
border-radius: 26px;
transition: all ease .2s;
padding: 14px 14px 14px 20px;
}
button label {
min-width: 35px;
}
}
.previous,
.next,
.shuffle,
.loop {
border-radius: 100%;
transition: background-color 200ms;
&:hover {
border-radius: 100%;
background-color: rgba(127, 132, 156, 0.4);
transition: background-color 200ms;
}
}
.loop {
label { label {
color: white; padding-right: 8px;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
} }
}
.position-slider {
highlight {
margin: 0px;
border-radius: 2em;
} }
.cover {
border-radius: 7.2px;
min-height: 100px;
min-width: 100px;
box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.6);
margin: 9px;
margin-bottom: 0;
.shader {
background-color: transparent;
border-radius: 6.2px;
box-shadow: inset 0 0 0 999px rgba(23, 23, 23, 0.2);
}
}
.blurred-cover, .cover {
background-size: cover;
background-position: center;
border-radius: 8px;
}
.labels {
margin-top: 9px;
label {
font-size: 1.1em;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
&.title {
font-weight: bold;
}
}
}
.position-slider {
all: unset;
margin: 9px 0;
* {
font-size: 16px;
font-family: "Ubuntu Nerd Font", sans-serif;
}
* {
all: unset;
}
trough { trough {
transition: 200ms; border-radius: 2em;
border-radius: 0;
border: 1px solid rgba(238, 238, 238, 0.03);
background-color: rgba(238, 238, 238, 0.06);
min-height: 0.4em;
min-width: 0.4em;
highlight, progress {
border-radius: 0;
background-image: linear-gradient(white, white);
min-height: 0.4em;
min-width: 0.4em;
}
&:focus {
background-color: rgba(238, 238, 238, 0.154);
box-shadow: inset 0 0 0 1px #51a4e7;
}
} }
slider { slider {
box-shadow: none; margin: -8px;
background-color: transparent; min-height: 20px;
border: 1px solid transparent; border-radius: 10px;
transition: 200ms; box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
border-radius: 0; transition: background-color 0.5s ease-in-out;
min-height: 0.4em;
min-width: 0.4em;
margin: -0.5em;
} }
&:hover trough { slider:hover {
background-color: rgba(238, 238, 238, 0.154); transition: background-color 0.5s ease-in-out;
} }
&:disabled highlight, &:disabled progress {
background-color: rgba(238, 238, 238, 0.6);
background-image: none;
}
trough {
border: none;
background-color: rgba(255, 255, 255, 0.3);
}
}
.footer-box {
margin: -4.5px 9px 4.5px;
image {
-gtk-icon-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
}
}
.controls button {
all: unset;
label {
font-size: 2em;
color: rgba(255, 255, 255, 0.8);
transition: 200ms;
&.shuffle, &.loop {
font-size: 1.4em;
}
}
&:hover label {
color: rgba(255, 255, 255, 0.9);
}
&:active label {
color: white;
}
}
&.spotify button .shuffle.enabled {
color: #43c383;
}
&.spotify button .loop.playlist, &.spotify button .loop.track {
color: #43c383;
}
&.spotify button:active label {
color: #43c383;
}
&.spotify .position-slider:hover trough {
background-color: rgba(67, 195, 131, 0.5);
}
&.spotify .player-icon {
color: #43c383;
}
&.firefox button .shuffle.enabled {
color: #E79E64;
}
&.firefox button .loop.playlist, &.firefox button .loop.track {
color: #E79E64;
}
&.firefox button:active label {
color: #E79E64;
}
&.firefox .position-slider:hover trough {
background-color: rgba(231, 158, 100, 0.5);
}
&.firefox .player-icon {
color: #E79E64;
}
&.mpv button .shuffle.enabled {
color: #9077e7;
}
&.mpv button .loop.playlist, &.mpv button .loop.track {
color: #9077e7;
}
&.mpv button:active label {
color: #9077e7;
}
&.mpv .position-slider:hover trough {
background-color: rgba(144, 119, 231, 0.5);
}
&.mpv .player-icon {
color: #9077e7;
}
}
.media.spotify image {
color: #43c383;
}
.media.firefox image {
color: #E79E64;
}
.media.mpv image {
color: #9077e7;
} }

View file

@ -591,144 +591,78 @@ calendar:indeterminate {
.arrow { .arrow {
transition: -gtk-icon-transform 0.3s ease-in-out; transition: -gtk-icon-transform 0.3s ease-in-out;
margin-bottom: 5px; } margin-bottom: 12px; }
.media .player { .media {
all: unset;
border-radius: 9px;
color: #eee;
background-color: rgba(238, 238, 238, 0.06);
border: 1px solid rgba(238, 238, 238, 0.03);
margin-top: 9px; } margin-top: 9px; }
.media .player * {
font-size: 16px; .player {
font-family: "Ubuntu Nerd Font", sans-serif; }
.media .player label {
color: white;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6); }
.media .player .shader {
all: unset; all: unset;
box-shadow: inset 0 0 3em 1em rgba(23, 23, 23, 0.7); } padding: 10px;
.media .player .shader * { min-width: 400px;
font-size: 16px; min-height: 200px;
font-family: "Ubuntu Nerd Font", sans-serif; } border-radius: 30px;
.media .player .shader label { border-top: 2px solid rgba(189, 147, 249, 0.8);
color: white; border-bottom: 2px solid rgba(189, 147, 249, 0.8);
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6); } transition: background 250ms; }
.media .player .cover { .player .top {
border-radius: 7.2px; font-size: 23px; }
min-height: 100px; .player .metadata .title {
min-width: 100px; font-weight: 500;
box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.6); transition: text 250ms; }
margin: 9px; .player .metadata .artist {
margin-bottom: 0; } font-weight: 400;
.media .player .cover .shader { font-size: 15px;
background-color: transparent; transition: text 250ms; }
border-radius: 6.2px; .player .bottom {
box-shadow: inset 0 0 0 999px rgba(23, 23, 23, 0.2); } font-size: 30px; }
.media .player .blurred-cover, .media .player .cover { .player .pausebutton {
background-size: cover; transition: background 250ms;
background-position: center; font-size: 15px;
border-radius: 8px; } min-height: 14px;
.media .player .labels { min-width: 14px;
margin-top: 9px; } padding: 14px 14px 14px 17px; }
.media .player .labels label { .player .playing {
font-size: 1.1em; transition: all ease .2s;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6); } border-radius: 15px; }
.media .player .labels label.title { .player .stopped,
font-weight: bold; } .player .paused {
.media .player .position-slider { border-radius: 26px;
all: unset; transition: all ease .2s;
margin: 9px 0; } padding: 14px 14px 14px 20px; }
.media .player .position-slider * { .player button label {
font-size: 16px; min-width: 35px; }
font-family: "Ubuntu Nerd Font", sans-serif; }
.media .player .position-slider * {
all: unset; }
.media .player .position-slider trough {
transition: 200ms;
border-radius: 0;
border: 1px solid rgba(238, 238, 238, 0.03);
background-color: rgba(238, 238, 238, 0.06);
min-height: 0.4em;
min-width: 0.4em; }
.media .player .position-slider trough highlight, .media .player .position-slider trough progress {
border-radius: 0;
background-image: linear-gradient(white, white);
min-height: 0.4em;
min-width: 0.4em; }
.media .player .position-slider trough:focus {
background-color: rgba(238, 238, 238, 0.154);
box-shadow: inset 0 0 0 1px #51a4e7; }
.media .player .position-slider slider {
box-shadow: none;
background-color: transparent;
border: 1px solid transparent;
transition: 200ms;
border-radius: 0;
min-height: 0.4em;
min-width: 0.4em;
margin: -0.5em; }
.media .player .position-slider:hover trough {
background-color: rgba(238, 238, 238, 0.154); }
.media .player .position-slider:disabled highlight, .media .player .position-slider:disabled progress {
background-color: rgba(238, 238, 238, 0.6);
background-image: none; }
.media .player .position-slider trough {
border: none;
background-color: rgba(255, 255, 255, 0.3); }
.media .player .footer-box {
margin: -4.5px 9px 4.5px; }
.media .player .footer-box image {
-gtk-icon-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6); }
.media .player .controls button {
all: unset; }
.media .player .controls button label {
font-size: 2em;
color: rgba(255, 255, 255, 0.8);
transition: 200ms; }
.media .player .controls button label.shuffle, .media .player .controls button label.loop {
font-size: 1.4em; }
.media .player .controls button:hover label {
color: rgba(255, 255, 255, 0.9); }
.media .player .controls button:active label {
color: white; }
.media .player.spotify button .shuffle.enabled {
color: #43c383; }
.media .player.spotify button .loop.playlist, .media .player.spotify button .loop.track {
color: #43c383; }
.media .player.spotify button:active label {
color: #43c383; }
.media .player.spotify .position-slider:hover trough {
background-color: rgba(67, 195, 131, 0.5); }
.media .player.spotify .player-icon {
color: #43c383; }
.media .player.firefox button .shuffle.enabled {
color: #E79E64; }
.media .player.firefox button .loop.playlist, .media .player.firefox button .loop.track {
color: #E79E64; }
.media .player.firefox button:active label {
color: #E79E64; }
.media .player.firefox .position-slider:hover trough {
background-color: rgba(231, 158, 100, 0.5); }
.media .player.firefox .player-icon {
color: #E79E64; }
.media .player.mpv button .shuffle.enabled {
color: #9077e7; }
.media .player.mpv button .loop.playlist, .media .player.mpv button .loop.track {
color: #9077e7; }
.media .player.mpv button:active label {
color: #9077e7; }
.media .player.mpv .position-slider:hover trough {
background-color: rgba(144, 119, 231, 0.5); }
.media .player.mpv .player-icon {
color: #9077e7; }
.media.spotify image { .previous,
color: #43c383; } .next,
.shuffle,
.loop {
border-radius: 100%;
transition: background-color 200ms; }
.previous:hover,
.next:hover,
.shuffle:hover,
.loop:hover {
border-radius: 100%;
background-color: rgba(127, 132, 156, 0.4);
transition: background-color 200ms; }
.media.firefox image { .loop label {
color: #E79E64; } padding-right: 8px; }
.media.mpv image { .position-slider highlight {
color: #9077e7; } margin: 0px;
border-radius: 2em; }
.position-slider trough {
border-radius: 2em; }
.position-slider slider {
margin: -8px;
min-height: 20px;
border-radius: 10px;
box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
transition: background-color 0.5s ease-in-out; }
.position-slider slider:hover {
transition: background-color 0.5s ease-in-out; }

View file

@ -11,7 +11,7 @@
in in
{ {
home.packages = [ home.packages = [
(builtins.getFlake "github:Aylur/ags").packages.x86_64-linux.default (builtins.getFlake "github:matt1432/ags").packages.x86_64-linux.default
pkgs.sassc pkgs.sassc
pkgs.kora-icon-theme pkgs.kora-icon-theme
pkgs.coloryou pkgs.coloryou