const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const Main = imports.ui.main;

function main() {
    let _userCssStylesheet = GLib.get_user_data_dir() + '/gnome-shell/theme/gnome-shell.css';
    file = Gio.file_new_for_path(_userCssStylesheet);
    if (file.query_exists(null)) {
        global.log('loading user theme: ' + _userCssStylesheet)
        Main.setThemeStylesheet(_userCssStylesheet);
        Main.loadTheme();
    }
}
