e_gen_menu: Some icon search updates
- Add 'legacy' to IconCats Finds quite many extra on my box - Add 'mate' to Themes - Look for .xpm too in /usr/share/pixmaps Finds just one more - Look for 128 size icons too Finds just one more - Look for .svg too Finds quite many extra
This commit is contained in:
parent
64e5fd5305
commit
254bbc4394
|
@ -268,7 +268,7 @@ def FindIcon(icon):
|
||||||
if os.path.isfile(file):
|
if os.path.isfile(file):
|
||||||
return file
|
return file
|
||||||
if not FileExt(icon) in ['png', 'xpm', 'svg']:
|
if not FileExt(icon) in ['png', 'xpm', 'svg']:
|
||||||
for ext in ['png']:
|
for ext in ['png', 'xpm']:
|
||||||
fil2 = f'{file}.{ext}'
|
fil2 = f'{file}.{ext}'
|
||||||
D2(f'Check icon: {icon} : {fil2}')
|
D2(f'Check icon: {icon} : {fil2}')
|
||||||
if os.path.isfile(fil2):
|
if os.path.isfile(fil2):
|
||||||
|
@ -297,7 +297,7 @@ def FindIcon(icon):
|
||||||
if os.path.isfile(file):
|
if os.path.isfile(file):
|
||||||
return file
|
return file
|
||||||
else:
|
else:
|
||||||
for ext in ['png', 'xpm']:
|
for ext in ['png', 'xpm', 'svg']:
|
||||||
fil2 = f'{file}.{ext}'
|
fil2 = f'{file}.{ext}'
|
||||||
D2(f'Check icon: {icon}: {fil2}')
|
D2(f'Check icon: {icon}: {fil2}')
|
||||||
if os.path.isfile(fil2):
|
if os.path.isfile(fil2):
|
||||||
|
@ -377,10 +377,14 @@ D(f'AppDirs = "{AppDirs}"')
|
||||||
|
|
||||||
IconDirs = MkDirList(Prefixes, ['/share/pixmaps', '/share/icons'])
|
IconDirs = MkDirList(Prefixes, ['/share/pixmaps', '/share/icons'])
|
||||||
IconDirs2 = MkDirList(Prefixes, ['/share/icons'])
|
IconDirs2 = MkDirList(Prefixes, ['/share/icons'])
|
||||||
Themes = ['default.kde', 'gnome', 'hicolor', 'Adwaita']
|
Themes = ['default.kde', 'gnome', 'hicolor', 'mate', 'Adwaita']
|
||||||
|
#Themes += ['HighContrast']
|
||||||
IconDirs2 = MkDirList(IconDirs2, Themes, sep='/')
|
IconDirs2 = MkDirList(IconDirs2, Themes, sep='/')
|
||||||
IconCats = ['apps', 'filesystems', 'actions', 'devices', 'categories', 'places', 'mimetypes']
|
IconCats = ['apps', 'filesystems', 'actions', 'devices', 'categories', 'places', 'mimetypes']
|
||||||
IconSizes = ['48x48', '32x32', '24x24', '16x16']
|
IconCats += ['legacy']
|
||||||
|
#IconCats += ['stock']
|
||||||
|
IconSizes = ['48x48', '32x32', '24x24', '128x128', '16x16']
|
||||||
|
IconSizes += ['scalable']
|
||||||
|
|
||||||
D(f'IconDirs = "{IconDirs}"')
|
D(f'IconDirs = "{IconDirs}"')
|
||||||
D(f'IconDirs2 = "{IconDirs2}"')
|
D(f'IconDirs2 = "{IconDirs2}"')
|
||||||
|
|
Loading…
Reference in New Issue