Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Changing the exterior color of the main window
Changing the exterior color of the main window
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
Guest
Guest





PostPosted: Wed Mar 30, 2005 11:23 am    Post subject:

Pat said:

"I understand your logic about not upgrading, but I think you are assuming that Neo/J is a corporate product that is well tested before release. Instead, Neo/J is done entirely by volunteers which means that no code is really tested until it is released. In essence, the code is tested by people like you."

Nope, not at all. I realize it's just Ed and you and a handful of others that are involved on and off which is exactly what makes it interesting to follow. Classical David and Goliath stuff.

I've got 2 archives and installs on my iMac that I'm too paranoid to get rid of until I get my Mac back to the way I had it was before my fooling around messed things up, cause I just can't stop tinkering, it's an addiction, I guess.

So until I get my new iBook preloaded with Tiger, (Tiger ~ 4/15/05 so iBook-->Tiger May/June?) It's simply not worth it to me to upgrade NeoJ or Mac OS X since I tell every one to send me .rtf files at home and deal with .docs as I need to.

I'll be glad to upgrade then and maybe even download the behemouth and play with NeoC source on the iMac at that point.

Hope I didn't offend with the speed comments and I continue to wish all involved great progress. I and many others want you to be successful!!! Maybe not so much billyboy ; )

I came in here simply looking for a quick fix for the Windoze drab grey, and one could say Apple Platinum, window coloring and learned there is no such animal. Carry on and again, good luck!!!!!!!!!!!!!!!
Back to top
Guest
Guest





PostPosted: Wed Mar 30, 2005 2:18 pm    Post subject:

Not to beat a dead horse or anything but in my daily reading/quest to tinker I came across this link and thought Pat and the gang might apppreciate it as it relates to how this thread has gone

http://www.openoffice.org/issues/show_bug.cgi?id=40800
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Wed Mar 30, 2005 10:56 pm    Post subject:

Guest wrote:
Not to beat a dead horse or anything but in my daily reading/quest to tinker I came across this link and thought Pat and the gang might apppreciate it as it relates to how this thread has gone

http://www.openoffice.org/issues/show_bug.cgi?id=40800


Not to further beat a dead horse...but the reason that KDE, etc., follow the system theme (as mentioned in one of the later posts in that bug) is the work Ed and Dan did in Neo/C prototyping the N*F stuff (silly the Windows people at Sun decided not to use it; they could have saved themselves a nasty bugreport). So we won't have that problem in Neo/J--but it's not automatic; it'll take a good bit of work to hook up.

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
Guest
Guest





PostPosted: Fri Apr 01, 2005 8:30 am    Post subject:

Thanks for that Smokey. It's good to see that others are noticing the GUI efforts involved.

Hmmm... Wash., DC, OK, just my paranoia acting up.

I realize now you are also a heavy hitter in all this work. Thanks.

Indeed this 'gray' seems to be deep in the bowels of OO.o itself in all its german language glory as I've scoured and tinkered all week to find no success. One thing I have noticed is how Sun spells things 'grey' in the code while the other grey ascII coding is spelled (spelt?) 'gray.
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Fri Apr 01, 2005 10:32 am    Post subject:

Guest wrote:
One thing I have noticed is how Sun spells things 'grey' in the code while the other grey ascII coding is spelled (spelt?) 'gray.


I suppose it all started when someone at Microsoft decided that English also comes in an American version...

Anyway, Smokey didn't graduate from Oracle to Town Crier for nothing Smile.

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
JKT
The Anomaly
(earlier version)


Joined: Sep 18, 2003
Posts: 434
Location: London, UK

PostPosted: Mon Apr 04, 2005 1:41 am    Post subject:

Guest wrote:
Thanks for that Smokey. It's good to see that others are noticing the GUI efforts involved.

Hmmm... Wash., DC, OK, just my paranoia acting up.

I realize now you are also a heavy hitter in all this work. Thanks.

Indeed this 'gray' seems to be deep in the bowels of OO.o itself in all its german language glory as I've scoured and tinkered all week to find no success. One thing I have noticed is how Sun spells things 'grey' in the code while the other grey ascII coding is spelled (spelt?) 'gray.


Gray is US English, grey is English. I suspect that the German developers were more likely to have learnt English rather than US English. However, for computer "language" US English will have been used owing to the main commercial OSes being developed primarily in the US.

_________________
PBG4, 1.5GHz, SuperDrive, 1GB RAM, 128MB VRAM, 5400rpm 80GB HD, MacOS X 10.4.5

Please visit The Land Gallery at http://www.thelandgallery.com for nature-inspired British Fine Art
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: Mon Apr 04, 2005 6:06 am    Post subject:

you know i actually use both spellings of the word. wonder if that means anything.
Back to top
Guest
Guest





PostPosted: Mon Apr 04, 2005 6:38 am    Post subject:

Well, I was gonna let that beaten horse die, but since this is back on top, I have a few questions after poking around in soffice.bin over the weekend:

What is the sigifcance of and is it wasting time playing with the following code:

- Q53com3sun4star* (where * varies in value from say 3 thru 15, etc.)

- 6Window.

- 12SystemWindow* (where * varies from something like Ui. to other things)

On the Beige work box right now so this is from memory.

In other words, just where is that damn german grey window and toolbar color hex code in OOo?!!!!!
Back to top
fa
The Architect
The Architect


Joined: May 27, 2003
Posts: 88

PostPosted: Mon Apr 04, 2005 7:30 am    Post subject:

What you actually want to look at are the following source files:

http://gsl.openoffice.org/source/browse/gsl/vcl/source/app/settings.cxx?rev=1.38.122.1&content-type=text/vnd.viewcvs-markup
http://util.openoffice.org/source/browse/util/tools/inc/color.hxx?rev=1.3&content-type=text/vnd.viewcvs-markup

You're looking for ImplStyleData::SetStandardStyles(), ignore the Unix/Mac styles as those are extremely old code that is no longer used in the 1.1.x series (and is removed in 2.0).

Specifically, what you probably want is to change this:

maDialogColor = Color( COL_LIGHTGRAY );

to something that doesn't suck. COL_LIGHTGRAY is actually just a 32-bit integer number composed of the RGB color value that you'd like, with the bits 24-31 unused, 16-23 = r, 8-15 = g, 0-7 = b.

You'd probably be able to find that in libvcl645mxp.dylib by using a search for 0x000c0c0c. Youd probably best find the address of ImpleStyleData::SetStandardStyles() first though, and search for the first 0x000c0c0c after the start of that function in the dylib.

A patch that Red Hat has used in the past (before Native Widget Framework made it obsolete):

http://people.redhat.com/jrb/files/openoffice-1.0.2-colorchange.patch
Back to top
Guest
Guest





PostPosted: Mon Apr 04, 2005 7:57 am    Post subject:

"... longer used in the 1.1.x series (and is removed in 2.0). "

Now see, that's why I know just enough to really know nothing at all.

If I'm poking around in NeoJ ver. 0.7 soffice.bin though, does your lead still apply re: 1.1.x series OOo?

I don't remember seeing anything that you mention but then again I didn't really know what I was looking for in the first place.

I'll still follow your suggested leads and play if possible.

Thanks!

I'm quite content with NOJ 0.7 for my needs. I'll just pretend I'm using Platinum again. : P
Back to top
fa
The Architect
The Architect


Joined: May 27, 2003
Posts: 88

PostPosted: Mon Apr 04, 2005 7:58 am    Post subject:

My bad, make that 0x00c0c0c0, or on Intel 0xc0c0c000.

The problem you'll run into here is that the addresses that you get from "otool" are _offsets_ based on the load address of the library, and are quite useless for a hex editor. You have to find out the default load address for the library, then subtract from the address of the function that you got using "otool" that load address, then you can go there with a hex editor and search for the 3rd occurance of C0C0C0 and change it and be reasonably sure it will work.

Since I don't have Neo installed on a Mac I can get to right now, lets do this with QuickTime. Say I'm looking for the "QTMLGrabMutex" function so I can hex-edit something.

otool -Vvt /System/Library/Frameworks/QuickTime.framework/Versions/Current/QuickTime | less

I then hit "/QTMLGrabMutex" and return, to find that string in less. I get the following:

_QTMLGrabMutex:
91bb1858 mfspr r4,lr

So, the start of QTMLGrabMutex is at VM offset 0x91bb1858. I need to find the load address of the QuickTime dylib first, so I do this using:

otool -l /System/Library/Frameworks/QuickTime.framework/Versions/Current/QuickTime | less

This gives me a printout of the sections in the library, but only the section that has a "fileoff 0" is of interest since that gives me the load address of the library:

Load command 0
cmd LC_SEGMENT
cmdsize 940
segname __TEXT
vmaddr 0x91bb0000
vmsize 0x00196000
fileoff 0
filesize 1662976
maxprot 0x00000007
initprot 0x00000005
nsects 13
flags 0x0

Therefore, this library is loaded into memory starting at address "0x91bb0000" as seem from the "vmaddr 0x91bb0000". I next take a calculator and do the following:

function address - load address = offset within file
0x91bb1858 - 0x91bb0000 = 0x1858

Then, in the hex editor, I would jump to file offset 0x1858 and be reasonably sure that I was inside the QTMLGrabMutex() function. I dont' just want to search for "C0C0C0" because that could be valid code and if changed, would crash Neo.

Now, I'm actually just winging it here, so if anyone _knows_ that this is wrong, please correct me. If not, the procedure here should work for you to find the exact C0C0C0 string you want to change to affect the window color in NeoOffice.

dan
Back to top
Guest
Guest





PostPosted: Mon Apr 04, 2005 8:00 am    Post subject:

" libvcl645mxp.dylib"

Ha! I do remember seeing that one!
Back to top
fa
The Architect
The Architect


Joined: May 27, 2003
Posts: 88

PostPosted: Mon Apr 04, 2005 8:02 am    Post subject:

I'll take a stab at it tonight and post the actual offset of the bits you need to change inside libvcl645mxp.dylib in this thread.

The other alternative is to convince Patrick to apply a patch with certain less-sucky colors Smile

Note that I _did_ look at Tools->Options->Appearance->Application background, but I don't think that changes what we want it to change. Correct me if I'm wrong.
Back to top
Guest
Guest





PostPosted: Mon Apr 04, 2005 8:05 am    Post subject:

Although I'm an engineer, that last post just plain scared me dan. Let me ponder that discussion before attempting to tackle that. Wink
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Mon Apr 04, 2005 10:17 am    Post subject:

fa wrote:
The other alternative is to convince Patrick to apply a patch with certain less-sucky colors Smile

Note that I _did_ look at Tools->Options->Appearance->Application background, but I don't think that changes what we want it to change. Correct me if I'm wrong.


Thanks Dan! Sending Patrick a patch would work for a start Smile. With any luck (and good health) Brett and co. can finish a new icon set and we'll have a fresh look ready for 1.1 final.

Of course, our nameless Guest in this thread will have to download 1.1 then Smile..

Best wishes,
Oscar

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 2 of 7

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.