Use separate CSS class for TV mode

This commit is contained in:
Rafał Dzięgiel
2021-02-12 11:49:34 +01:00
parent a597de5481
commit 46e8bef7b8
3 changed files with 43 additions and 41 deletions

View File

@@ -125,11 +125,11 @@ class ClapperRevealerTop extends CustomRevealer
yalign: 0,
};
this.currentTime = new Gtk.Label(timeLabelOpts);
this.currentTime.add_css_class('osdtime');
this.currentTime.add_css_class('tvtime');
timeLabelOpts.visible = false;
this.endTime = new Gtk.Label(timeLabelOpts);
this.endTime.add_css_class('osdendtime');
this.endTime.add_css_class('tvendtime');
this.revealerGrid.attach(this.mediaTitle, 0, 0, 1, 1);
this.revealerGrid.attach(this.currentTime, 1, 0, 1, 1);

View File

@@ -112,6 +112,7 @@ class ClapperWidget extends Gtk.Grid
const root = this.get_root();
const action = (isFullscreen) ? 'add' : 'remove';
root[action + '_css_class']('gpufriendlyfs');
root[action + '_css_class']('tvmode');
if(!this.floatingMode)
this._changeControlsPlacement(isFullscreen);