You are not logged in.

#1 2020-01-31 18:27:53

xerxes_
Member
Registered: 2018-04-29
Posts: 304

[SOLVED] Okteta: hex&ascii strings unreadable and can't change colors

Most hex and ascii strings displayed in okteta are not readable for me, because they are very bright blue/grey on white background. Only some values are more dark blue (and yes, I know why they are this: color is displayed according value range).

What I don't understand is why somebody choose some hard to read colors and why I can not change them (and change background to for example black).

That makes okteta unusable for me (too bad, because it would be good hex editor).

Last edited by xerxes_ (2020-02-03 20:02:45)

Offline

#2 2020-01-31 19:53:03

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,076
Website

Re: [SOLVED] Okteta: hex&ascii strings unreadable and can't change colors

Okteta is a qt5 app, it's presentation depends on the theme you have set for Qt.

See https://wiki.archlinux.org/index.php/Qt#Appearance


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2020-02-01 00:53:03

xerxes_
Member
Registered: 2018-04-29
Posts: 304

Re: [SOLVED] Okteta: hex&ascii strings unreadable and can't change colors

I had in .bashrc.aliases file lines:

export QT_STYLE_OVERRIDE=gtk
export QT_SELECT=qt5

and changed gtk to gtk2, installed breeze-gtk and breeze-icons. My previous output from terminal when starting okteta is here: https://bbs.archlinux.org/viewtopic.php?id=252546

Now my output is:

kf5.kservice.services: KServiceTypeTrader: serviceType "TerminalEmulator" not found
kdeinit5: preparing to launch '/usr/lib/kf5/klauncher'
kdeinit5: Launched KLauncher, pid = 110635, result = 0
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdeinit5: opened connection to :0
kdeinit5: Got EXEC_NEW '/usr/lib/qt/plugins/kf5/kio/file.so' from launcher.
kdeinit5: preparing to launch '/usr/lib/qt/plugins/kf5/kio/file.so'
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kdeinit5: PID 110638 terminated.
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
register count: 0, destroy count: 0

'kf5.kxmlgui: Index  10  is not within range (0 -  9 )' is when I create/switch to tab which new/other file, 'register count: 0, destroy count: 0' when okteta is closed.

The most important is that I switch and checked all qt5 styles by -style option runed with okteta and it doesn't change colors of displayed hex & ascii strings (I still can't read it all, no change to this problem).

Offline

#4 2020-02-01 13:09:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 11,168

Re: [SOLVED] Okteta: hex&ascii strings unreadable and can't change colors

You will want to use qt5ct to change the theme and more importantly the applied color scheme on non KDE/GNOME platforms: https://wiki.archlinux.org/index.php/Qt … KDE_Plasma

Also does the existence of this imply you managed to solve your original issue in the other thread? please mark that one as solved.

Offline

#5 2020-02-02 22:20:27

xerxes_
Member
Registered: 2018-04-29
Posts: 304

Re: [SOLVED] Okteta: hex&ascii strings unreadable and can't change colors

I set environment variable QT_QPA_PLATFORMTHEME="qt5ct" and run okteta with paramiter '--platformtheme qt5ct' to test how it would be when I would set it and it even went worse - no hex and ascii string was visible. Here is console output:

QFont::fromString: Invalid description '(empty)'
QFont::fromString: Invalid description '(empty)'
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
Invalid Context= "Panel" line for icon theme:  "/usr/share/icons/Numix/16/panel/"
Invalid Context= "Panel" line for icon theme:  "/usr/share/icons/Numix/16@2x/panel/"
Invalid Context= "Panel" line for icon theme:  "/usr/share/icons/Numix/22/panel/"
Invalid Context= "Panel" line for icon theme:  "/usr/share/icons/Numix/22@2x/panel/"
Invalid Context= "Panel" line for icon theme:  "/usr/share/icons/Numix/24/panel/"
Invalid Context= "Panel" line for icon theme:  "/usr/share/icons/Numix/24@2x/panel/"
Invalid Context= "Notifications" line for icon theme:  "/usr/share/icons/Numix/48/notifications/"
Invalid Context= "Notifications" line for icon theme:  "/usr/share/icons/Numix/48@2x/notifications/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/8x8/legacy/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/16x16/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/16x16/ui/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/22x22/legacy/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/24x24/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/24x24/ui/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/32x32/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/32x32/ui/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/48x48/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/48x48/ui/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/256x256/legacy/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/512x512/legacy/"
Invalid Context= "Legacy" line for icon theme:  "/usr/share/icons/Adwaita/scalable/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/scalable/ui/"
kf5.kservice.services: KServiceTypeTrader: serviceType "TerminalEmulator" not found
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::end: Painter not active, aborted
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::end: Painter not active, aborted
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::end: Painter not active, aborted
kf5.kxmlgui: Index  10  is not within range (0 -  9 )
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::end: Painter not active, aborted
register count: 0, destroy count: 0

And no, I didn't resolve open file problem with okteta from other thread. I think I will abandon that program with all that graphical and functional mess and use other prog. It's waste of time and hopeless fight.

Last edited by xerxes_ (2020-02-02 22:21:31)

Offline

#6 2020-02-03 10:32:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 11,168

Re: [SOLVED] Okteta: hex&ascii strings unreadable and can't change colors

You have to configure the relevant settings in qt5ct beforehand...

Offline

#7 2020-02-03 19:59:11

xerxes_
Member
Registered: 2018-04-29
Posts: 304

Re: [SOLVED] Okteta: hex&ascii strings unreadable and can't change colors

I set up environment variable QT_QPA_PLATFORMTHEME=qt5ct, remove QT_STYLE_OVERRIDE=gtk2 and QT_SELECT=qt5, relogin to get rid old environment variables, done setup qt5ct, run okteta and then it worked! (previously I didn't remove QT_STYLE_OVERRIDE and QT_SELECT, so there were variables conflict). I saw BIG hex and ascii strings that were somewhat more visible: because there were BIG and on not so much white background.

So I can mark thread as solved (for now I don't expect it to be better). Maybe in future there will be options to change colors of strings and background, like in windows hex editor HxD2 (which I can recommend if someone use windows).

Last edited by xerxes_ (2020-02-03 20:44:21)

Offline

Board footer

Powered by FluxBB