You are not logged in.

#1 2015-02-11 06:36:53

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Matching Qt theming on non-Gnome GTK desktops

Dear all,

I am currently using a plain Openbox setup. I use lxappearance-gtk3 and lxappearance-obconf-gtk3 to set my GTK and Openbox theming preferences. Amongst other settings:

GTK Theme: Numix Frost Light
Icon Theme: Numix-Square
Default font: Droid Sans Regular 9

These settings are properly recognised by all GTK2 and GTK3 applications.

Subsequently, I used qtconfig-qt4 and set the following settings:

GUI Style: GTK+
Default Font Family: Droid Sans [unknown] (unknown seems to be not the issue [url=https://bbs.archlinux.org/viewtopic.php?pid=1499458#p1499458][1][/url])
Style: Regular
Point Size: 9
No font substitution

Generally, these settings are properly saved in ~/.config/Trolltech.conf:

[Qt]
filedialog="@ByteArray(\0\0\0\xbe\0\0\0\x3\0\0\0\x1e\0\0\0\xff\0\0\0\0\0\0\0\x2\0\0\0`\0\0\xe\0\x1\0\0\0\x4\x1\0\0\0\x1\0\0\0\x2\0\0\0\x5\x66ile:\0\0\0\x15\x66ile:///home/orschiro\0\0\0\x1\0\0\0&\0/\0h\0o\0m\0\x65\0/\0o\0r\0s\0\x63\0h\0i\0r\0o\0/\0T\0\x65\0m\0p\0\0\0&\0/\0h\0o\0m\0\x65\0/\0o\0r\0s\0\x63\0h\0i\0r\0o\0/\0T\0\x65\0m\0p\0\0\0~\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xe5\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\x1\x4\0\0\0\x1\0\0\0\0\0\0\0;\0\0\0\x1\0\0\0\0\0\0\0<\0\0\0\x1\0\0\0\0\0\0\0j\0\0\0\x1\0\0\0\0\0\0\0\x1)"
font="Droid Sans [unknown],9,-1,5,50,0,0,0,0,0"
Palette\active=#555555, #dedede, #ffffff, #cbc7c4, #b9b9b9, #b8b5b2, #333333, #ffffff, #555555, #f9f9f9, #dedede, #ababab, #1a80b6, #f9f9f9, #0000ff, #ff00ff, #e9e9e9, #000000, #ffffdc, #333333
Palette\inactive=#555555, #dedede, #ffffff, #cbc7c4, #b9b9b9, #b8b5b2, #333333, #ffffff, #555555, #f9f9f9, #dedede, #ababab, #1a80b6, #f9f9f9, #0000ff, #ff00ff, #e9e9e9, #000000, #ffffdc, #333333
Palette\disabled=#999999, #dedede, #ffffff, #cbc7c4, #b9b9b9, #b8b5b2, #999999, #ffffff, #999999, #f9f9f9, #dedede, #ababab, #b6b6b6, #f9f9f9, #0000ff, #ff00ff, #e9e9e9, #000000, #ffffdc, #333333
embedFonts=true
style=GTK+
doubleClickInterval=400
cursorFlashTime=1000
wheelScrollLines=3
resolveSymlinks=false
globalStrut\width=0
globalStrut\height=0
useRtlExtensions=false
XIMInputStyle=On The Spot
DefaultInputMethod=xim
audiosink=Auto
videomode=Auto
GUIEffects=none
fontPath=@Invalid()

However, this only properly sets the GTK Theme to Numix in Qt4 apps but keeps the icon theme as well as the fonts at some default settings. Some screenshots:

Spotify not using Droid Sans font
Scrivener not using Numix GTK theme, nor Droid Sans font
Scrivener also not using Numix-Square icon theme
Mendeley not using Droid Sans font

I tried several other things such as changing the settings via lxqt-config-git. However, the settings are not persistently stored. For example, Font hinting style is always reset to slight.

I would appreciate any advice by people who use Openbox and who managed to properly integrate Qt apps with exactly the same settings than their GTK counterparts.

Thank you,

Robert

Offline

#2 2015-02-11 23:19:25

The Infinity
Member
Registered: 2014-07-05
Posts: 92
Website

Re: Matching Qt theming on non-Gnome GTK desktops

These settings are properly recognised by all GTK2 and GTK3 applications.

Unfortunately configuring Qt is much more difficult then configuring GTK.

I used qtconfig-qt4

qtconfig-qt4 only works for Qt 4 applications (I don't know which Qt version the applications from your screenshots use). As far as I know you can not set icons using qtconfig-qt4.

The problem has already been discussed: https://bbs.archlinux.org/viewtopic.php?id=193203
See my last post for a solution. (It has the drawback that Qt 5 applications are not able to show tray icons when using the approach.)

Offline

Board footer

Powered by FluxBB