msstyle loader prototype

KDE 3.5 Themes

Source i (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
Become a Fan
5.7

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:

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.


Ratings & Comments

29 Comments

jezek2

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

elempoimen

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!

nuka

so, are there any updates for this?

eriol

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 !

equinoxe

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

eriol

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.

equinoxe

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

eriol

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 ..

equinoxe

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

anonymous-hive

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.

Momo

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.

equinoxe

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

Momo

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.

Momo

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.

marsonist

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

nuka

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

andygodwin

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'.

elektroschock

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

Superstoned

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

LTD602

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.

18volt

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 :)

soxofaan

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

soxofaan

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

Gerald

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?

Yaba

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.

Pling
0 Affiliates
Details
license
version
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

Other KDE 3.5 Themes:

tkdomino
sunman
last update date: 18 years ago

Score 5.0

i almost fainted kde3.2.3 gentoo login
laughinol
last update date: 21 years ago

Score 5.0

X-Dark
MarcP
last update date: 19 years ago

Score 5.0

Sexy-Theme
onkelorm
last update date: 19 years ago

Score 5.0

AquaBlue LittleThick
basta638
last update date: 18 years ago

Score 5.0

Combinated theme
boriskuiit
last update date: 18 years ago

Score 5.0