Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions scripts/ziro-theme.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ describe("ziro current-client compatibility", () => {
assert.doesNotMatch(css, /\.main-nowPlayingView-contextItemInfo::before/);
});

it("uses the current playback bar flow for both timestamps", () => {
assert.match(
css,
/\.playback-bar__progress-time-elapsed,\s*\.main-playbackBarRemainingTime-container\s*\{[^}]*position:\s*static\s*;[^}]*margin:\s*0\s*;[^}]*width:\s*auto\s*;/s,
);
it("keeps both timestamp containers positioned so their absolute children cannot cover the viewport", () => {
const rule = css.match(
/\.playback-bar__progress-time-elapsed,\s*\.main-playbackBarRemainingTime-container\s*\{([^}]*)\}/s,
)?.[1];
assert.ok(rule, "both timestamps must share a containing-block rule");
assert.match(rule, /position:\s*relative\s*;/);
assert.match(rule, /margin:\s*0\s*;/);
assert.doesNotMatch(rule, /\bwidth\s*:/, "preserve Spotify's width for the absolute time spans");
assert.match(css, /\.playback-bar__progress-time-elapsed::after\s*\{[^}]*content:\s*none\s*;/s);
assert.doesNotMatch(
css,
Expand All @@ -24,6 +27,6 @@ describe("ziro current-client compatibility", () => {
});

it("ships as a patch release", () => {
assert.equal(metadata.version, "0.1.3");
assert.equal(metadata.version, "0.1.4");
});
});
3 changes: 1 addition & 2 deletions themes/ziro/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@
.playback-bar__progress-time-elapsed,
.main-playbackBarRemainingTime-container {
color: var(--spice-text);
position: static;
position: relative;
margin: 0;
width: auto;
}
.playback-bar__progress-time-elapsed::after {
content: none;
Expand Down
2 changes: 1 addition & 1 deletion themes/ziro/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ziro",
"kind": "theme",
"version": "0.1.3",
"version": "0.1.4",
"authors": ["schnensch0"],
"description": "Soft rounded design inspired by the Zorin GTK themes",
"entries": {
Expand Down
Loading