diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-24 00:59:31 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-24 00:59:31 -0400 |
commit | 446f17bc3a9a1a60c6893b245745a773b025e12a (patch) | |
tree | 8e9abff748eb74dc22e2f92299a0fb2023ea86b2 /icon-themes | |
parent | e665b847ce8a25808bea750d1ef548d217629cbb (diff) |
Documented how to add an icon to a dispatch command.
Change-Id: Ifb1d1e712c6fadc549dd7717ae1fae0fadcba9fa
Diffstat (limited to 'icon-themes')
-rw-r--r-- | icon-themes/README | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/icon-themes/README b/icon-themes/README index c25279120076..90887157614e 100644 --- a/icon-themes/README +++ b/icon-themes/README @@ -62,3 +62,31 @@ How to add a new image set: vcl/source/app/settings.cxx - The fallback for particular icons is defined in CUSTOM_PREFERRED_FALLBACK_1 + + +How to add a new icon for a new command: +---------------------------------------- + +- Assume you defined a dispatch command in officecfg like the following: + + in officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu + + <node oor:name=".uno:OpenFromCalc" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">~Open...</value> + </prop> + <prop oor:name="Properties" oor:type="xs:int"> + <value>1</value> + </prop> + </node> + + Here, you need to define a property named "Properties", with its value set + to 1. (TODO: Check if this step is still necessary.) + +- Now, you need to add 2 new icon images under icon-themes/galaxy/cmd/, one + for the large size and one for the smaller size. The name of each image + must be lc_<command name>.png and sc_<command name>.png. Here, the command + name is the name given in the above .xcu file without the ".uno:" prefix and + all its letters lower-cased. In this example, the file names will be + lc_openfromcalc.png and sc_openfromcalc.png. Note that you need to add new + images to the galaxy theme for them to show up in any themes at all. |