mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +02:00
Use unicode U+2236 for time
This commit is contained in:
@@ -165,7 +165,7 @@ class ClapperElapsedTimeButton extends PopoverButtonBase
|
|||||||
|
|
||||||
setInitialState()
|
setInitialState()
|
||||||
{
|
{
|
||||||
this.label = '00:00/00:00';
|
this.label = '00∶00/00∶00';
|
||||||
}
|
}
|
||||||
|
|
||||||
setFullscreenMode(isFullscreen, isMobileMonitor)
|
setFullscreenMode(isFullscreen, isMobileMonitor)
|
||||||
|
4
src/controls.js
vendored
4
src/controls.js
vendored
@@ -7,8 +7,6 @@ const Revealers = imports.src.revealers;
|
|||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
const { settings } = Misc;
|
const { settings } = Misc;
|
||||||
|
|
||||||
const INITIAL_ELAPSED = '00:00/00:00';
|
|
||||||
|
|
||||||
var Controls = GObject.registerClass({
|
var Controls = GObject.registerClass({
|
||||||
GTypeName: 'ClapperControls',
|
GTypeName: 'ClapperControls',
|
||||||
},
|
},
|
||||||
@@ -29,7 +27,7 @@ class ClapperControls extends Gtk.Box
|
|||||||
this.isMobile = false;
|
this.isMobile = false;
|
||||||
|
|
||||||
this.showHours = false;
|
this.showHours = false;
|
||||||
this.durationFormatted = '00:00';
|
this.durationFormatted = '00∶00';
|
||||||
this.revealersArr = [];
|
this.revealersArr = [];
|
||||||
this.chapters = null;
|
this.chapters = null;
|
||||||
|
|
||||||
|
@@ -161,8 +161,8 @@ function getFormattedTime(time, showHours)
|
|||||||
time -= minutes * 60;
|
time -= minutes * 60;
|
||||||
const seconds = ('0' + Math.floor(time)).slice(-2);
|
const seconds = ('0' + Math.floor(time)).slice(-2);
|
||||||
|
|
||||||
const parsed = (hours) ? `${hours}:` : '';
|
const parsed = (hours) ? `${hours}∶` : '';
|
||||||
return parsed + `${minutes}:${seconds}`;
|
return parsed + `${minutes}∶${seconds}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function parsePlaylistFiles(filesArray)
|
function parsePlaylistFiles(filesArray)
|
||||||
|
@@ -59,8 +59,8 @@ class ClapperRevealerTop extends CustomRevealer
|
|||||||
|
|
||||||
const initTime = GLib.DateTime.new_now_local().format('%X');
|
const initTime = GLib.DateTime.new_now_local().format('%X');
|
||||||
this.timeFormat = (initTime.length > 8)
|
this.timeFormat = (initTime.length > 8)
|
||||||
? '%I:%M %p'
|
? '%I∶%M %p'
|
||||||
: '%H:%M';
|
: '%H∶%M';
|
||||||
|
|
||||||
this.mediaTitle = new Gtk.Label({
|
this.mediaTitle = new Gtk.Label({
|
||||||
ellipsize: Pango.EllipsizeMode.END,
|
ellipsize: Pango.EllipsizeMode.END,
|
||||||
|
Reference in New Issue
Block a user