msstyle loader prototype

KDE 3.5 Themes

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

0
Score 58.0%
Description:

This is a kde style prototype capable of using the msstyle format. The code is pre-alpha quality (aka POC) and although I compiled it on my system, it might not on yours :)

Enjoy (and send me patches/feedback!)

Last changelog:

15 years ago

Now the download actually contains the code (looked @ ms patents in europe and it looks like msstyle is ok).
The style is based on alloy (thanks to all authors for such a great template).
Help: I'd need some help with the following:
1. scrollbars: i'd be grateful if you could help me with painting the scrollbars (had all kinds of problems with that)
2. any ideas on speeding up the painting (stretching/tiling algorithms would be a good start :) )
3. the .msstyle contains the window decoration style as well. it would be nice if someone could start working on the windeco stuff and make it share the bitmaps with the widgets style (any idea on how to create a nice/fast shared engine using KDE's mechanisms?)

Notes:
1. The code will probably segfault if a weird input file is given (no safeguards)
2. Go to deviantart.com and download a style (reluna is my fav from there) and point the fialog to load the .msstyle file from there (uncompress the zip...)
3. it looks like Qt does some image caching for radio/checkboxes. any way to "undo" that?
4. the qt code is mainly designed to verify the correct loading of the PE file.

jezek2

14 years ago

MetaTheme now supports loading of MSSTYLE themes. Not only for KDE, but also for plain QT, GTK2 and Java/SWING, consistently. See the URL:

http://www.kde-look.org/content/show.php?content=13010

Report

elempoimen

14 years ago

Ok, I guess I'm probably being a bit ignorant here, but is this just a proof of concept, or can one actually install and use msstyle files with KDE? If so, how? I have stylebuilder compiled and installed, and can load a style (when I invoke stylebuilder from the command line), but I can't figure out how to apply them.

Thanks!

Report

nuka

15 years ago

so, are there any updates for this?

Report

eriol

15 years ago

Momo said all ...
Same bugs plus a bug when trying to load a style with large or extra large fonts (I understand it's in early stage of development) and same hopes : can't wait to see my whole linux/qt desktop with great msworld styles (longhron inspirat by stefanka rocks !) ...

Can be some kind of revolution in kde theming ...
Keep up the good work !

Report

C

equinoxe

15 years ago

can you please give me some more details? like the style name(/location)? Thanks,

L

Report

anonymous-hive

15 years ago

What about ?
Longhorn Inspirat ?

If it's the case, here it is :
http://www.deviantart.com/deviation/7631106/

(I never used it. I don't have Windows for long. But I always look at what is done for it ...)

If it's not the case ... i'm afraid I don't understand.

Eriol.

Report

eriol

15 years ago

What about ?
Longhorn Inspirat ?

If it's the case, here it is :
http://www.deviantart.com/deviation/7631106/

(I never used it. I don't have Windows for long. But I always look at what is done for it ...)

If it's not the case ... i'm afraid I don't understand.

Eriol.

Report

C

equinoxe

15 years ago

thanks a mill. that's it! :) i'll be looking at ti later on :)

Thanks again,

L

Report

eriol

15 years ago

I hope you'll like it (sure you will)
If only kde could be themed like that ... But there's a lot of reshacking. I don't think it will ever be working this way for us ... so sad.

BTW sorry for double posting ... don't know what happened ..

Report

C

equinoxe

15 years ago

Yes, there s quite a bit of that involved, but as far as which bitmap does what in the style, it's pretty straight forward. plus the fact that kde style uses a subset of the msstyle library (the msstyle includes all kind of extra bits that are unusable in kde - e.g. the start bar stuff, menu things)

thanks for the thinkeramik pointer :) I'll have a look and hopefully i'll figure out how to draw the scrollbars...

Cheers,

L

Report

Momo

15 years ago

styleloader crashes when I launch it and then just click the Cancel button. Unfortunately, kde was not compiled with debugging on my machine (yoper), so it doesn't say more than just :
Populating the list of available configurations...
KCrash: Application 'styleloader' crashing...

Other than that, the styles Opus,ModLuna and OliviaSky loaded just fine, except for the input tab, where the slide bar and the progress bar look very weird (but you seem to say this is normal behavior as for now).
Anyway, hat you've already done is amazing, please keep up the good work.

Report

C

equinoxe

15 years ago

Thanks for the feedback! :)

The "cancel" on the initial dialog box implies a QString::null (if i remember correctly), and the subsequent code tries to open the file with that name (no safety code here). that's why it crashes..

I'll try to do something about scrollbars, but i must admit i'm not entirely sure how to paint it and that's why i'm looking fr help from a "pro" :)

Cheers,

L

Report

Momo

15 years ago

ok, so I guess the null string will go into the error check procedure once implemented with all the other possible errors (after all a nice "Sorry" Dialog looks a lot better than an error 11 ;)).
I am trying to learn Qt currently but I am still an early newbie so I won't likely be able to help you with the scrollbars, but maybe you could look at thinkeramik's code for example : it is very complete and it basically loads pixmaps from pngs (iirc, or were those xpm ?), so maybe the similarity in the principle will help you. (from what I understood, you first convert bitmaps to pixmaps and then you load the result).
Once again, thank you and good luck.

Report

Momo

15 years ago

in cvs src/loader/resourcestyle.h, you put a semicolon after Q_OBJECT, and my gcc was very unhappy with that, so I removed it and compiling went fine. I am using gcc 3.4.1 so it may be a new syntax inherent to it or something.

Report

marsonist

15 years ago

As with the others IANAL, but reverse engineering is completely legal. The only "exceptions" come if the files have any sort of copy protection that requires disabling or cracking (e.x. DVD's macrovision) or if the code you use uses code stolen from copyrighted projects.

Outside of the two above exceptions reverse engineering is completely legal. They can copyright content (e.x. sell skin files), but they can't enforce how that copyrighted content is used. (how these skins will be used)

Just my non-professional two cents.

~Steve

Report

nuka

15 years ago

im not a lawyer, but windowblinds can convert msstyles to their propriety format, and MS recomends them. id say there is no problem here.

Report

andygodwin

15 years ago

I have no idea about the legal issues - as the guy above said, it all depends on patents - but the idea itself is brilliant. While I'd obviously prefer native styles, there aren't really too many good ones at all, and this is an ideal solution for 'bridging the gap'.

Report

elektroschock

15 years ago

Via interoperability provisions is shall be no problem to load from a file format. The only obstacle could be an ugly software patent on a style engine.

conversion of MS styles would be great. Of course those styles would belong to their copyright holder.

EU swpats see http://gauss.bacon.su.se

and support FFII to avoid EU swpat legislation.

http://swpat.ffii.org

Report

Superstoned

15 years ago

with the above comments - this is way cool. please release the code!

Report

LTD602

15 years ago

OMG.

This is incredible. It will certainly have a HUGE impact on the way we skin Linux . . . if it works, and skins a fair amount of the desktop elements.

Wow. Please finish this.

Report

18volt

15 years ago

Please Do it! If this will let me create themes in windows for linux I will be extremely greatful, as I have failed miserably in making a themes in linux, but have crated very beautiful themes in my past windows days, I just have no skill in coding :( (Im listening to the DeCSS mp3 by Xader Vartec while riding this :)

Report

soxofaan

15 years ago

look very nice
butt...
why is checkbox2 of the second style checked? (and radiobutton2 instead of radiobutton1)

Report

soxofaan

15 years ago

and why did I wrote "but" with two t's?

Report

Gerald

15 years ago

I don't think this is illegal because all you provide is a software. What a user does with that software might be illegal, but not providing the program itself.
I think that's a bit like KaZaA and so on - you can perhaps do illegal stuff with the software, but then that's the problem of the user, not of the developer.
Or did you break any laws to develop it?

Report

Yaba

15 years ago

It's not that easy. Remember what the author of DeCSS experienced?

Luckily he won, but I don't think that he had had that luck, if he would have lived in the U.S.

Report

15 years ago

Now the download actually contains the code (looked @ ms patents in europe and it looks like msstyle is ok).
The style is based on alloy (thanks to all authors for such a great template).
Help: I'd need some help with the following:
1. scrollbars: i'd be grateful if you could help me with painting the scrollbars (had all kinds of problems with that)
2. any ideas on speeding up the painting (stretching/tiling algorithms would be a good start :) )
3. the .msstyle contains the window decoration style as well. it would be nice if someone could start working on the windeco stuff and make it share the bitmaps with the widgets style (any idea on how to create a nice/fast shared engine using KDE's mechanisms?)

Notes:
1. The code will probably segfault if a weird input file is given (no safeguards)
2. Go to deviantart.com and download a style (reluna is my fav from there) and point the fialog to load the .msstyle file from there (uncompress the zip...)
3. it looks like Qt does some image caching for radio/checkboxes. any way to "undo" that?
4. the qt code is mainly designed to verify the correct loading of the PE file.

12345678910
1
product-maker LMLB Mar 23 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
updated Aug 30 2004
added Aug 26 2004
downloads 24h
0
page views 24h 4