Recent

Author Topic: [SOLVED] GTK3 : Icons have borders. Is this a bug or for debugging ?  (Read 5278 times)

Schmitty2005

  • Jr. Member
  • **
  • Posts: 65
When Lazarus trunk is built with GTK3, there are borders around all of the icons in the IDE.  Some grey, some green, and multiple but not all, highlight green when pressed.  They may be 1, 2 or maybe 3 pixels wide.

Is this a bug  ?  A debug feature ? A Configuration issue ?

Please see attached pic.
« Last Edit: March 15, 2026, 08:55:41 pm by Schmitty2005 »

zeljko

  • Hero Member
  • *****
  • Posts: 1906
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #1 on: March 13, 2026, 11:44:27 am »
Wayland ?

Thaddy

  • Hero Member
  • *****
  • Posts: 18970
  • Glad to be alive.
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #2 on: March 13, 2026, 01:21:56 pm »
More like transparency pixel?
Taken from pixel 0,0 or alternatively may be taken from pixel width,height
« Last Edit: March 13, 2026, 01:24:55 pm by Thaddy »
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1946
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #3 on: March 13, 2026, 01:55:45 pm »
Great job, Zeljko!
The buttons aren't flat on my system either, but I don't see any colored borders (X11).
Here's what it looks like right now:


Schmitty2005

  • Jr. Member
  • **
  • Posts: 65
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #4 on: March 13, 2026, 11:31:58 pm »
Wayland ?

This is on Xorg / X11.  Same issue occurs in Wayland also.

Code: Bash  [Select][+][-]
  1. $ lspci | grep -i vga
  2.  
  3. 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
  4.  

Code: Bash  [Select][+][-]
  1. $ sudo lshw -C display
  2.  
  3.   *-display                
  4.        description: VGA compatible controller
  5.        product: Haswell-ULT Integrated Graphics Controller
  6.        vendor: Intel Corporation
  7.        physical id: 2
  8.        bus info: pci@0000:00:02.0
  9.        logical name: /dev/fb0
  10.        version: 09
  11.        width: 64 bits
  12.        clock: 33MHz
  13.        capabilities: msi pm vga_controller bus_master cap_list rom fb
  14.        configuration: depth=32 driver=i915 latency=0 resolution=1366,768
  15.        resources: irq:48 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff
  16.  
« Last Edit: March 13, 2026, 11:35:03 pm by Schmitty2005 »

tetrastes

  • Hero Member
  • *****
  • Posts: 761
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #5 on: March 14, 2026, 12:25:07 pm »
Note that green borders are around disabled buttons.

Schmitty2005

  • Jr. Member
  • **
  • Posts: 65
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #6 on: March 14, 2026, 01:02:16 pm »
Note that green borders are around disabled buttons.

They also toggle when I hover the mouse over them.  The icons without a border get a green border while hovering over icon.  The icons with a green border do not change.

This happens in Gnome Desktop and XFCE on X11 and Wayland.

cdbc

  • Hero Member
  • *****
  • Posts: 2726
    • http://www.cdbc.dk
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #7 on: March 14, 2026, 04:05:27 pm »
Hey Schmitty
AFAIK XFCE is based in GTK, but could you check if it is GTK3 or GTK4 it uses?
The reason for my asking is, I've seen something similar in QT5/6, when the application was compiled for QT5, but run on QT6 -- produced strange artifacts...  %)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Schmitty2005

  • Jr. Member
  • **
  • Posts: 65
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #8 on: March 14, 2026, 06:46:37 pm »
Hey Schmitty
AFAIK XFCE is based in GTK, but could you check if it is GTK3 or GTK4 it uses?
The reason for my asking is, I've seen something similar in QT5/6, when the application was compiled for QT5, but run on QT6 -- produced strange artifacts...  %)
Regards Benny
Good question. 

XFCE is using GTK3.
GNOME is v46 (probably GTK4) in a snap package (ubuntu)
 

zeljko

  • Hero Member
  • *****
  • Posts: 1906
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #9 on: March 14, 2026, 10:43:51 pm »
Note that green borders are around disabled buttons.

They also toggle when I hover the mouse over them.  The icons without a border get a green border while hovering over icon.  The icons with a green border do not change.

This happens in Gnome Desktop and XFCE on X11 and Wayland.

Maybe your stealing focus settings are setted up to focus on mouse over.

AmatCoder

  • Jr. Member
  • **
  • Posts: 78
    • My site
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #10 on: March 15, 2026, 07:49:59 am »
This issue is theme-dependent.

You can reproduce it with:
Code: [Select]
$ GTK_THEME=Adwaita ./lazarus

Adwaita is the default GTK3 theme.

Schmitty2005

  • Jr. Member
  • **
  • Posts: 65
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #11 on: March 15, 2026, 01:45:04 pm »
This issue is theme-dependent.

You can reproduce it with:
Code: [Select]
$ GTK_THEME=Adwaita ./lazarus

Adwaita is the default GTK3 theme.

Yes, this is also confirmed on my system.  GTK_THEME=Numix works for me and removes the green lines,  but GTK_THEME=Greybird shows that same green lines.

You have narrowed down the issue.  Thank you!

zeljko

  • Hero Member
  • *****
  • Posts: 1906
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #12 on: March 15, 2026, 06:08:13 pm »
This issue is theme-dependent.

You can reproduce it with:
Code: [Select]
$ GTK_THEME=Adwaita ./lazarus

Adwaita is the default GTK3 theme.

Fixed in trunk. For all themes.

Schmitty2005

  • Jr. Member
  • **
  • Posts: 65
Re: GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #13 on: March 15, 2026, 08:43:28 pm »
This issue is theme-dependent.

You can reproduce it with:
Code: [Select]
$ GTK_THEME=Adwaita ./lazarus

Adwaita is the default GTK3 theme.

Fixed in trunk. For all themes.

Yes. Working here.  Thank you!

wp

  • Hero Member
  • *****
  • Posts: 13486
Re: [SOLVED] GTK3 : Icons have borders. Is this a bug or for debugging ?
« Reply #14 on: March 16, 2026, 12:13:29 pm »
I still see the borders (OpenSUSE KDE/X11, Mint XFCE/X11, Ubuntu GNOME/wayland)

 

TinyPortal © 2005-2018