By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1609

Summary: Pixmap widget style engine is broken on TDE
Product: TDE Reporter: Alex Couture <ac586133>
Component: tdelibsAssignee: Timothy Pearson <kb9vqf>
Status: NEW ---    
Severity: normal CC: 20kth2013.95, ac586133, bugwatch, darrella, fatzer2, kb9vqf
Priority: P5    
Version: R14.0.x [Trinity]   
Hardware: Other   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: Pixmaps pictures not loaded
Kde 3.3.2 with RiscOS pixmap theme working

Description Alex Couture 2013-08-03 21:24:23 CDT
Created attachment 1440 [details]
Pixmaps pictures not loaded

Hi!

I'm currently looking at making work a pixmap-based theme on TDE 3.5.13.2
From what I could understand, during the KDE3 era, pixmap-based themes were deprecated and replaced by programmed themes, which are not based on lots of small images, as it was in KDE2. But, they are said to still work on KDE3.
The point is not especially to use this theme, but to try to create a new one.

Here is the URL of the theme I'm trying to make work on TDE:
http://kde-look.org/content/show.php?content=153&forumpage=16

I adapted the path in the install script to make it point to the TDE folders and I followed the readme file, but the theme appears without its images, which makes it useless and not working...

By looking at the screenshot I provide here, you can see that the pixmaps are not loaded at all and they are replaced by probably stock pictures.

I have seen many pixmap-based themes work in an older KNOPPIX live-cd I have at home. This livecd uses kde 3.3.

Is there someone here who would know how to make it work on TDE?

It doesn't on both 3.5.13.2 and R14

Thank you in advance!
-Alexandre
Comment 1 Darrell 2013-08-04 23:48:52 CDT
Is this a bug report or whish list/enhancement request?
Comment 2 Alex Couture 2013-08-05 17:18:38 CDT
Hi,

It is a bug report because it is something that worked well on older KDE releases.
I guess that it has probably not been tested enough and since not everybody wanted to use pixmaps-based themes, it has not been seen.

The pixmaps aren't loaded. This is probably not something hard to resolve because the structure loads itself, as you can see in the screenshot.

-Alexandre
Comment 3 Alex Couture 2013-08-11 18:22:48 CDT
Funny, but in the theme description/configuration file, it says that it needs basicstyle.la (and probably basicstyle.so, as the other themes) to work, but I tried back my old KNOPPIX livecd where pixmap themes works and the file basicstyle.la is not present...

Does someone have this file somewhere?

-Alexandre
Comment 4 Darrell 2013-08-11 18:49:58 CDT
The only reference I find online is to something called KThemeCreator.
Comment 5 Alex Couture 2013-08-11 19:50:54 CDT
Hi,

I'm pretty sure that the reason why it doesn't work is because the path where TDE expects the pixmaps to be is not the right one. I tried to put the complete path to the pixmaps files, but it looks like it doesn't work! Maybe pixmaps are expected to be in the standard place for kde : /usr/...

It is probably just that either TDE has a bug which makes it unable to load and display the pixmaps, or it doesn't look at the right place.

Since QTCurve probably won't work on R14 because of much bigger issues, it would be nice to have this theme engine in a working state. Look at bug report no 1489

Thanks!
-Alexandre
Comment 6 Darrell 2013-08-11 20:40:31 CDT
Most packages found at kde-look.org that were designed for KDE3 need to have the sources updated or "massaged" into the TQt3 system. That includes fixing various path issues during the configuration and compilation. I don't know to what extent that applies to themes. Probably not much if at all.

Then again, possibly pixmap theme support fell by the proverbial wayside because nobody was using them. So perhaps original code needs to be tweaked for Trinity and perhaps some pixmap related bugs exist too. Possibly pixmap support no longer exists in Trinity. I posted a related query in the developer's mail list.

Now that I wrote those weasel word disclaimers :-), I downloaded the referenced theme archive. The README says to run the install.sh script to install the theme package. I looked at the install.sh script. I see some things that need to change. The install.sh should be updated to at least the following:

==================
#!/bin/bash
if [ "$TDEHOME" = "" ]; then
  TDEHOME=`find ${HOME} -name ".trinity" -type d -maxdepth 1`
fi
if [ "$TDEHOME" = "" ]; then
  echo "Unable to find your \$TDEHOME profile directory (usually \$HOME/.trinity)."
else
  for i in ${TDEHOME}; do
    mkdir -p ${TDEHOME}/share/apps/kstyle/pixmaps/acqua
    mkdir -p ${TDEHOME}/share/apps/kstyle/themes
    mkdir -p ${TDEHOME}/share/apps/twin/icewm-themes/Acqua
    mkdir -p ${TDEHOME}/share/wallpapers
    cp -rf pixmaps/acqua/* ${TDEHOME}/share/apps/kstyle/pixmaps/acqua/
    cp -rf themes/* ${TDEHOME}/share/apps/kstyle/themes/
    cp -rf icewm-themes/Acqua/* ${TDEHOME}/share/apps/twin/icewm-themes/Acqua/
    cp -rf wallpapers/* ${TDEHOME}/share/wallpapers/
    kinstalltheme
  done
  echo "Acqua for TDE installed."
fi
==================

I ran the updated script with no errors. At this point though I don't know what I'm supposed to see that you did not in your original report. I am able to select the theme Risc OS. The widget buttons change. The toolbar icons remains crystalsvg. Just about everything has a black border surrounding widgets, such as toolbars and buttons. What else should I see or not see?
Comment 7 Darrell 2013-08-12 01:35:47 CDT
Something is broken in Trinity.

The tdelibs package installs a set of riscos files in the kstyle/pixmaps directory. Yet the riscos option does not appear in the list of kcontrol styles until after I install the acqua-3.2 files. Then both options finally appear in the drop-down list.

I tested this on my 3.5.10 virtual machine and saw the same results. Neither option appeared in kcontrol until after installing the acqua-3.2 files.

The pixmaps were broken in 3.5.10 too.

Something does not get initialized correctly when installing tdelibs or creating a new profile. That tdelibs still installs those files means at least that much should function correctly. I opened konsole and manually ran kinstalltheme. Then the riscos option appeared in kcontrol (although the pixmaps still did not load).

I tested this with a new profile and accepted all the defaults of kpersonalizer. Once again riscos does not appear in the list until manually running the kinstalltheme command.

Looks like two problems here:

1. The original report: the pixmaps never appear.

2. kinstalltheme does not get run at any time during installation or new user profile setup.
Comment 8 Alex Couture 2013-08-12 08:46:10 CDT
Yes, I adapted too the install script before I ran it on my computer,so that the files could go at the right place. By looking at the configuration file of the theme, I can see that it probably does not need modification. 

If what you see when you select ''Riscos'' theme is like what you you can see in the screenshot I provided, then you get the same result as me. The Riscos has a more marble-like background and buttons, you can look at the pixmaps to get an idea of what it is supposed to be.

Just a little detail on something that has been written on the dev. mailing list: Keramik is not a pixmap-based theme. Actually, the themes that are working on TDE are all programmed theme.

-Alexandre
Comment 9 Alex Couture 2013-08-12 08:59:09 CDT
Created attachment 1459 [details]
Kde 3.3.2 with RiscOS pixmap theme working

I have a KNOPPIX 3.8 live CD at home. Possibly my first linux cd...
It runs KDE 3.3.2 and pixmaps themes works on it.

Do you want me to upload it on filefactory, so that testing could be done on it?

-Alexandre
Comment 10 Darrell 2013-08-12 14:04:50 CDT
Upload a CD if you wish. Posting some screen shots here in the bug report would help.
Comment 11 Alex Couture 2013-08-13 17:09:56 CDT
Hi,

Here is the link to the KNOPPIX CD:
http://www.filefactory.com/file/5qzedtzxfte3/knoppix.iso

The 2 attachments to the bug report are screenshots. The first one is on PCLinuxOS with 3.5.13.2 and the second one is on KNOPPIX with 3.3.2

Thanks!
-Alexandre
Comment 12 Darrell 2013-08-13 17:59:41 CDT
I'm not one of the project code gurus, but hopefully that additional information helps. :-)
Comment 13 Alex Couture 2014-11-21 12:26:56 CST
Maybe one day this one will get some attention!

Have a nice day!
-Alexandre
Comment 14 Timothy Pearson 2014-11-21 14:29:06 CST
(In reply to Alex Couture from comment #13)
> Maybe one day this one will get some attention!
> 
> Have a nice day!
> -Alexandre

I would like to work on this but as it isn't a regression in TDE from KDE 3.5.10 it's pretty much been pushed to the bottom of the list until all the regressions are fixed and some of the more recent breakage (think compressed PPDs, logind, etc.) has been fixed.
Comment 15 Alex Couture 2014-11-21 16:02:28 CST
Hi,

There is no problem with that. I understand that it is not even an issue and it certainly don't need to be present in R14. Only if one day someone really has a lot of time to loose :)

-Alexandre
Comment 16 Alex Couture 2015-01-12 13:09:47 CST
Hi,

Do you think that on of the actual theme engine could be modified to get its widgets ''parts'' from png files in a folder?
By this, I'm talking about maybe the gtk2 or the new gtk3 theme engine.

Thank you!
-Alexandre