diff --git a/metadata.json b/metadata.json
@@ -3,7 +3,7 @@
"name": "Doomsday",
"description": "Display D-Day countdowns in the top panel bar. Track important events with customizable countdown timers.",
"shell-version": ["45", "46", "47"],
- "url": "https://github.com/devastator-x",
+ "url": "https://github.com/devastator-x/doomsday",
"settings-schema": "org.gnome.shell.extensions.doomsday",
"version": 1,
"donations": {
diff --git a/prefs.js b/prefs.js
@@ -392,6 +392,21 @@ export default class DoomsdayPreferences extends ExtensionPreferences {
});
linksGroup.add(issueRow);
+ // Donate button
+ const donateRow = new Adw.ActionRow({
+ title: 'Donate',
+ subtitle: 'Support this project via GitHub Sponsors',
+ activatable: true,
+ });
+ const donateIcon = new Gtk.Image({
+ icon_name: 'emblem-favorite-symbolic',
+ });
+ donateRow.add_prefix(donateIcon);
+ donateRow.connect('activated', () => {
+ Gtk.show_uri(window, 'https://github.com/sponsors/devastator-x', 0);
+ });
+ linksGroup.add(donateRow);
+
// Legal group
const legalGroup = new Adw.PreferencesGroup({
title: 'Legal',
|