From 38efa7ab9fb1cc4129589f19afbcb549996119c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Mon, 17 Jan 2022 20:27:13 +0100 Subject: [PATCH] Use unicode U+2236 for time --- src/buttons.js | 2 +- src/controls.js | 4 +--- src/misc.js | 4 ++-- src/revealers.js | 4 ++-- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/buttons.js b/src/buttons.js index 0312df85..68ada4f4 100644 --- a/src/buttons.js +++ b/src/buttons.js @@ -165,7 +165,7 @@ class ClapperElapsedTimeButton extends PopoverButtonBase setInitialState() { - this.label = '00:00/00:00'; + this.label = '00∶00/00∶00'; } setFullscreenMode(isFullscreen, isMobileMonitor) diff --git a/src/controls.js b/src/controls.js index 9d2e930b..cc19a3c8 100644 --- a/src/controls.js +++ b/src/controls.js @@ -7,8 +7,6 @@ const Revealers = imports.src.revealers; const { debug } = Debug; const { settings } = Misc; -const INITIAL_ELAPSED = '00:00/00:00'; - var Controls = GObject.registerClass({ GTypeName: 'ClapperControls', }, @@ -29,7 +27,7 @@ class ClapperControls extends Gtk.Box this.isMobile = false; this.showHours = false; - this.durationFormatted = '00:00'; + this.durationFormatted = '00∶00'; this.revealersArr = []; this.chapters = null; diff --git a/src/misc.js b/src/misc.js index 6b039de4..b10ccb27 100644 --- a/src/misc.js +++ b/src/misc.js @@ -161,8 +161,8 @@ function getFormattedTime(time, showHours) time -= minutes * 60; const seconds = ('0' + Math.floor(time)).slice(-2); - const parsed = (hours) ? `${hours}:` : ''; - return parsed + `${minutes}:${seconds}`; + const parsed = (hours) ? `${hours}∶` : ''; + return parsed + `${minutes}∶${seconds}`; } function parsePlaylistFiles(filesArray) diff --git a/src/revealers.js b/src/revealers.js index f601d155..1ddc08a6 100644 --- a/src/revealers.js +++ b/src/revealers.js @@ -59,8 +59,8 @@ class ClapperRevealerTop extends CustomRevealer const initTime = GLib.DateTime.new_now_local().format('%X'); this.timeFormat = (initTime.length > 8) - ? '%I:%M %p' - : '%H:%M'; + ? '%I∶%M %p' + : '%H∶%M'; this.mediaTitle = new Gtk.Label({ ellipsize: Pango.EllipsizeMode.END,