You are not logged in.

#21 2017-09-07 18:11:46

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: QT theming

johnraff wrote:

Install:
qt5-style-plugins
libqt5svg5

Edit the "for qt5 apps" section of ~/.xsessionrc thus:

# for qt5 apps
#export QT_STYLE_OVERRIDE=GTK+
export QT_QPA_PLATFORMTHEME=gtk2

This works for the icons but not the theme, weirdly  hmm

2017-09-07-190515_1920x1080_scrot.th.png

Changing the theme (directly or with lxappearance) does not alter the application's appearance, even after a restart.

Offline

#22 2017-09-08 01:51:46

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,560
Website

Re: QT theming

^Hmm that's strange, and disappointing. You are testing on Debian Stretch, right? No backported QT libraries?

In the interests of science I installed kwrite on my Helium test VM - it brought in a huge list of dependencies - and ran it. Apart from the same icon error messages you got, no issues, and the theming matched my GTK setting. Both gtk themes and icon themes could be changed on the fly with lxappearance, just like qupzilla and jeffed:
OPXeiaCm.png

Is there something different in your environment? Here's my 'env':

john@helium-net:~$ env
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
TERMINATOR_UUID=urn:uuid:26117e66-25a0-41b9-b2f6-7ffbf5eb911f
LANG=en_GB.UTF-8
DISPLAY=:0
GTK_CSD=0
COLORTERM=truecolor
XDG_VTNR=7
SSH_AUTH_SOCK=/tmp/ssh-vtpd8mIQ53wh/agent.1580
XDG_SESSION_ID=2
XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/john
USER=john
DESKTOP_SESSION=lightdm-xsession
QT_QPA_PLATFORMTHEME=gtk2
PWD=/home/john
HOME=/home/john
SSH_AGENT_PID=1656
QT_ACCESSIBILITY=1
XDG_SESSION_TYPE=x11
XDG_SESSION_DESKTOP=lightdm-xsession
TERM=xterm-256color
SHELL=/bin/bash
VTE_VERSION=4601
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_CURRENT_DESKTOP=XFCE
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
SHLVL=1
XDG_SEAT=seat0
LANGUAGE=en_GB:en
GDMSESSION=lightdm-xsession
LOGNAME=john
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
XAUTHORITY=/home/john/.Xauthority
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
PATH=/home/john/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
LD_PRELOAD=libgtk3-nocsd.so.0
_=/usr/bin/env

...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#23 2017-09-08 06:12:01

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: QT theming

johnraff wrote:

You are testing on Debian Stretch, right? No backported QT libraries?

Yes, it's a (relatively) fresh debootstrap+bunsen-netinstall Helium-dev system.

I must have molested it in some significant way, I will check out the `env` output and probably re-install anyway tonight.

Offline

#24 2017-09-08 06:39:08

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: QT theming

Head_on_a_Stick wrote:

I will check out the `env` output and probably re-install anyway tonight.

Had time to check now and everything actually works, I have no idea what I was doing wrong before, sorry for the noise.

Mandatory scrot:

2017-09-08-073627_1920x1080_scrot.th.png

Very well done with this John, excellent work  cool

Off topic: isn't kwrite lovely? Move to make it the default editor?   8o

Offline

#25 2017-09-08 07:33:24

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,560
Website

Re: QT theming

Head_on_a_Stick wrote:

everything actually works

Phew!

Off topic: isn't kwrite lovely?

Haven't tried to do anything with it to be honest. What's it actually for?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#26 2017-09-24 19:12:27

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: QT theming

Steve wrote:

^ steve, i followed the github instructions to build notepadqq on debian 9 if that helps. Doesnt follow the gtk theme though, it uses the default adwaita theme, roots theme? I will have to have a look at that Kvantum program, looks interesting, cheers.

Also notpadqq comes with a heap of different colour schemes, like over 20 or more.

https://github.com/notepadqq/notepadqq


Are you still using notepadqq? Or someone else maybe?

I'm just asking because I tried to compile it and it works, however I'm not sure why I'm missing some menus like the plugins menu...

Offline

#27 2017-09-24 22:21:06

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,740

Re: QT theming

Kwrite does look awesome, font rendering is way better than say geany (And it actually understands I'd like light version of font), but lacks line-height setting and obviously tabs (No I don't want kate)
notepadqq is quite awesome, has tabs and has line-height settings and font rendering is great, but seems to be missing mini-map.

Last edited by brontosaurusrex (2017-09-24 22:28:00)

Offline

#28 2017-09-24 23:35:12

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: QT theming

I could not find how to do the following with geany: Insert line numbers IN the code. There is an easy way to do it with notepadqq (but it did not work for me). Did not want to use Writer for this task. I still don't know what would be the best way to do this (in the end I just found on online tool...).

Offline

#29 2017-09-25 00:03:29

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,740

Re: QT theming

There is 'nl' cli tool.

Offline

#30 2017-09-25 00:20:47

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: QT theming

^Thank you @brontosaurusrex, did not know about this tool. It's all about line numbers, just what I was looking for.

Offline

Board footer

Powered by FluxBB