Bug 435645 - Default GTK toolbar-style is inappropriately set to 'text'; should be "both-horiz"
Summary: Default GTK toolbar-style is inappropriately set to 'text'; should be "both-h...
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_style (show other bugs)
Version: 5.21.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-12 09:15 UTC by Sadi
Modified: 2021-04-14 15:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
meld text-only toolbar (21.03 KB, image/jpeg)
2021-04-12 09:15 UTC, Sadi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sadi 2021-04-12 09:15:42 UTC
Created attachment 137522 [details]
meld text-only toolbar

SUMMARY
I noticed this in Meld, which displayed a text-only toolbar while all other components had icons.

STEPS TO REPRODUCE
1. Start a Live Session of KDE neon or a freshly installed system.
2. Install Meld comparison utility.
3. Select 2 appropriate text files and compare them by Meld.

OBSERVED RESULT
Meld main window toolbar display only text: New Comparison..., Save, Undo, Redo, Previous Change, Next Change and so on.

EXPECTED RESULT
Toolbar should have icons as well.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I've discovered that this is caused by wrong default GTK configuration in KDE neon, which cannot be changed by the user through System Settings. The only way is to enter this command in terminal: gsettings set org.gnome.desktop.interface toolbar-style 'both'
Under Ubuntu 20.04 LTS, the output of "gsettings get org.gnome.desktop.interface toolbar-style" is "both-horiz".
Furthermore the output of "sudo get org.gnome.desktop.interface [cursor-theme|icon-theme|gtk-theme] is "Adwaita" (both in Ubuntu 20.04 and KDE neon) which might also need to be changed.
It seems it could be a good idea to include this and perhaps a couple of other settings somewhere in System Settings.
Comment 1 Nate Graham 2021-04-13 14:54:03 UTC
Does it get fixed if you go to System Settings > Appearance > Application Style > Configure Gnome/GTK Application Style > Set "GTK Theme" to anything else and then back to Breeze?
Comment 2 Sadi 2021-04-13 15:25:54 UTC
(In reply to Nate Graham from comment #1)
> Does it get fixed if you go to System Settings > Appearance > Application
> Style > Configure Gnome/GTK Application Style > Set "GTK Theme" to anything
> else and then back to Breeze?

No. It doesn't.
Comment 3 Nate Graham 2021-04-13 17:44:33 UTC
And it only affects Meld? Any other GTK apps?
Comment 4 Sadi 2021-04-14 09:03:00 UTC
(In reply to Nate Graham from comment #3)

> And it only affects Meld? Any other GTK apps?

I'm afraid I cannot answer that properly. It seems GTK apps get their toolbar icons in all sorts of ways. Those I have in addition to Meld are only LibreOffice, Firefox, Thunderbird and Inkscape (I'm not even sure if all of them can be called GTK apps), and they all seem to include their own toolbar icons - so are not affected by this at all.

I tested Synaptic in a Live Session of KDE neon, and it produced contradictory results when started as user, and as root.
Same toolbar-style: Synaptic seems to enforce its own rule for toolbar-style, which is both (vertical).
Different Icons: When started as user it uses Breeze icons, but when started as root, it apparently uses hicolor or gnome icons. This is because default gettings for root are set wrong both in Ubuntu and KDE neon (Adwaita).
Comment 5 Nate Graham 2021-04-14 14:54:01 UTC
$ gsettings get org.gnome.desktop.interface toolbar-style
'text'

Can confirm. I guess we should be setting this automatically as well
Comment 6 Sadi 2021-04-14 15:29:17 UTC
Please also consider changing the default gsettings below
in addition to "gsettings get org.gnome.desktop.interface toolbar-style" : 'text'

sudo gsettings get org.gnome.desktop.interface cursor-theme : 'Adwaita'
sudo gsettings get org.gnome.desktop.interface gtk-theme : 'Adwaita'
sudo gsettings get org.gnome.desktop.interface icon-theme : 'Adwaita'