Separate the redshift.svg icon into an application icon and a status icon
(redshift-status-on.svg). Rename redshift-idle.svg to redshift-status-off.svg.
@@ -5,15 +5,18 @@ ACLOCAL_AMFLAGS = -I m4
|
||||
# Icons
|
||||
hicolor_icondir = @datadir@/icons/hicolor/scalable/apps
|
||||
hicolor_icon_DATA = data/icons/hicolor/scalable/apps/redshift.svg \
|
||||
data/icons/hicolor/scalable/apps/redshift-idle.svg
|
||||
data/icons/hicolor/scalable/apps/redshift-status-on.svg \
|
||||
data/icons/hicolor/scalable/apps/redshift-status-off.svg
|
||||
|
||||
ubuntu_mono_dark_icondir = @datadir@/icons/ubuntu-mono-dark/scalable/apps
|
||||
ubuntu_mono_dark_icon_DATA = data/icons/ubuntu-mono-dark/scalable/apps/redshift.svg \
|
||||
data/icons/ubuntu-mono-dark/scalable/apps/redshift-idle.svg
|
||||
ubuntu_mono_dark_icon_DATA = \
|
||||
data/icons/ubuntu-mono-dark/scalable/apps/redshift-status-on.svg \
|
||||
data/icons/ubuntu-mono-dark/scalable/apps/redshift-status-off.svg
|
||||
|
||||
ubuntu_mono_light_icondir = @datadir@/icons/ubuntu-mono-light/scalable/apps
|
||||
ubuntu_mono_light_icon_DATA = data/icons/ubuntu-mono-light/scalable/apps/redshift.svg \
|
||||
data/icons/ubuntu-mono-light/scalable/apps/redshift-idle.svg
|
||||
ubuntu_mono_light_icon_DATA = \
|
||||
data/icons/ubuntu-mono-light/scalable/apps/redshift-status-on.svg \
|
||||
data/icons/ubuntu-mono-light/scalable/apps/redshift-status-off.svg
|
||||
|
||||
|
||||
# Desktop file
|
||||
|
||||
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
@@ -60,21 +60,21 @@ def run():
|
||||
else:
|
||||
# Create status icon
|
||||
status_icon = gtk.StatusIcon()
|
||||
status_icon.set_from_icon_name('redshift')
|
||||
status_icon.set_from_icon_name('redshift-status-on')
|
||||
status_icon.set_tooltip('Redshift')
|
||||
|
||||
def toggle_cb(widget, data=None):
|
||||
process.send_signal(signal.SIGUSR1)
|
||||
if appindicator:
|
||||
if indicator.get_icon() == 'redshift':
|
||||
indicator.set_icon('redshift-idle')
|
||||
indicator.set_icon('redshift-status-off')
|
||||
else:
|
||||
indicator.set_icon('redshift')
|
||||
indicator.set_icon('redshift-status-on')
|
||||
else:
|
||||
if status_icon.get_icon_name() == 'redshift':
|
||||
status_icon.set_from_icon_name('redshift-idle')
|
||||
status_icon.set_from_icon_name('redshift-status-off')
|
||||
else:
|
||||
status_icon.set_from_icon_name('redshift')
|
||||
status_icon.set_from_icon_name('redshift-status-on')
|
||||
|
||||
def autostart_cb(widget, data=None):
|
||||
utils.set_autostart(widget.get_active())
|
||||
|
||||