gorinxx writes

Hi! I use a dark theme for KDE 5. So usually I see a light font at dark gray background. But I have a black font at qt theme specified dark gray background when use an HTML result list. Using a table view of search results gives me my usual light colored font. I can’t find a way to change font color of results.

medoc writes

See the following link for how to insert code in the result list html page header: https://www.lesbonscomptes.com/recoll/custom.html

For exemple:

----` <style type="text/css" > html { color: white; } </style >

----`

gorinxx writes

Yep, with inserted to html header of result list it became specified color. Thanks! But may it will be better to use DE theme font by default? And changes of DE color theme will have immediate result.

medoc writes

Yes, it would be nice to have an automatic translation of desktop styles to webkit/html/css styles, but no such thing exists. That’s one of the main drawbacks of using a hybrid desktop widget / HTML app. The nice point though is that the result list is much easier to customize this way than if you had to deal with Qt code…

gorinxx writes

Anyway thanks a lot for your help. I didn’t guessed by myself about HTML header. Do you know a way to get it from Qt app by Javascript? Excuse me if my question seems foolish.

medoc writes

The question is certainly not foolish, and this would be a very nice way to automate the configuration.

The Javascript in the HTML page and the qt widgets can communicate, see for example this Qt documentation page: http://doc.qt.io/qt-4.8/qtwebkit-bridge.html

You should know too that Qt is transitionning from webkit to webview (which is based on google chrome code), and that the methods of communication between the widget side and the javascript side are very different in webview, so that the work would have to be done again.

I am trying to stay with webkit as long as possible, because I find it easier to use…

medoc writes

Set to wontfix not because I think that this is not a valid request, but because I think that it’s too difficult for me given my poor grasp of style issues.