Use U+003A colon character on RTL languages

Unfortunately U+2236 seems to break time labels on RTL languages. Check text direction at startup and select best one that works.
This commit is contained in:
Rafał Dzięgiel
2022-06-01 16:27:22 +02:00
parent 387bc7a2f3
commit e37f2a0a30
5 changed files with 12 additions and 6 deletions

View File

@@ -10,6 +10,7 @@ Debug.debug('imports');
const { GstClapper, Gtk, Adw } = imports.gi;
const { App } = imports.src.app;
const Misc = imports.src.misc;
function main(argv)
{
@@ -19,6 +20,10 @@ function main(argv)
Gtk.init();
Adw.init();
/* U+2236 seems to break RTL languages, use U+003A instead */
if(Gtk.Widget.get_default_direction() === Gtk.TextDirection.RTL)
Misc.timeColon = ':';
Debug.debug('initialized');
new App().run(argv);