More informations in the settings
This commit is contained in:
@@ -237,11 +237,29 @@ CinnamonDynamicWallpaperExtension.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Main loop
|
||||||
|
*/
|
||||||
|
_loop: function () {
|
||||||
|
if (looping) {
|
||||||
|
this.setImageToTime()
|
||||||
|
|
||||||
|
if (lastLocationUpdate < new Date().getTime() - this.locationRefreshTime * 1000) {
|
||||||
|
this.updateLocation()
|
||||||
|
lastLocationUpdate = new Date()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Refresh every 60 seconds
|
||||||
|
Mainloop.timeout_add_seconds(60, Lang.bind(this, this._loop));
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
/******************** UI Callbacks ********************/
|
/******************** UI Callbacks ********************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback for settings-schema
|
* Callback for settings-schema
|
||||||
* Opens the external heic-importer window
|
* Opens the external image configurator window
|
||||||
*/
|
*/
|
||||||
openImageConfigurator: function() {
|
openImageConfigurator: function() {
|
||||||
Util.spawnCommandLine("/usr/bin/env python3 " +
|
Util.spawnCommandLine("/usr/bin/env python3 " +
|
||||||
@@ -251,7 +269,7 @@ CinnamonDynamicWallpaperExtension.prototype = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback for settings-schema
|
* Callback for settings-schema
|
||||||
* Opens the browser and navigate to the URL of the respository
|
* Opens the browser and navigates to the URL of the respository
|
||||||
*/
|
*/
|
||||||
openRepoWebsite: function() {
|
openRepoWebsite: function() {
|
||||||
Util.spawnCommandLine("xdg-open https://github.com/TobiZog/cinnamon-dynamic-wallpaper");
|
Util.spawnCommandLine("xdg-open https://github.com/TobiZog/cinnamon-dynamic-wallpaper");
|
||||||
@@ -259,20 +277,20 @@ CinnamonDynamicWallpaperExtension.prototype = {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main loop
|
* Callback for settings-schema
|
||||||
|
* Opens the browser and navigates to the URL of the Cinnamon Spices extension
|
||||||
*/
|
*/
|
||||||
_loop: function() {
|
openSpicesWebsite: function() {
|
||||||
if(looping) {
|
Util.spawnCommandLine("xdg-open https://cinnamon-spices.linuxmint.com/extensions/view/97")
|
||||||
this.setImageToTime()
|
},
|
||||||
|
|
||||||
if (lastLocationUpdate < new Date().getTime() - this.locationRefreshTime * 1000) {
|
|
||||||
this.updateLocation()
|
/**
|
||||||
lastLocationUpdate = new Date()
|
* Callback for settings-schema
|
||||||
}
|
* Opens the browser and navigates to the GitHub issue page
|
||||||
|
*/
|
||||||
// Refresh every 60 seconds
|
openIssueWebsite: function() {
|
||||||
Mainloop.timeout_add_seconds(60, Lang.bind(this, this._loop));
|
Util.spawnCommandLine("xdg-open https://github.com/TobiZog/cinnamon-dynamic-wallpaper/issues/new")
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,9 +19,12 @@
|
|||||||
"title": "About",
|
"title": "About",
|
||||||
"sections": [
|
"sections": [
|
||||||
"sec_project",
|
"sec_project",
|
||||||
"sec_github"
|
"sec_github",
|
||||||
|
"sec_report_issue"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
"sec_image_configuration": {
|
"sec_image_configuration": {
|
||||||
"type": "section",
|
"type": "section",
|
||||||
"title": "Image set",
|
"title": "Image set",
|
||||||
@@ -52,7 +55,9 @@
|
|||||||
"title": "About the project",
|
"title": "About the project",
|
||||||
"keys": [
|
"keys": [
|
||||||
"lb_about",
|
"lb_about",
|
||||||
"lb_author"
|
"lb_author",
|
||||||
|
"lb_spices",
|
||||||
|
"btn_spices"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"sec_github": {
|
"sec_github": {
|
||||||
@@ -62,8 +67,18 @@
|
|||||||
"lb_repository",
|
"lb_repository",
|
||||||
"btn_open_repository"
|
"btn_open_repository"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"sec_report_issue": {
|
||||||
|
"type": "section",
|
||||||
|
"title": "Report an issue",
|
||||||
|
"keys": [
|
||||||
|
"lb_report_issue",
|
||||||
|
"btn_report_issue"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
"lb_image_configuration": {
|
"lb_image_configuration": {
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"description": "Choose an included image set or import a heic-file with the Image Configurator"
|
"description": "Choose an included image set or import a heic-file with the Image Configurator"
|
||||||
@@ -104,6 +119,8 @@
|
|||||||
"description": "Time sections today",
|
"description": "Time sections today",
|
||||||
"default": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
"lb_about": {
|
"lb_about": {
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"description": "Based on a location, this extension calculates the periods of a day and switch the background image of your Cinnamon desktop. The extension offers the choice between a set of predownloaded wallpapers or to select a custom set of images."
|
"description": "Based on a location, this extension calculates the periods of a day and switch the background image of your Cinnamon desktop. The extension offers the choice between a set of predownloaded wallpapers or to select a custom set of images."
|
||||||
@@ -112,6 +129,16 @@
|
|||||||
"type": "label",
|
"type": "label",
|
||||||
"description": "Developed by TobiZog"
|
"description": "Developed by TobiZog"
|
||||||
},
|
},
|
||||||
|
"lb_spices": {
|
||||||
|
"type": "label",
|
||||||
|
"description": "If you want more information or rate the extension, you can visit the site Cinnamon Spices Website."
|
||||||
|
},
|
||||||
|
"btn_spices": {
|
||||||
|
"type": "button",
|
||||||
|
"description": "Cinnamon Dynamic Wallpaper at Cinnamon Spices Website",
|
||||||
|
"callback": "openSpicesWebsite"
|
||||||
|
},
|
||||||
|
|
||||||
"lb_repository": {
|
"lb_repository": {
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"description": "This project is Open Source. You can visit the whole source code of this extension on GitHub"
|
"description": "This project is Open Source. You can visit the whole source code of this extension on GitHub"
|
||||||
@@ -121,6 +148,19 @@
|
|||||||
"description": "Open the Repository",
|
"description": "Open the Repository",
|
||||||
"callback": "openRepoWebsite"
|
"callback": "openRepoWebsite"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"lb_report_issue": {
|
||||||
|
"type": "label",
|
||||||
|
"description": "Do you find an issue? Or want a new feature? Go to the GitHub repository and create a new issue."
|
||||||
|
},
|
||||||
|
|
||||||
|
"btn_report_issue": {
|
||||||
|
"type": "button",
|
||||||
|
"description": "Submit an Issue",
|
||||||
|
"callback": "openIssueWebsite"
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
"etr_choosen_image_set": {
|
"etr_choosen_image_set": {
|
||||||
"type": "entry",
|
"type": "entry",
|
||||||
"default": "lakeside",
|
"default": "lakeside",
|
||||||
|
|||||||
Reference in New Issue
Block a user