mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Keep icons color free if symbolic
This commit is contained in:
14
taskbar.js
14
taskbar.js
@@ -71,16 +71,20 @@ let donateDummyApp = {
|
||||
get_name: function() {
|
||||
return this.isActive() ? _('Thank you!') : _('Please donate :)')
|
||||
},
|
||||
create_icon_texture: function(size) {
|
||||
return new St.Icon({
|
||||
create_icon_texture: function(size) {
|
||||
let iconParams = {
|
||||
icon_name: this.isActive() ? 'face-smile-big-symbolic' : 'emote-love-symbolic',
|
||||
style: `color: ${this.isActive() ? '#FFC730' : '#C71807'}`,
|
||||
icon_size: size
|
||||
})
|
||||
}
|
||||
|
||||
if (SETTINGS.get_string('appicon-style') !== 'SYMBOLIC')
|
||||
iconParams.style = `color: ${this.isActive() ? '#FFC730' : '#C71807'}`
|
||||
|
||||
return new St.Icon(iconParams)
|
||||
},
|
||||
activate: function() {
|
||||
SETTINGS.set_string('target-prefs-page', 'donation')
|
||||
|
||||
|
||||
if (this.isActive())
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user