[BUG REPORT]Toolbutton is not working properly at ubuntu-gnome lazarus / 1-Linux ---------------------------------------------------------------------- gasensor · 2024-06-18 08:25 Toolbutton is not working properly at ubuntu-gnome 22.04LTS  24.04LTS (Probably all ubuntu have this kind of problem). When Toolbutton in tbsCheck mode, users cannot distinguish between up and down states. Lazarus 2.2.6 /3.4 (Tested, same problem) append a test project. ---------------------------------------------------------------------- MarkMLl · 2024-06-18 13:06 What happens if you use Lazarus/LCL downloaded from /this/ project, i.e. to avoid the possibility of an Ubuntu-specific problem? If it fails, then report it on the FPC/Lazarus bugtracker. If it doesn't fail, report it to the Ubuntu maintainers. In either case, append a test project. MarkMLl ---------------------------------------------------------------------- gasensor · 2024-06-18 20:19 A test project has been added. Due to attachment size limitations, there are no executable files. The same executable runs fine on Linux MX23.3 Does such an issue still need to be submitted to ubuntu? I don't know. ---------------------------------------------------------------------- MarkMLl · 2024-06-18 20:35 Quote from: gasensor on June 18, 2024, 10:19:31 pmA test project has been added. Due to attachment size limitations, there are no executable files. The same executable runs fine on Linux MX23.3 That sounds like it's probably an Ubuntu issue. However the thing to consider here is that Ubuntu and MX (whatever that is- sorry) probably use different window managers and my guess is that one is using Wayland and the other X11. So you really do need to test like-against- like hence... [/quote] Does such an issue still need to be submitted to ubuntu? I don't know. [/quote] Look, I'm going to be blunt but not unfriendly. OK? It was made clear to you in another thread that this project is not responsible for what happens when an Ubuntu (or Debian et al.) package maintainer builds it for operation with their distributed libraries. I'm not an Ubuntu user so can't usefully test it: do what I said and build yourself copies of FPC and Lazarus from this project's repositories (or at least use FpcUpgradeDeluxe to do so). Having done that you can decide whether to use Ubuntu's or Lazarus's bug reporting facility. Please don't assume that merely raising it on a discussion forum will lay it in front of the relevant developers in a way that- in theory at least- obliges them to do something about it ;-) MarkMLl ---------------------------------------------------------------------- gasensor · 2024-06-18 21:27 I tested lazarus3.99 (form gitlab Branche main) with the same issue. Considering Ubuntu's share of Linux, and the fact that he is the father/grandfather of numerous distros, be cautious. QuoteIt was made clear to you in another thread that this project is not responsible for what happens when an Ubuntu (or Debian et al.) package maintainer builds it for operation with their distributed libraries. Using the Lazrus name/logo, users will think that this is Lazarus official... If the IDE isn't working properly, it's the reputation of Lazarus that is being damaged, not ubuntu (or other distributions). Can you imagine that I found so many problems just to write a multi- platform software for electronics and do some testing? ---------------------------------------------------------------------- TRon · 2024-06-18 22:37 Quote from: gasensor on June 18, 2024, 11:27:15 pmConsidering Ubuntu's share of Linux, and the fact that he is the father/grandfather of numerous distros, be cautious. The choices Ubuntu maintainers make are their responsibility not ours. Pushing wayland though user's throats, at this stage, is a very bad choice no matter how you look at it. QuoteUsing the Lazrus name/logo, users will think that this is Lazarus official... If the IDE isn't working properly, it's the reputation of Lazarus that is being damaged, not ubuntu (or other distributions). You still seem to be missing the point trying to put something of a blame somewhere where it doesn't belong. QuoteCan you imagine that I found so many problems just to write a multi-platform software for electronics and do some testing? That you lack the knowledge to setup cross-compilation and/or build the compiler and IDE (from source) is your responsibility. Instead of asking how to do get yourself acquainted to these things you keep deflecting by trying to push the responsibility to our developers using your choice of distribution (and their decisions) as an argument. I truly believe that your motivation is to lift the experience to a higher level but your approach isn't working, at least not for me. https://www.youtube.com/watch?v=MStoUfrsCig ---------------------------------------------------------------------- MarkMLl · 2024-06-19 07:42 Quote from: gasensor on June 18, 2024, 11:27:15 pmI tested lazarus3.99 (form gitlab Branche main) with the same issue. In that case use Lazarus's bug tracker, and I suggest appending a test program. QuoteConsidering Ubuntu's share of Linux, and the fact that he is the father/grandfather of numerous distros, be cautious. Not relevant, and you'll make yourself unpopular pushing that. QuoteUsing the Lazrus name/logo, users will think that this is Lazarus official... If the IDE isn't working properly, it's the reputation of Lazarus that is being damaged, not ubuntu (or other distributions). Not relevant, and you'll make yourself unpopular pushing that. QuoteCan you imagine that I found so many problems just to write a multi-platform software for electronics and do some testing? I sympathise, there's a lot of things about open source projects that leave me deeply frustrated, but you will find it far more useful to focus on laying the issue in front of the people who have some chance of fixing it. Final questions for consideration: * If you're using the GTK2 widget set, what happens if you switch to Qt? * Is your system using Wayland rather than X11? * Can you switch to X11 without major disruption? * What happens if you use the most recent Ubuntu rather than one which is a couple of years old? MarkMLl ---------------------------------------------------------------------- dsiders · 2024-06-19 16:59 Quote from: MarkMLl on June 19, 2024, 09:42:09 am* What happens if you use the most recent Ubuntu rather than one which is a couple of years old? You forgot one: * What happens if you install from Lazarus provided .debs, .rpms, or from source instead of blindly using the broken crap provided in Debian packaging? ---------------------------------------------------------------------- MarkMLl · 2024-06-19 17:16 Quote from: dsiders on June 19, 2024, 06:59:55 pmYou forgot one: * What happens if you install from Lazarus provided .debs, .rpms, or from source instead of blindly using the broken crap provided in Debian packaging? He's already said that he's tried one from Gitlab main, which I think narrows it down considerably. Although he's not confirmed explicitly that Ubuntu's using Wayland, I think that has to be the first suspect. But realistically, particularly if he can confirm that the most recent Ubuntu's got the same problem, I think it's an LCL/widgetset issue. I can't say that I'm at all happy with the situation. Looking at it more generally, it might be that apps in general (i.e. not just those written using Lazarus and the LCL) will have to refrain from some of the "cleverness" they're used to which make GUIs built with Windows and X11 cleverly pretty. MarkMLl ---------------------------------------------------------------------- dbannon · 2024-06-20 00:44 He is using Wayland, but back in U22.04 it was relatively unobtrusive. Recent Gnome releases often have only two themes out of the box, dark and almost dark. Heavy black title bars and zero width borders. Well behaved gtk2 lazarus apps use only the colors from the current theme, while theme sets typically have ten or more possible colors, in Gnome in particular, most of those colors are the same. And dark. So, a black rectangle on a black background with zero width borders .... Gnome is keen to 'simplify' the UI. Canonical is still pining for Unity, an OS designed for a phone, so, rich widget sets like we love in Lazarus, depending on detail, are just not catered for. gasensor, try Mate, Budgie, Cinnamon, XFCe etc. Not only will your Widget sets look better but your negative mood may improve as well. Davo edit: typo (mood v mode) ---------------------------------------------------------------------- gasensor · 2024-06-20 21:58 Same issue at ubuntu 24.04LTS ---------------------------------------------------------------------- dsiders · 2024-06-20 22:40 Don't feed the troll. ---------------------------------------------------------------------- gemy · 2024-06-25 09:23 Hi, i am using Linux Mint Xfce Edition (coming from Windows) and while i am trying to port some of my programms from RAD Studio to Lazarus i noticed the same problem. When compiled, i cant see any difference between checked and unchecked buttons.       object ToolButton2: TToolButton         Left = 39         Top = 0         Hint = 'Cursor Informations'         AllowAllUp = True         AutoSize = True         Caption = 'ToolButton2'         Down = True         Grouped = True         ImageIndex = 2         ParentShowHint = False         ShowHint = True         Style = tbsCheck         OnClick = ToolButton2Click       end I have found another but with auto complete. If in the settings - windows - "single switch in the taskbar" (for the lazarus program) is activated, the cursor no longer jumps into the editor window after autocomplete. You have to click in the code window to continue typing. Edit: After some testing i found out its a problem from the linux mint color appearance. Scheme "adwaita gtk2, gtk3" does not show a difference between a checked and a unchecked button. ---------------------------------------------------------------------- mm7 · 2025-10-05 16:57 Schemes where check tool buttons have somewhat different Up/Down look:  Ambiance  GreenLaguna  McOS-XFCE-Edition-II-1  Numix  Numix-blue  oomox-materia-mm  Radiance  TraditionalOK  YaruMATE  YaruOK ---------------------------------------------------------------------- Nicole · 2025-10-06 07:07 If I am offtopic, pls just ignore it, I have neither tool button nor Ubuntu in use. I used such button's graphic sometimes in Windows. And I found, they only work, if the style is "flat" and sometimes all(!) the parent settings must be disabled. Still a bug, but maybe a short workaround, if it would be a workaround for you too. ---------------------------------------------------------------------- Zoran · 2025-10-06 09:28 Quote from: TRon on June 19, 2024, 12:37:24 amThe choices Ubuntu maintainers make are their responsibility not ours. That attitude is not helpful, when a customer of yours complains about the application's poor user interface, he (rightfully) won't be interested in your excuses and won't accept blaming the os creators for their bad choices. ---------------------------------------------------------------------- dbannon · 2025-10-08 00:16 Zoran, while I have to agree with you in principle, the fact remains that Gnome (its Gnome, not specifically Ubuntu) make changes that comply with their idea of an "uncluttered" interface with little or no regard for how well it works for end users.  I frequently find myself telling my users that the Desktop (ie Gnome) and the colour theme they are using (usually the default) is the underlying cause of their problem. Occasionally I hear back from such people who have moved to Mate, Cinnamon, XFCe etc and are thrilled with the result. The trouble is, Gnome is at an extreme end of the style spectrum and as such is a bad introduction to new Linux users. Davo