Settings window

This commit is contained in:
2023-05-17 06:26:34 +02:00
parent 29848001be
commit 16ffed51f5
2 changed files with 144 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ const APPNAME = "Cinnamon Dynamic Wallpaper"
const MessageTray = imports.ui.messageTray;
const St = imports.gi.St;
const Main = imports.ui.main;
const Util = imports.misc.util;
const Settings = imports.ui.settings;
/********** Global Variables **********/
@@ -38,7 +40,7 @@ CinnamonDynamicWallpaperExtension.prototype = {
* @param {string} uuid Universally Unique Identifier
*/
_init: function(uuid) {
// todo
this.settings = new Settings.AppletSettings(this, uuid);
// Display the welcome notification on activation
this.showNotification(
@@ -85,6 +87,24 @@ CinnamonDynamicWallpaperExtension.prototype = {
// Display it
source.notify(notification);
},
/**
* Callback for settings-schema
* Opens the external heic-importer window
*/
configCustomImageSet: function() {
// todo
},
/**
* Callback for settings-schema
* Opens the browser and navigate to the URL of the respository
*/
openRepoWebsite: function() {
Util.spawnCommandLine("xdg-open https://github.com/TobiZog/cinnamon-dynamic-wallpaper");
}
}