Skip to content

Commit

Permalink
dist: rename light icons and install them in correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Feb 15, 2024
1 parent e619129 commit 8facd0c
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/solaar/ui/icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))


#
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 8facd0c

Please sign in to comment.