dist: rename light icons and install them in correct place

This commit is contained in:
Peter F. Patel-Schneider 2024-02-14 15:14:16 -05:00
parent e6191296e0
commit 8facd0cf68
9 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ def _battery_icon_name(level, charging):
def lux(level=None):
if level is None or level < 0:
return 'light_unknown'
return 'light_%03d' % (20 * ((level + 50) // 100))
return 'solaar-light_%03d' % (20 * ((level + 50) // 100))
#

View File

@ -32,7 +32,7 @@ def _data_files():
from os.path import dirname as _dirname
yield 'share/icons/hicolor/scalable/apps', _glob('share/solaar/icons/solaar*.svg')
yield 'share/icons/hicolor/scalable/apps', _glob('share/solaar/icons/light_*.png')
yield 'share/icons/hicolor/32x32/apps', _glob('share/solaar/icons/light_*.png')
for mo in _glob('share/locale/*/LC_MESSAGES/solaar.mo'):
yield _dirname(mo), [mo]

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1007 B

After

Width:  |  Height:  |  Size: 1007 B