From 9be6f86557f5f5330c60dc99c40a12f1fc5dc3f3 Mon Sep 17 00:00:00 2001 From: Ansho Rei Date: Wed, 4 Nov 2026 14:40:50 +0100 Subject: [PATCH] feat: show play and pause icons instead of words on now playing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A PlayState component draws the triangle and the two bars as vectors in the highlight colour. The mini player uses it too, in place of the ▶ and ❚❚ glyphs, which a font fallback could draw as emoji or at different weights. --- CHANGELOG.md | 6 ++ Cargo.lock | 2 +- Cargo.toml | 2 +- .../me.anshorei.Fettleshed.Remus.metainfo.xml | 1 + ui/app.slint | 59 +++++++++++++++---- 5 files changed, 58 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4631ce..0318ab6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ One section per version, newest first. +## v0.6.5 (2026-11-04) + +### Features + +- The now-playing screen shows a play or pause icon under the progress bar instead of the words Playing and Paused. The mini player uses the same icons, which no longer depend on the font. + ## v0.6.4 (2026-11-04) ### Features diff --git a/Cargo.lock b/Cargo.lock index fb90c7a..0f6a082 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4385,7 +4385,7 @@ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" [[package]] name = "remus" -version = "0.6.4" +version = "0.6.5" dependencies = [ "anyhow", "directories", diff --git a/Cargo.toml b/Cargo.toml index 870ad8a..aed1613 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "remus" -version = "0.6.4" +version = "0.6.5" edition = "2024" license = "MIT" diff --git a/flatpak/me.anshorei.Fettleshed.Remus.metainfo.xml b/flatpak/me.anshorei.Fettleshed.Remus.metainfo.xml index 3027522..ef63f80 100644 --- a/flatpak/me.anshorei.Fettleshed.Remus.metainfo.xml +++ b/flatpak/me.anshorei.Fettleshed.Remus.metainfo.xml @@ -20,6 +20,7 @@ + diff --git a/ui/app.slint b/ui/app.slint index 7b281ba..d991d7d 100644 --- a/ui/app.slint +++ b/ui/app.slint @@ -504,6 +504,39 @@ component SearchBox inherits Rectangle { } } +// Play triangle or pause bars, drawn as vectors so no font fallback can turn +// them into emoji or give the two different weights. +component PlayState { + in property paused; + in property tint: Theme.highlight; + in property size: 14px * Theme.s; + width: root.size; + height: root.size; + + if !root.paused: Path { + width: root.size; + height: root.size; + viewbox-width: 12; + viewbox-height: 12; + commands: "M 1.5 0.5 L 11.5 6 L 1.5 11.5 Z"; + fill: root.tint; + } + if root.paused: Rectangle { + x: root.size * 0.12; + width: root.size * 0.28; + height: root.size; + border-radius: root.size * 0.06; + background: root.tint; + } + if root.paused: Rectangle { + x: root.size * 0.60; + width: root.size * 0.28; + height: root.size; + border-radius: root.size * 0.06; + background: root.tint; + } +} + component NowBar inherits Rectangle { in property has-track; in property title; @@ -574,11 +607,12 @@ component NowBar inherits Rectangle { color: Theme.muted; vertical-alignment: center; } - if root.has-track: Text { - text: root.paused ? "❚❚" : "▶"; - font-size: 18px * Theme.s; - color: Theme.highlight; - vertical-alignment: center; + if root.has-track: VerticalLayout { + alignment: center; + PlayState { + paused: root.paused; + size: 15px * Theme.s; + } } } } @@ -877,12 +911,17 @@ component NowPlayingView inherits Rectangle { font-size: 14px * Theme.s; color: Theme.muted; } - Text { + // Sized below the time text, so the row keeps the text's height. + HorizontalLayout { horizontal-stretch: 1; - text: root.has-track ? (root.paused ? "Paused" : "Playing") : ""; - font-size: 14px * Theme.s; - color: Theme.highlight; - horizontal-alignment: center; + alignment: center; + if root.has-track: VerticalLayout { + alignment: center; + PlayState { + paused: root.paused; + size: 11px * Theme.s; + } + } } Text { text: root.duration;