mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +09:00
Add context menu to donation icon
This commit is contained in:
2
Makefile
2
Makefile
@@ -5,7 +5,7 @@ MODULES = ./*.js stylesheet.css metadata.json COPYING README.md
|
|||||||
UI_MODULES = ui/*.ui
|
UI_MODULES = ui/*.ui
|
||||||
IMAGES = ./* ../media/design/svg/dash-to-panel-logo-light.svg
|
IMAGES = ./* ../media/design/svg/dash-to-panel-logo-light.svg
|
||||||
|
|
||||||
TOLOCALIZE = prefs.js appIcons.js
|
TOLOCALIZE = prefs.js appIcons.js taskbar.js
|
||||||
MSGSRC = $(wildcard po/*.po)
|
MSGSRC = $(wildcard po/*.po)
|
||||||
ifeq ($(strip $(DESTDIR)),)
|
ifeq ($(strip $(DESTDIR)),)
|
||||||
INSTALLBASE = $(HOME)/.local/share/gnome-shell/extensions
|
INSTALLBASE = $(HOME)/.local/share/gnome-shell/extensions
|
||||||
|
|||||||
16
po/fr.po
16
po/fr.po
@@ -7,9 +7,9 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: DAsh To PAnel\n"
|
"Project-Id-Version: Dash To Panel\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2025-01-30 10:54-0500\n"
|
"POT-Creation-Date: 2025-01-30 14:13-0500\n"
|
||||||
"PO-Revision-Date: 2025-01-30 11:29-0500\n"
|
"PO-Revision-Date: 2025-01-30 11:29-0500\n"
|
||||||
"Last-Translator: Charles Gagnon <charlesg99@outlook.com>\n"
|
"Last-Translator: Charles Gagnon <charlesg99@outlook.com>\n"
|
||||||
"Language-Team: French\n"
|
"Language-Team: French\n"
|
||||||
@@ -343,6 +343,18 @@ msgstr "Restaurer les fenêtres"
|
|||||||
msgid "Show Desktop"
|
msgid "Show Desktop"
|
||||||
msgstr "Afficher le bureau"
|
msgstr "Afficher le bureau"
|
||||||
|
|
||||||
|
#: taskbar.js:64
|
||||||
|
msgid "Donation options"
|
||||||
|
msgstr "Options de don"
|
||||||
|
|
||||||
|
#: taskbar.js:79
|
||||||
|
msgid "Thank you!"
|
||||||
|
msgstr "Merci!"
|
||||||
|
|
||||||
|
#: taskbar.js:79
|
||||||
|
msgid "Please donate :)"
|
||||||
|
msgstr "Merci de faire un don :)"
|
||||||
|
|
||||||
#: ui/BoxAdvancedOptions.ui.h:1
|
#: ui/BoxAdvancedOptions.ui.h:1
|
||||||
msgid "Nothing yet!"
|
msgid "Nothing yet!"
|
||||||
msgstr "Rien pour l'instant !"
|
msgstr "Rien pour l'instant !"
|
||||||
|
|||||||
14
taskbar.js
14
taskbar.js
@@ -56,16 +56,24 @@ const T3 = 'resetHoverTimeout'
|
|||||||
const T4 = 'donateAppTimeout'
|
const T4 = 'donateAppTimeout'
|
||||||
|
|
||||||
let donateDummyApp = {
|
let donateDummyApp = {
|
||||||
|
app_info: {
|
||||||
|
should_show: () => false,
|
||||||
|
list_actions: () => ['opts'],
|
||||||
|
get_action_name: (action) => action == 'opts' ? _('Donation options') : '',
|
||||||
|
},
|
||||||
connect: () => [],
|
connect: () => [],
|
||||||
connectObject: () => [],
|
connectObject: () => [],
|
||||||
get_id: () => "dtp_donate",
|
get_id: () => 'dtp_donate',
|
||||||
get_windows: () => [],
|
get_windows: () => [],
|
||||||
|
can_open_new_window: () => false,
|
||||||
|
launch_action: function(action) { action == 'opts' ? this.activate() : null },
|
||||||
get_name: function() {
|
get_name: function() {
|
||||||
return this.isActive() ? _('Thank you!') : _("Please donate :)")
|
return this.isActive() ? _('Thank you!') : _('Please donate :)')
|
||||||
},
|
},
|
||||||
create_icon_texture: function(size) {
|
create_icon_texture: function(size) {
|
||||||
return new St.Icon({
|
return new St.Icon({
|
||||||
icon_name: this.isActive() ? 'face-smile' : 'emote-love',
|
icon_name: this.isActive() ? 'face-smile-big-symbolic' : 'emote-love-symbolic',
|
||||||
|
style: `color: ${this.isActive() ? '#FFC730' : '#C71807'}`,
|
||||||
icon_size: size
|
icon_size: size
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user