The mapping for oxygen-icons to OpenOffice.org theme (from 2009) is
attached.  It's a CSV with mappings and a script to read them and copy the
files.  You need to change the paths at the top of the script to point it
to where you have downloaded the themes.

I haven't looked at how things have changed for Breeze and LibreOffice, but
hopefully this is helpful for the work on that theme.  I know you've
already got many covered at
https://community.kde.org/KDE_Visual_Design_Group/LibreOffice_Breeze

CC'd Riddell in case the attachment doesn't go through to the list.  Let me
know if/where to check this in instead.

~ Yuriy
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: Yuriy Kozlov
# License: CC-0 3.0
from sys import argv
import os
import csv

# Mapping types:
# 1: Large (lc_*) 22x22 icon and small (sc_*) 16x16 icon in res/commandimagelist/ directory
# 2: Large (lx*) 32x32 icon and small (sx*) 16x16 icon in res/ directory
# 3: Large (lx*) 22x22 icon and small (sx*) 16x16 icon in res/ directory
# 4: Large (lc_*) 22x22 icon and small (sc_*) 16x16 icon in res/commandimagelist/ directory,
#    Icon comes from calligra rather than core oxygen theme.
# 5: Large (lc*) 22x22 icon and small (sc*) 16x16 icon in res/ directory
#    Many of these are numbered instead of named.
# 6: Large (lc_*) 22x22 icon and small (sc_*) 16x16 icon in res/commandimagelist/ directory,
#    Icon comes from scribus rather than core oxygen theme.
# 7: Specify full paths

oo_icons_path = "/home/yuriy/ookde/oxygen/"
oxygen_icons_path = "/home/yuriy/ookde/oxygen-icons/"
calligra_icons_path = "/usr/share/kde4/apps/calligra/icons/oxygen/"
scribus_icons_path = "/home/yuriy/ookde/scribus/"

def copy1(fromicon, toicon):
  if os.system("cp %s22x22/%s.png %sres/commandimagelist/lc_%s.png"
               % (oxygen_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s large" % (fromicon, toicon)
  else:
    print "copied %s to %s large" % (fromicon, toicon)
  if os.system("cp %s16x16/%s.png %sres/commandimagelist/sc_%s.png"
               % (oxygen_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s small" % (fromicon, toicon)
  else:
    print "copied %s to %s small" % (fromicon, toicon)

def copy2(fromicon, toicon):
  if os.system("cp %s32x32/%s.png %sres/lx%s.png"
               % (oxygen_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s large" % (fromicon, toicon)
  else:
    print "copied %s to %s large" % (fromicon, toicon)
  if os.system("cp %s16x16/%s.png %sres/sx%s.png"
               % (oxygen_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s small" % (fromicon, toicon)
  else:
    print "copied %s to %s small" % (fromicon, toicon)

def copy3(fromicon, toicon):
  if os.system("cp %s22x22/%s.png %sres/lx%s.png"
               % (oxygen_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s large" % (fromicon, toicon)
  else:
    print "copied %s to %s large" % (fromicon, toicon)
  if os.system("cp %s16x16/%s.png %sres/sx%s.png"
               % (oxygen_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s small" % (fromicon, toicon)
  else:
    print "copied %s to %s small" % (fromicon, toicon)

def copy4(fromicon, toicon):
  if os.system("cp %s22x22/%s.png %sres/commandimagelist/lc_%s.png"
               % (calligra_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s large" % (fromicon, toicon)
  else:
    print "copied %s to %s large" % (fromicon, toicon)
  if os.system("cp %s16x16/%s.png %sres/commandimagelist/sc_%s.png"
               % (calligra_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s small" % (fromicon, toicon)
  else:
    print "copied %s to %s small" % (fromicon, toicon)

def copy5(fromicon, toicon):
  if os.system("cp %s22x22/%s.png %sres/lc%s.png"
               % (oxygen_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s large" % (fromicon, toicon)
  else:
    print "copied %s to %s large" % (fromicon, toicon)
  if os.system("cp %s16x16/%s.png %sres/sc%s.png"
               % (oxygen_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s small" % (fromicon, toicon)
  else:
    print "copied %s to %s small" % (fromicon, toicon)

def copy6(fromicon, toicon):
  if os.system("cp %s22x22/%s.png %sres/commandimagelist/lc_%s.png"
               % (scribus_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s large" % (fromicon, toicon)
  else:
    print "copied %s to %s large" % (fromicon, toicon)
  if os.system("cp %s16x16/%s.png %sres/commandimagelist/sc_%s.png"
               % (scribus_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s small" % (fromicon, toicon)
  else:
    print "copied %s to %s small" % (fromicon, toicon)

def copy7(fromicon, toicon):
  if os.system("cp %s%s %s%s"
               % (oxygen_icons_path, fromicon, oo_icons_path, toicon)):
    print "error copying %s to %s" % (fromicon, toicon)
  else:
    print "copied %s to %s" % (fromicon, toicon)

with open('iconmoves.csv', 'rb') as csvfile:
  mappingreader = csv.reader(csvfile, delimiter=',', quotechar='"')
  for row in mappingreader:
    if not row[0]:
      pass
    if row[0] == '1':
      copy1(row[1], row[2])
    elif row[0] == '2':
      copy2(row[1], row[2])
    elif row[0] == '3':
      copy3(row[1], row[2])
    elif row[0] == '4':
      copy4(row[1], row[2])
    elif row[0] == '5':
      copy5(row[1], row[2])
    elif row[0] == '6':
      copy6(row[1], row[2])
    elif row[0] == '7':
      copy7(row[1], row[2])
# Author: Yuriy Kozlov
# License: CC-SA 3.0
# Mapping types:
# 1: Large (lc_*) 22x22 icon and small (sc_*) 16x16 icon in res/commandimagelist/ directory
# 2: Large (lx*) 32x32 icon and small (sx*) 16x16 icon in res/ directory
# 3: Large (lx*) 22x22 icon and small (sx*) 16x16 icon in res/ directory
# 4: Large (lc_*) 22x22 icon and small (sc_*) 16x16 icon in res/commandimagelist/ directory,
#    Icon comes from calligra rather than core oxygen theme.
# 5: Large (lc*) 22x22 icon and small (sc*) 16x16 icon in res/ directory
#    Many of these are numbered instead of named.
# 6: Large (lc_*) 22x22 icon and small (sc_*) 16x16 icon in res/commandimagelist/ directory,
#    Icon comes from scribus rather than core oxygen theme.
# 7: Specify relative path from theme root for source, relative path for target
1,actions/bookmark-new,addbookmark
1,actions/bookmark-new,insertbookmark
1,actions/align-vertical-bottom,aligndown
1,actions/align-vertical-center,alignmiddle
1,actions/align-vertical-top,alignup
1,actions/align-horizontal-left,objectalignleft
1,actions/align-horizontal-left,objectalign
1,actions/align-horizontal-right,objectalignright
1,actions/align-horizontal-center,aligncenter
1,actions/document-save,save
1,actions/document-save-as,saveas
1,actions/document-open,open
1,actions/document-open,openreadonly
1,actions/mail-send,sendmail
1,actions/document-new,newdoc
1,actions/document-edit,editdoc
1,actions/document-edit,dsbeditdoc
1,mimetypes/application-pdf,exportdirecttopdf
1,actions/document-print,print
1,actions/document-print-preview,printpreview
1,actions/edit-cut,cut
1,actions/edit-copy,copy
1,actions/edit-paste,paste
1,actions/edit-undo,undo
1,actions/edit-redo,redo
1,actions/insert-link,hyperlinkdialog
1,actions/document-print-direct,printdefault
1,actions/insert-table,inserttable
1,actions/insert-table,addtable
1,categories/system-help,helperdialog
1,actions/help-contents,helpindex
1,categories/system-help,help
1,apps/help-browser,helpmenu
1,actions/format-text-bold,bold
1,actions/format-text-italic,italic
1,actions/format-text-strikethrough,strikeout
1,actions/format-text-subscript,subscript
1,actions/format-text-superscript,superscript
1,actions/format-text-underline,underline
1,actions/format-text-color,color
1,actions/format-text-color,fontcolor
1,actions/format-stroke-color,xlinecolor
1,actions/fill-color,backgroundcolor
1,actions/format-justify-fill,alignblock
1,actions/format-justify-left,alignleft
1,actions/format-justify-center,alignhorizontalcenter
1,actions/format-justify-right,alignright
1,actions/format-indent-less,decrementindent
1,actions/format-indent-more,incrementindent
1,actions/format-list-ordered,defaultbullet
1,actions/format-list-unordered,defaultbullet
1,actions/format-list-ordered,defaultnumbering
1,actions/dialog-close,closedoc
1,actions/dialog-close,closedocs
1,actions/view-fullscreen,fullscreen
1,apps/office-calendar,adddatefield
1,actions/go-previous,browsebackward
1,actions/go-next,browseforward
1,actions/view-refresh,reload
1,actions/zoom-in,zoomin
1,actions/zoom-in,zoomplus
1,actions/zoom-out,zoomout
1,actions/zoom-out,zoomminus
1,actions/zoom-fit-best,zoompage
1,actions/zoom-fit-width,zoompagewidth
1,actions/zoom-original,zoom100percent
1,actions/page-zoom,zoom
1,actions/document-export,exportto
1,actions/document-preview,previewzoom
1,actions/format-fill-color,formatarea
1,actions/view-pim-calendar,datefield
1,actions/view-pim-calendar,adddatefield
1,actions/view-pim-calendar,insertdatefield
1,actions/dialog-ok-apply,apply
1,actions/object-flip-horizontal,fliphorizontal
1,actions/object-flip-vertical,flipvertical
1,categories/applications-multimedia,avmediaplayer
1,actions/dialog-cancel,cancel
1,actions/format-justify-center,centerpara
1,apps/kchart,drawchart
1,actions/view-pim-notes,insertannotation
1,actions/go-down,movedown
1,actions/go-up,moveup
1,actions/format-justify-left,leftpara
1,actions/format-justify-right,rightpara
1,actions/format-justify-fill,justifypara
1,actions/view-calendar-time-spent,timefield
1,actions/view-calendar-time-spent,inserttimefield
1,actions/edit-find,searchdialog
1,actions/help-contextual,extendedhelp
1,actions/zoom-in,helpzoomin
1,actions/zoom-out,helpzoomout
1,actions/edit-find,helpsearch
1,actions/edit-delete-shred,deletemasterpage
1,actions/edit-delete-shred,delete
1,actions/format-line-spacing-normal,spacepara1
1,actions/format-line-spacing-double,spacepara15
1,actions/format-line-spacing-triple,spacepara2
1,actions/draw-text,drawtext
1,actions/go-first,firstrecord
1,actions/draw-freehand,freeline_unfilled
1,actions/format-font-size-more,grow
1,actions/format-font-size-less,shrink
1,actions/go-last,lastrecord
1,actions/go-next,nextrecord
1,actions/go-previous,prevrecord
1,actions/go-previous-view-page,previouspage
1,actions/go-next-view-page,nextpage
1,actions/go-first-view-page,firstpage
1,actions/go-last-view-page,lastpage
1,actions/document-import,importfromfile
1,categories/applications-multimedia,insertavmedia
1,actions/insert-link,inserthyperlink
1,actions/insert-image,insertimagecontrol
1,apps/kchart,insertobjectchart
1,actions/object-order-lower,backward
1,actions/object-order-back,sendtoback
1,actions/object-order-front,bringtofront
1,actions/object-order-raise,forward
1,mimetypes/video-x-generic,insertvideo
1,actions/media-record,macrorecorder
1,actions/tools-check-spelling,spelldialog
1,actions/tools-check-spelling,spellingandgrammardialog
1,actions/tools-check-spelling,spelling
1,apps/kchart,starchartdialog
1,actions/process-stop,stop
1,actions/zoom-original,view100
1,actions/character-set,symbolcatalogue
1,actions/character-set,insertsymbol
1,actions/chronometer,inserttimefield
1,actions/chronometer,timefield
1,actions/configure,config
1,actions/document-preview,printpagepreview
1,actions/object-group,formatgroup
1,actions/object-ungroup,formatungroup
7,16x16/status/dialog-warning.png,desktop/res/caution_16.png
7,16x16/status/object-locked.png,desktop/res/lock_16.png
7,16x16/actions/go-next.png,extensions/res/arrow.png
7,16x16/actions/go-previous.png,extensions/res/m_arrow.png
7,16x16/actions/dialog-close.png,extensions/res/buttonminus.png
7,16x16/actions/list-remove.png,extensions/res/buttonminus.png
7,16x16/actions/list-add.png,extensions/res/buttonplus.png
7,16x16/actions/go-next.png,framework/res/arrow.png
7,16x16/actions/view-calendar-day.png,sc/res/date.png
7,16x16/actions/document-open.png,sc/res/fapopen.png
7,16x16/places/folder-documents.png,sc/res/file.png
7,16x16/actions/table.png,sc/res/table.png
7,16x16/actions/chronometer.png,sc/res/time.png
7,16x16/actions/document-close.png,sd/res/docclose.png
7,16x16/actions/document-open.png,sd/res/docopen.png
7,16x16/mimetypes/application-vnd.oasis.opendocument.text.png,sd/res/doctext.png
7,16x16/mimetypes/x-office-document.png,sd/res/pageexcl.png
7,16x16/mimetypes/x-office-document.png,sd/res/page.png
1,actions/document-new,insertpage
7,16x16/actions/chronometer.png,sd/res/time_16.png
7,16x16/mimetypes/x-office-document.png,sfx2/res/doccl.png
7,16x16/actions/bookmark-new.png,sfx2/res/favourite.png
7,22x22/actions/bookmark-new.png,sfx2/res/favourite_big.png
7,16x16/actions/help-contents.png,sfx2/res/hlpbookclosed.png
7,16x16/actions/document-open-folder.png,sfx2/res/hlpbookopen.png
7,16x16/mimetypes/unknown.png,sfx2/res/hlpdoc.png
7,16x16/actions/view-list-text.png,sfx2/res/indexoff_small.png,
7,22x22/actions/view-list-text.png,sfx2/res/indexoff_big.png
7,16x16/actions/view-list-details.png,sfx2/res/indexon_small.png
7,22x22/actions/view-list-details.png,sfx2/res/indexon_big.png
7,16x16/actions/go-previous.png,svtools/res/back_small.png
7,22x22/actions/go-previous.png,svtools/res/back_large.png
7,16x16/places/folder.png,svtools/res/folder.png
7,16x16/actions/help-about.png,svtools/res/info_small.png
7,22x22/actions/help-about.png,svtools/res/info_large.png
7,32x32/places/folder-documents.png,svtools/res/my_docs.png
7,32x32/actions/document-new.png,svtools/res/new_doc.png
7,22x22/actions/document-preview.png,svtools/res/preview_large.png
7,16x16/actions/document-preview.png,svtools/res/preview_small.png
7,32x32/places/folder-documents.png,svtools/res/samples.png
7,32x32/mimetypes/application-vnd.oasis.opendocument.text.png,svtools/res/template.png
7,16x16/actions/go-up.png,svtools/res/up_small.png
7,22x22/actions/go-up.png,svtools/res/up_large.png
1,places/folder-image,gallery
7,16x16/actions/help-about.png,res/info_16.png
7,22x22/actions/help-about.png,res/info.png
2,mimetypes/application-vnd.oasis.opendocument.presentation,03130
2,mimetypes/application-vnd.oasis.opendocument.presentation,03123
2,mimetypes/application-vnd.oasis.opendocument.presentation,03249
2,mimetypes/application-vnd.oasis.opendocument.spreadsheet,03126
2,mimetypes/application-vnd.oasis.opendocument.chart,03128
3,mimetypes/application-vnd.oasis.opendocument.chart,03127
3,mimetypes/application-vnd.oasis.opendocument.chart,03131
3,mimetypes/application-vnd.oasis.opendocument.chart,03132
2,mimetypes/text-html,03139
2,mimetypes/application-vnd.oasis.opendocument.formula,03144
2,mimetypes/application-vnd.oasis.opendocument.formula,03145
2,mimetypes/x-office-document,03150
2,mimetypes/x-office-document,03151
2,devices/drive-harddisk,03164
2,devices/media-floppy,03165
2,devices/drive-optical,03166
2,mimetypes/application-vnd.oasis.opendocument.graphics,03227
2,mimetypes/application-vnd.oasis.opendocument.graphics,03228
2,mimetypes/application-vnd.oasis.opendocument.presentation,03241
2,mimetypes/application-vnd.oasis.opendocument.presentation,03243
2,mimetypes/application-vnd.oasis.opendocument.presentation,03244
2,mimetypes/application-vnd.oasis.opendocument.graphics,03246
2,mimetypes/application-vnd.oasis.opendocument.formula,03247
2,mimetypes/application-vnd.oasis.opendocument.spreadsheet,03250
2,mimetypes/application-vnd.oasis.opendocument.graphics,03252
3,mimetypes/application-vnd.oasis.opendocument.presentation,03253
3,mimetypes/application-vnd.oasis.opendocument.chart,03254
2,mimetypes/application-vnd.oasis.opendocument.graphics,03160
2,mimetypes/application-vnd.oasis.opendocument.text,03162
2,mimetypes/application-vnd.oasis.opendocument.text,03248
2,mimetypes/application-vnd.oasis.opendocument.text,03251
2,mimetypes/application-vnd.sun.xml.calc.template,03242
2,mimetypes/application-vnd.oasis.opendocument.text,03216
7,16x16/actions/document-open.png,res/fileopen.png
7,16x16/actions/document-open-folder.png,res/folderop.png
7,16x16/devices/drive-harddisk.png,res/harddisk_16.png
1,actions/window-close,closewin
1,mimetypes/audio-x-generic,insertsound
4,actions/circular-arrow-shape,arrowshapes.circular-arrow
4,actions/ellipse-shape,basicshapes.circle-pie
4,actions/hexagon-shape,basicshapes.hexagon
4,actions/pentagon-shape,basicshapes.pentagon
1,actions/format-disconnect-node,beziercutline
4,actions/pathpoint-corner,bezieredge
4,actions/pathpoint-smooth,beziersmooth
4,actions/pathpoint-symmetric,beziersymmetric
1,mimetypes/text-html,browseview
4,actions/callout-shape,calloutshapes
4,actions/callout-shape,calloutshapes.round-rectangular-callout
4,actions/editpath,changebezier
4,actions/ellipse-shape,circlepie
1,actions/transform-crop-and-resize,crop
1,actions/document-export,exportdialog
1,actions/dialog-ok,ok
1,actions/document-open-remote,openurl
1,actions/go-previous,outlineleft
1,actions/go-next,outlineright
1,actions/go-up,outlineup
1,actions/go-next-view-page,pagedown
1,actions/go-previous-view-page,pageup
1,actions/view-presentation,presentation
1,actions/application-exit,quit
4,actions/smiley-shape,symbolshapes
4,actions/smiley-shape,symbolshapes.smiley
1,apps/kthesaurus,thesaurus
1,apps/kthesaurus,thesaurusdialog
7,16x16/actions/document-open-folder.png,res/dir-open.png
7,16x16/places/folder.png,res/dir-clos.png
5,actions/document-print,05504
5,actions/document-print-preview,05509
5,actions/edit-copy,05711
5,actions/edit-find,05961
5,actions/go-next,06300
5,actions/go-previous,06301
5,actions/go-home,06303
5,actions/go-first-view,10616
5,actions/go-next-view,10617
5,actions/go-previous-view,10618
5,actions/go-last-view,10619
5,actions/view-filter,10715
5,actions/edit-redo,10724
5,actions/insert-link,10851
5,actions/edit-find,10853
2,actions/document-open-folder,03141
2,mimetypes/text-plain,03156
2,actions/document-open-folder,03189
7,16x16/actions/document-new.png,res/newdoc.png
7,16x16/apps/preferences-plugin.png,res/puzzleslice_16.png
5,actions/document-new,05500
5,actions/document-open,05501
5,actions/document-save-as,05502
5,actions/process-stop,06302
5,actions/color-picker-grey,10350
3,actions/document-open-folder,03190
2,actions/edit-delete,03193
7,16x16/mimetypes/application-xml.png,res/xml_16.png
7,16x16/places/folder.png,res/foldercl.png
1,actions/draw-freehand,freeline_unfilled
1,actions/draw-line,line
1,actions/checkbox,checkbox
1,actions/draw-arrow-back,arrowshapes.left-arrow
1,actions/draw-arrow-down,arrowshapes.down-arrow
1,actions/draw-arrow-forward,arrowshapes.right-arrow
1,actions/draw-arrow-up,arrowshapes.up-arrow
1,actions/draw-bezier-curves,toggleobjectbeziermode
1,actions/draw-circle,basicshapes.circle
1,actions/draw-circle,circle
1,actions/draw-cross,basicshapes.cross
1,actions/draw-ellipse,basicshapes.ellipse
1,actions/draw-ellipse,ellipse
1,actions/draw-polyline,polygon_unfilled
1,actions/draw-polyline,polygon
1,actions/draw-polygon,basicshapes.pentagon
1,actions/draw-rectangle,square
1,actions/draw-rectangle,basicshapes.quadrat
1,actions/draw-star,starshapes
1,actions/draw-star,starshapes.star5
1,actions/draw-text,text
1,actions/draw-text,texttoolbox
1,actions/draw-triangle3,basicshapes.isosceles-triangle
1,actions/draw-triangle,basicshapes.right-triangle
1,actions/edit-select-all,selectall
1,actions/format-add-node,bezierinsert
1,actions/insert-button,insertpushbutton
1,actions/insert-text,inserttextframe
1,actions/measure,measureline
1,actions/transform-shear-left,shear
1,actions/transform-rotate,toggleobjectrotatemode
1,actions/transform-scale,transformdialog
1,actions/draw-rectangle,rect
1,actions/go-first-view-page,gotostartofdoc
1,actions/go-last-view-page,gotoendofdoc
1,actions/document-properties,setdocumentproperties
1,actions/draw-freehand,insertdraw
1,actions/draw-bezier-curves,bezier_unfilled
1,actions/edit-select,drawselect
1,actions/edit-select,selectmode
1,actions/edit-select,selectobject
1,actions/format-remove-node,bezierdelete
1,actions/debug-step-out,basicstepout
1,actions/debug-step-over,basicstepover
1,actions/run-build-install,runbasic
7,16x16/actions/folder-new.png,res/fp015.png
7,16x16/actions/office-chart-polar.png,chart2/res/typenet_16.png
7,16x16/actions/office-chart-pie.png,chart2/res/typepie_16.png
7,16x16/actions/office-chart-line.png,chart2/res/typepointline_16.png
7,16x16/actions/office-chart-bar.png,chart2/res/typecolumn_16.png
7,16x16/actions/office-chart-area.png,chart2/res/typearea_16.png
1,actions/view-grid,grid
1,actions/view-grid,gridvisible
1,actions/edit-table-delete-row,deleterows
1,actions/edit-table-insert-row-above,insertrows
1,actions/edit-table-insert-column-left,insertcolumns
1,actions/edit-table-insert-column-left,dsbinsertcolumns
1,actions/edit-table-delete-column,deletecolumns
7,32x32/status/dialog-error.png,res/commandimagelist/msgbox-error.png
7,32x32/status/dialog-information.png,res/commandimagelist/msgbox-info.png
7,32x32/status/dialog-warning.png,res/commandimagelist/msgbox-warning.png
#msgbox-query?
-- 
kubuntu-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/kubuntu-devel

Reply via email to