move ajax-ui to oxygen icon set
|
@ -22,18 +22,24 @@
|
||||||
|
|
||||||
"""
|
"""
|
||||||
copy icons from kde icon set.
|
copy icons from kde icon set.
|
||||||
Edit ICON_SET and TARGET before running this file.
|
Edit ICON_SET and TARGET_DIR before running this file.
|
||||||
#perl -pi -w -e 's/tango/16/g;' *.html
|
#perl -pi -w -e 's/tango/16/g;' *.html
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from os import path
|
from os import path
|
||||||
from shutil import copyfile
|
from shutil import copyfile
|
||||||
|
|
||||||
ICON_SET = "/home/martijn/prj/oxygen/oxygen/16x16"
|
ICON_SET = "/home/martijn/prj/oxygen/oxygen"
|
||||||
TARGET_DIR = "/home/martijn/src/deluge/deluge/ui/webui/static/images/16"
|
TARGET_DIR = "/home/martijn/src/deluge/deluge/ui/webui"
|
||||||
|
|
||||||
|
def copy_icons(source_dir , target_dir , mapping):
|
||||||
|
for target, source in mapping.iteritems():
|
||||||
|
source = path.join(source_dir, source) + ".png"
|
||||||
|
target = path.join(target_dir, target) + ".png"
|
||||||
|
print "%s -> %s" % (source, target)
|
||||||
|
copyfile(source, target)
|
||||||
|
|
||||||
mapping = {
|
map_static16 = {
|
||||||
"down":"actions/1downarrow",
|
"down":"actions/1downarrow",
|
||||||
"up":"actions/1downarrow",
|
"up":"actions/1downarrow",
|
||||||
"connections":"apps/preferences_system_network_sharing",
|
"connections":"apps/preferences_system_network_sharing",
|
||||||
|
@ -61,9 +67,30 @@ mapping = {
|
||||||
"select-all":"actions/edit_select_all"
|
"select-all":"actions/edit_select_all"
|
||||||
}
|
}
|
||||||
|
|
||||||
for target, source in mapping.iteritems():
|
map_ajax16 = {
|
||||||
source = path.join(ICON_SET, source) + ".png"
|
"gtk-edit":"actions/object_edit",
|
||||||
target = path.join(TARGET_DIR, target) + ".png"
|
"gtk-yes":"actions/flag_green",
|
||||||
print "%s->%s" % (source, target)
|
"network-idle":"apps/preferences_system_network_sharing",
|
||||||
copyfile(source, target)
|
"view-refresh":"actions/view_refresh",
|
||||||
|
"view-sort-ascending":"actions/view_sort_ascending",
|
||||||
|
"view-sort-descending":"actions/view_sort_descending"
|
||||||
|
}
|
||||||
|
|
||||||
|
map_ajax32 = {
|
||||||
|
"add":"actions/add",
|
||||||
|
"connections":"apps/preferences_system_network_sharing",
|
||||||
|
"down":"actions/1downarrow",
|
||||||
|
"up":"actions/1uparrow",
|
||||||
|
"new":"actions/document_new",
|
||||||
|
"options":"apps/preferences_system",
|
||||||
|
"pause":"actions/media_playback_pause",
|
||||||
|
"remove":"actions/fileclose",
|
||||||
|
"resume":"actions/media_playback_start"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
copy_icons( path.join(ICON_SET, "16x16"), path.join(TARGET_DIR, "static/images/16"), map_static16)
|
||||||
|
copy_icons( path.join(ICON_SET, "16x16"), path.join(TARGET_DIR, "templates/ajax/static/icons/16"), map_ajax16)
|
||||||
|
copy_icons( path.join(ICON_SET, "32x32"), path.join(TARGET_DIR, "templates/ajax/static/icons/32"), map_ajax32)
|
||||||
|
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 744 B After Width: | Height: | Size: 692 B |
Before Width: | Height: | Size: 861 B After Width: | Height: | Size: 562 B |
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 868 B |
Before Width: | Height: | Size: 912 B After Width: | Height: | Size: 931 B |
Before Width: | Height: | Size: 513 B After Width: | Height: | Size: 632 B |
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 642 B |
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1006 B |
Before Width: | Height: | Size: 1008 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 846 B After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 481 B After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 317 B After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 960 B |