Merge pull request #29 from Rafostar/remote-controller

Control player remotely
This commit is contained in:
Rafostar
2020-12-16 10:55:32 +01:00
committed by GitHub
25 changed files with 838 additions and 256 deletions

View File

@@ -1,4 +1,4 @@
const { Gio, GstAudio, GstPlayer, Gtk } = imports.gi;
const { Gio, GstAudio, GstPlayer, Gdk, Gtk } = imports.gi;
const Debug = imports.clapper_src.debug;
var appName = 'Clapper';
@@ -35,6 +35,19 @@ function getClapperVersion()
: '';
}
function loadCustomCss()
{
const clapperPath = getClapperPath();
const cssProvider = new Gtk.CssProvider();
cssProvider.load_from_path(`${clapperPath}/css/styles.css`);
Gtk.StyleContext.add_provider_for_display(
Gdk.Display.get_default(),
cssProvider,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
);
}
function inhibitForState(state, window)
{
let isInhibited = false;