This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Make KDE themes "patchable"

1

Votes
5
4
Tags: None
(comma "," separated)
Lukas
Registered Member
Posts
427
Karma
0

Make KDE themes "patchable"

Sat Apr 18, 2009 1:46 pm
By now all KDE apps user the same style, usually it is OK, but sometimes I would like to have some apps different look, e.g. dolphin etc. have light backgrounds, and amarok - dark. As far as I now its impossible to do so.

My Idea is make user be able to use more than one theme at the moment.

Imagine KDE is programed in xhtml + css (I now xhtml well so thats why I chose it :D)

simple app would look like
Code: Select all
 Simple app

 
   File   edit   view etc..
 
  toolbar content
more content


main_theme.css:

Code: Select all
#menu li { background: light-background }
and so on


but if we would add a class selector to body tag (many classes, so we could style the whole group at once)

Code: Select all
 Super Music Player

 
   File   edit   view etc..
 
  toolbar content
more content



If we have just main-theme.css, nothing changes, but IF we add super-music-player.css / pacth main-theme.css with something like this ( in html just by adding one more link tag )

Code: Select all
.X-super-music-player #menu li { background: dark-background; color: white}
and so on


we would have All app looking as default theme says and Super Music player with dark elements.



I don't know if this is possible at all due to kde structure, but If it is possible this would finally stop the conflict like "I want amarok themable vs. simplicity is key to KDE". If you like everything look the same just don't use it ;)
User avatar
plaristote
Registered Member
Posts
114
Karma
0
OS

RE: Make KDE themes "patchable"

Mon Apr 20, 2009 12:07 am
I don't know if I understand well the idea...
You want to make it possible to have different themes for different application ?

Like Oxygen for Amarok and Plastik for Dolphin ?
It would probably be possible (not long ago, VLC and Scribus where using a different theme than the others KDE4 apps). Maybe heavy, but possible.

And it would be nice so.
It could be integrated in the special conf of each windows. Wouldn't be nice to chose a different Qt theme and/or a different color theme for each applications ?
User avatar
Alec
Registered Member
Posts
565
Karma
1
OS

RE: Make KDE themes "patchable"

Mon Apr 20, 2009 12:33 am
plaristote wrote:Like Oxygen for Amarok and Plastik for Dolphin ?
It would probably be possible (not long ago, VLC and Scribus where using a different theme than the others KDE4 apps). Maybe heavy, but possible.


Actually you can do it by:

dolphin --style plastique

:D


Get problems solved faster - get reply notifications through Jabber!
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS

RE: Make KDE themes "patchable"

Mon Apr 20, 2009 12:38 am
plaristote wrote:It would probably be possible (not long ago, VLC and Scribus where using a different theme than the others KDE4 apps). Maybe heavy, but possible.


I'm not sure if this makes a difference, but neither of those are KDE4 apps. They're Qt4 apps.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
Lukas
Registered Member
Posts
427
Karma
0

RE: Make KDE themes "patchable"

Mon Apr 20, 2009 7:36 pm
Alec wrote:Actually you can do it by:

dolphin --style plastique

:D

basically this could fit, but it isn't user friendly way. How many users knows how to start app by console (I mean non geeks users ;)). Some GUI would be great :D
Solardeity
Registered Member
Posts
12
Karma
0
OS

RE: Make KDE themes "patchable"

Wed Apr 29, 2009 6:44 am
Lukas wrote:
Alec wrote:Actually you can do it by:

dolphin --style plastique

:D

basically this could fit, but it isn't user friendly way. How many users knows how to start app by console (I mean non geeks users ;)). Some GUI would be great :D


u could just edit the command, just go on the K-Menu Icon, rightclick and choose MenuEditor ... Then u pick out your app and under command you put --style plastique

Or u could edit the .desktop files to do so too.... no need to allways start your app on a konsole..


Solardeity, proud to be a member of KDE forums since 2008-Oct.
User avatar
NoobSaibot
Registered Member
Posts
73
Karma
0
OS

RE: Make KDE themes "patchable"

Wed Apr 29, 2009 7:02 am
as it is possible to style an application to a certain degree with CSS it'd be a matter of implementation on KDE side to make it possible to define user CSS. however, afai there's no way to have an application specific rule like "amarok { background: yellow; }".

Last edited by NoobSaibot on Wed Apr 29, 2009 7:02 am, edited 1 time in total.


NoobSaibot, proud to be a member of KDE forums since 2008-Oct.
User avatar
plaristote
Registered Member
Posts
114
Karma
0
OS

RE: Make KDE themes "patchable"

Wed Apr 29, 2009 5:00 pm
Change the command is not user-friendly.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]