OpenOffice.org1.1 toolbar icon themes

Various KDE 1.-4. Styles

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

1
5.7
Description:

This is a tcl script for generating OOo toolbar/menu icon themes, from kde (or other) icon sets.

Rather than focusing on individual themes for each icon set, I decided to provide a tool so that the users can create their own custom icon themes. That said, some common icon-themes from kde-look are enclosed (base = crystal).


Install
-------

Extract the downloaded file.
* To install the default theme in OOo 1.1.x, run:
"tclsh quickInstall.tcl"

* To install any custom themes,
Specify your OOo config directory in config.tcl and the theme directory, run:
"tclsh genbar.tcl"
Last changelog:

17 years ago

(0.1) Initial release

(0.2) Second release (improved functionality)
* OOo config directory is now backed up before continuing.
* Icons are now stored in a different folder, that should fix the loading error issue.
* Image index for bitmaps starts from 0.
* Option to turn icon-masking off, since some themes don't look good with masking.
* Option to add navigation icons to the function toolbar (screen-shot 2).
* few additional icons (nuvola + noia) and slots.

(0.3) - Third release (more improvements + additions)
* Koen Muylkens has joined in (more icons!)
* Significant updates in the script (no more major changes in future, hopefully).
* Option to use your default-kde icons
(slect icon theme in kcontrol, run script and the icons will appear in OOo)
* Option to add a navigation toolbar
* There is a static *untested* windows config theme under "Extras".
* Number of base icons is > 80 (22x22)

(0.32)
* Crystal base icons for font/para properties
* slotlist.csv format changed to allow icons for macros
* Runs 30% faster than v-0.3 (defaults)
* Folder "Extras" contains gimp files for font icons

(v 0.4)
* Several new icons, total > 150 (22x22)
* Configuration is now set in a separate file (config.tcl)
* New quick-install mode for OOo 1.1.x. To install the base theme, run: "tclsh quickInstall.tcl"
(no need to update config.tcl)
* Script improvements
* Static windows theme had to be removed due to space constraints.

(v 0.5)
* imagelist.xml format changed, should reduce the overhead for OOo startup.
* Script runs almost twice as fast as version 0.4 (defaults).
* Additional icons for draw, and some others updated.
* Error on qtrc not available bug fixed, and other small improvements.
* Separate submission for generating static themes: (http://www.kde-look.org/content/show.php?content=8529)

(v 0.52)
* quickInstall checks for multiple installed versions of OOo
* Option to scale icons to smaller size

Known Issues (see README)
------------
1. Debian systems
2. Background color lighter than #f1f1f1

C

kol

17 years ago

I'll make a few "static" themes shortly and figure where I can post them (give me a couple of days).

Report

rtatay

17 years ago

kol:

have you been able to do this? I'm also really interested in getting it for Windows.

Report

C

kol

17 years ago

The problem with a static theme is the the background color of the bitmaps. If it does not match your OOo toolbar background, then the toolbar dosn't look nice.

I have made a "pseudo-static" script for windows to address this. Unfortunately, I cannot test it (no access to windows comp). If you are willing to test it out for me, I'll email the stuff and you can let me know of any problems or if it works okay.

Report

rtatay

17 years ago

You can also email it to me at rtatay@yahoo.com

Thanks!

Report

artisan

17 years ago

OK. My email adress is raducoc@yahoo.com

Report

artisan

17 years ago

P.S.
Where is "ooextras" ?

Report

ryanknoll

17 years ago

I got this output after running the quickInstall.tcl script:
--------------------------------------------------------------
Found OOo: (/root/.openoffice/1.1.0)
found quickInstall auto-config file
ThemeDir: MyTheme/22x22/
icon-size = (22,22)
num icons: 151
config directory not found, generating
Backing up config dir (soffice.cfg) to:
/root/.openoffice/1.1.0/user/config/soffice.cfg.bak0/
Background Color: (#eeeee6)
couldn't execute "convert": no such file or directory
while executing
"exec convert -size $len$x$cy xc:$bg $out1"
(file "genbar.tcl" line 567)
invoked from within
"source genbar.tcl"
(file "quickInstall.tcl" line 52)
----------------------------------------------------------
It looks like there is a problem with the "convert" requirement. My OOo won't load now, but copied an old ".openoffice" directory which fixed it back the default. Any advice on error above?

Report

vernr

17 years ago

You must install ImageMagick and tcl which are included with most distributions.

Report

C

kol

17 years ago

Requirements:
-------------
1. convert, composite
2. TCL (8.x)


They come as part of ImageMagick (rpm for Mdk).
Try the following link for more info:

http://www.imagemagick.org/

Report

Cyyb

17 years ago

What file does OO.o get the setting for its background colour from?

My icons are using e6e7e6 colour but the rest of the app is using the default c0c0c0 colour so it looks rather odd.

Is there a file that I can just change the number of the colour it uses?

Thanks in advance.

Report

C

kol

17 years ago

You can change the background color of icons in two ways:

1. In config.tcl,
set bg "your color"
set guessBG "false"

2. In kde control center, Appearance->colors -> check apply kde colors to non-kde apps
In that case, the script will guess the color from ~/.qt/qtrc
(you will have to set guessBG "true")

config.tcl has some additional documentations also.

Hope that helps.

Report

fiz

17 years ago

Can this script run on windows?
(Of course assuming the user has tcl/tk installed there.)

Report

C

kol

17 years ago

Don't think so, at least not directly. You can however, run it under linux and transfer the theme to windows.

Report

fiz

17 years ago

what directories/files should I transfer?
I might actually have a look at the script--there might not be that much OS-specific stuff in there-- I think TCL converts slashes to backslashes etc anyways doesn't it?

Report

C

kol

17 years ago

You need to transfer the following directory:
OpenOffice.org1.1.0/user/config/soffice.cfg

Also, for windows, someone reported that icon-masking should be on (see config file) or else OOo crashes on startup. In addition, you also need those imagemagick utilities, as mentioned in the readme.

I havn't worked on windows in a long time, so I have no idea on how to port tcl to windows. If you are able to port it, please let me know too :-)

Report

TyrGunarsson

17 years ago

The script fails to create the bitmap if a ~/.qt/qtrc file doesn't exist. It doesn't really show an errormessage either. If you subsequently try to run OOo then it crashes. Gnome-only people beware!

Workaround : run the following command BEFORE you run the script :
#touch ~/.qt/qtrc

Report

sboddy

17 years ago

I have a couple of problems with them:

The icons show up in the menu too, and are absolutely huge! The edit menu pops up offset to the right, and still has up/down arrows at the top and bottom, because not all options can be displayed. This is on a 1024x768 screen with a normal size KDE kicker.
So, is it possible to add different size icons for the menus?

The icons in other parts (Stylist and Navigator in particular) really clash. There are probably others, but these are the ones that jumped out at me.
So, is it possible to add icons for other interface elements?

The entries in the menus have changed from the defaults (as of OOo 1.1 rc3). i.e. the recent items (load url) is missing, top/end of document has been added (which are particularly irritating as they don't do anything in the other OOo apps.)
So, would it be possible to keep the default toolbar configs, or better yet, use the existing toolbar configs?

If this is possible, I'll keep watching this space. I'd rather not confuse the target user of this installation with jarring UI transitions within a single app, but once its unified, this will definetely get installed.

Other than that, it looks great!

Regards
Steve

Report

C

kol

17 years ago

>>
The icons show up in the menu too, and are absolutely huge! The edit menu pops up offset to the right, and still has up/down arrows at the top and bottom, because not all options can be displayed. This is on a 1024x768 screen with a normal size KDE kicker.
So, is it possible to add different size icons for the menus?

As far as I know, its not possible (I could be wrong though). The icons are defined in the imagelist.xml and there is an icon corresponding to a "slot id", e.g. for file-open. Menu and Toolbar are specified by their xml files, that basically list the slot-numbers. So, as long as there is a common slot id (e.g. file-open) on both the tool-bar and the menu, it is going to use the same icon (and hence the same size).

One solution could be to try making an icon theme of 16x16 kde-icons.

>>
The icons in other parts (Stylist and Navigator in particular) really clash. There are probably others, but these are the ones that jumped out at me.
So, is it possible to add icons for other interface elements?

I know that, its quite a contrast (e.g. navigator). I've been trying to locate their slot id's but could not find them :(, probably they use some uno command tag instead !?

>>
The entries in the menus have changed from the defaults (as of OOo 1.1 rc3). i.e. the recent items (load url) is missing, top/end of document has been added (which are particularly irritating as they don't do anything in the other OOo apps.)
So, would it be possible to keep the default toolbar configs, or better yet, use the existing toolbar configs?

That one can be easily fixed :). Please remove the following files from you OOo config directory:
functionbar.xml, writertoolbar.xml
(OpenOffice.../user/config/soffice.config)

Report

rommel

17 years ago

this is great... openoffice now is actually almost fast and now with this it looks great... linux rules cuz of people like you

Report

deech

17 years ago

i absolutly agree! Thanks for this great piece of work.

Report

theARE

17 years ago

The script works fine, finds everything no problem, but when I try running OpenOffice the splash screen comes up, and then it just aborts.

$ ooffice
Try `uname --help' for more information.
Aborted

I restore soffice.cfg and it runs fine.
I'm using OOo 1.0.3 on Debian

Anyone have any idea how I can get it to work?

Report

C

kol

17 years ago

This script works with OOo 1.1.x

For 1.0.x, you can try,
set maskImg "true";

.. but then the icons won't look nice in 1.0.x. If it works though, try playing around with the following line:

exec convert -size $len$x$cy xc:white $out2

change "white" to a color that works best for you (black or $bg).

Report

theARE

17 years ago

thanks, that worked fine, and the icons look great.

Report

victord

17 years ago

I created the icon set, but how do change the background of the app from grey to light color you use (eeeee6) and how do change the font in the menus? where is that set?

Thanks

Report

C

kol

17 years ago

Fonts:
-------
In OOo:
Tools -> Options -> Fonts
check: Replacement Table
Replace
Andale Sans UI (have to type this in)
with
Bitstream Vera Sans (or whatever u like)

check: Always

Background:
-----------
In Kcontrol:
LookNFeel -> Colors
(select your colors)
check: Apply colors to non-KDE apps

Append:
include "/home/username/.gtkrc-kde"
to your ~/.gtkrc
(after including your default theme)

That should work :)

Report

17 years ago

(0.1) Initial release

(0.2) Second release (improved functionality)
* OOo config directory is now backed up before continuing.
* Icons are now stored in a different folder, that should fix the loading error issue.
* Image index for bitmaps starts from 0.
* Option to turn icon-masking off, since some themes don't look good with masking.
* Option to add navigation icons to the function toolbar (screen-shot 2).
* few additional icons (nuvola + noia) and slots.

(0.3) - Third release (more improvements + additions)
* Koen Muylkens has joined in (more icons!)
* Significant updates in the script (no more major changes in future, hopefully).
* Option to use your default-kde icons
(slect icon theme in kcontrol, run script and the icons will appear in OOo)
* Option to add a navigation toolbar
* There is a static *untested* windows config theme under "Extras".
* Number of base icons is > 80 (22x22)

(0.32)
* Crystal base icons for font/para properties
* slotlist.csv format changed to allow icons for macros
* Runs 30% faster than v-0.3 (defaults)
* Folder "Extras" contains gimp files for font icons

(v 0.4)
* Several new icons, total > 150 (22x22)
* Configuration is now set in a separate file (config.tcl)
* New quick-install mode for OOo 1.1.x. To install the base theme, run: "tclsh quickInstall.tcl"
(no need to update config.tcl)
* Script improvements
* Static windows theme had to be removed due to space constraints.

(v 0.5)
* imagelist.xml format changed, should reduce the overhead for OOo startup.
* Script runs almost twice as fast as version 0.4 (defaults).
* Additional icons for draw, and some others updated.
* Error on qtrc not available bug fixed, and other small improvements.
* Separate submission for generating static themes: (http://www.kde-look.org/content/show.php?content=8529)

(v 0.52)
* quickInstall checks for multiple installed versions of OOo
* Option to scale icons to smaller size

Known Issues (see README)
------------
1. Debian systems
2. Background color lighter than #f1f1f1

12345678910
1
product-maker drmcnellis May 10 2015 9 excellent
Be the first to comment
drmcnellis
May 10 2015
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
updated Oct 27 2003
added Jul 24 2003
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0