Starting with 4.0.0, the colour labels in the message list disappear upon redraws of the Claws Mail window. Changing to a different folder and then back brings them back. Tested on two systems with a current Arch Linux.
working fine here. Are you using wayland, perhaps?
No, this system is running on Gnome 40 and X11. Simplest sequence to reproduce: * Message list is displayed correctly with colour labels * Claws window loses focus, all messages go grey * Claws window gets focus, no colour labels applied (other formatting like bold for unread messages is applied) * Change mailboxes and back, colour labels are back This is also independent on the theme, just reverted to internal theme
I don't believe that there have been any changes to colour labels that would make any difference and, as I say, it continues to work as expected here. I note in your comment: > * Claws window loses focus, all messages go grey What causes all the messages to go grey? It's not claws-mail doing that and is not what heppens here. Something external seems to be messing with the colours.
You said: > This is also independent on the theme, just reverted to internal theme What internal theme? Claws Mail does not have an internal theme, only icon sets.
Second system with Gnome 40/wayland tested - colour labels are only visible direclty after setting them, switching forth and back to older folder does not help to get others displayed. Downgrade on this system to claws 3.18.0 (no other changes to software or settings): Colour labels work as expected.
You can expect differences between gtk2 and gtk3, this does not necessarily mean it is claws-mail. Here using KDE and X11 all works the same as always. If you had this problem both with X11 and wayland, that points the finger at gnome or your gtk3 theme... or whatever is changing those everything to grey when it loses focus (and failing to re-set).
I have the same issue and noticed other changes in the display of claws-mail around the time this started happening. Once focus is away from the window, all text (menus, folders, mails) gets greyed out. Archlinux claws-mail 4.0.0-2 xfce 4.16.0-2 xfwm 4.16.1-2 I am not sure which theme I use, how can I check that (in terms as that is relevant here)? $ echo $DISPLAY :0.0 $ echo $WAYLAND_DISPLAY so I assume my system is not using wayland.
(In reply to Frank from comment #7) Frank, what is more pertinent is whatever is changing everything to grey when it loses focus and failing to re-set the colours correctly. This could be the window manager or the theme. I cannot reproduce this behaviour or problem. The file ~/.config/gtk-3.0/settings.ini should reveal the name of the theme you are using. Look for 'gtk-theme-name'.
Thank you! ~/.config/gtk-3.0/settings.ini did not exist on my system. "gsettings get org.gnome.desktop.interface gtk-theme" said "Adwaita" as did "xfconf-query -c xsettings -p /Net/ThemeName" And I can confirm that this issue does *not* occur if I switch my XFCE theme from Adwaita to Greybird. But then claws-mail looked very chunky though, like Windows 95 (or I guess an default GTK theme?). Not nothing anything I thought it might be a missing GTK2 theme and installed aur/gtk2-theme-dust. Switching to Adwaita and back to Greybird again (to reload), claws-mail now has some nice styling again. I uninstalled gtk2-theme-dust and now doing the same switching it still looks good. I guess something was broken on my system, sorry but I don't know what. I am happy now though and maybe this helps others.
(In reply to Frank from comment #9) This is nothing to do with gtk2. This is gtk3.
As a follow up embarassement I have to admit that I did still use claws-mail 3 when I tried the above and after installing claws-mail 4 again, the problem still exists regardless of the theme. Thank you for your patience and sorry for the noise.
I just noticed this same issue, and confirm the above comments: - loss of focus greys the main window. - focus-return restores colors to folder list and displayed message; but not to the message list. No idea if the window is repainted on incoming focus by CM or something else; but whatever process repaints is ignoring the message list... until the folder is re-entered.
Created attachment 2261 [details] screenshot of the best theme I can use to see "checkboxes" Thia screenshot of the best theme I can use to see "checkboxes" is why I chose the Adwaita theme post bug 4542. It's the only theme that comes close to giving me checkboxes. Note how tiny the checkboxes are -- I cannot detect any difference between checked and unchecked boxes. Anyway, here's my /home/pfortin/.config/gtk-3.0/settings.ini: [Settings] gtk-application-prefer-dark-theme=false gtk-button-images=true gtk-cursor-theme-name=breeze_cursors gtk-cursor-theme-size=24 gtk-decoration-layout=icon:minimize,maximize,close gtk-enable-animations=true gtk-fallback-icon-theme=Adwaita gtk-font-name=DejaVu Sans, 14 gtk-icon-theme-name=Adwaita-Breeze gtk-menu-images=true gtk-modules=window-decorations-gtk-module:colorreload-gtk-module gtk-primary-button-warps-slider=true gtk-theme-name=Adwaita gtk-toolbar-style=3 Operating System: Mageia 8 KDE Plasma Version: 5.20.4 KDE Frameworks Version: 5.76.0 Qt Version: 5.15.2 Kernel Version: 5.10.75-server-1.mga8 OS Type: 64-bit Processors: 8 × Intel® Core™ i7-4710MQ CPU @ 2.50GHz Memory: 31.3 GiB of RAM Graphics Processor: Mesa DRI Intel® HD Graphics 4600
More info now that I'm watching... I have some filtering rules that color certain messages on arrival. As long as these messages remain New or Unread, they do not lose their color & bold font as Read messages do; not even when the window is dimmed. I doubt themes would be aware of New/Unread vs Read messages...
I can confirm that I have similar filtering rules in place.
(this got too confusing having two users with the same username, so I changed the other 'Paul') What you two need to do is see what else is the same for you, i.e. gtk3 theme in use, desktop, etc.
I can confirm the symptoms mentioned here on my system (Linux Mint 20.x XFCE, Claws 4.0.0), but think it's likely it is not a Claws bug (especially since I have two other separate issues related to the message list that others can't reproduce). I can specifically confirm that the loss of color labeling is 'conditional' in some way. I wasn't sure whether it was related to messages being read or not or whether it had to do with messages being color-labeled in a previous Claws session or the current Claws session. Probably related, I also had a rare occurrence (only one instance) of the folder label (in the folder list) showing there were three unread messages (which was expected because I had just downloaded a new email), but in the message list there were only two unread messages being shown, with the new email being 'invisible' (i.e. not shown anywhere at all). This was also easily 'fixed' by leaving the folder and then re-entering it.
Apparently, normal users are not allowed to re-open...? Is this bug being ignored? Simply put, upon loss of focus on CM, New and Unread messages retain their color, all others lose their color -- until the folder is re-entered.
(In reply to Pierre Fortin from comment #18) This behaviour cannot be reproduced here.
More documenting... * Click to focus Anytime focus is lost (switch to another window or desktop), colors are lost and are not restored. * Click to focus (mouse precedence) Same as Click to focus * Focus follows mouse Same as Click to focus, w/o clicking; but colors lost when mouse moves to another window; but not if mouse moves over desktop (no window under mouse) except if mouse moves over another window, then colors lost. * Focus follows mouse (mouse precedence) Same as Focus follows mouse * Focus under mouse Same as Focus follows mouse * Focus strictly under mouse Colors lost upon leaving window (onto another window, or desktop) If a drop-down menu or right-click popup menu is visible, focus is not lost; even if mouse clicked outside CM window (just dismisses menu). If mouse is over another window, CM colors lost when mouse moves out of other window. (Just system controlling who has focus, as expected.) Whether focus is lost immediately, or delayed (moving over desktop), colors are always lost upon focus loss. Regardless of focus choice, bold & color NOT lost on unread/new messages. Color-killing "other windows" includes any CM window (compose, reply, config,...) Need more investigation... Operating System: Mageia 8 KDE Plasma Version: 5.20.4 KDE Frameworks Version: 5.76.0 Qt Version: 5.15.2 Kernel Version: 5.15.6-server-2.mga8 OS Type: 64-bit Processors: 8 × Intel® Core™ i7-4710MQ CPU @ 2.50GHz Memory: 31.3 GiB of RAM Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Would it help if I can provide a VirtualBox VM where this can be reproduced?
I have the same problem. Colour labels disappear as I leave the message list to: read a mail, click outside the claws-mail window. As mentioned, the message list becomes greyed, colour labels disappear and only get back if I re-enter the folder or if I do ctrl+alt+u (update summary). New and unread messages do retain colour. This on Linux Mint 20,3 Cinnamon (x86 64) This on Manjaro 21,1 Gnome (x86 64) 3.17 works fine on both systems 3.18 and/or 4.0 have the above mentioned problem. (I tried them both) Is there any further development/information on this issue? thx
Juca: the problem is (very likely to be) the gtk3 theme you are using.
Juca: and nothing changed with colour labels between 3.17.* and 3.18.*
Success! After some investigation on Paul's comment (#23)... The problem was indeed the GTK theme. Here is what I did: System: Mint 20,3 64 Cinnamon In terminal: >GTK_THEME=<name of theme> claws-mail Did this for a few themes I had in my system, and checked if the colour labels disappeared or not. I tried several themes and it works with some, doesn't work with others. Finally, I tried to find a "working" theme that is as-similar-as-possible to the one I currently use and set claws-mail to always open with that theme. For that, this link helped me : linuxuprising.com/2019/10/how-to-use-different-gtk-3-theme-for.html Happily using CM 4.0 full colour. Hoping this is useful. Thank you all for the comments and your help.
Resolved thanks to Brad Rogers. Brad provided a clue to getting my theme to work properly: It consisted of adding "env GTK_THEME=Breeze" to claws-mail.desktop. When that didn't work for me, I tracked down ALL the .desktop files containing my userids and ?claws"... Found several (because I've run two instances of CM for over 15 years) Adding Brad's suggested env statement not only resolved unreadable highlighted text (black on dark blue); but it also resolved this issue of losing colors when CM lost focus. Here are my changes: pfortin.desktop: Exec=env GTK_THEME=Breeze /usr/local/bin/claws-mail --alternate-config-dir .claws-mail.pfortin pierre.desktop: Exec=env GTK_THEME=Breeze /usr/local/bin/claws-mail --alternate-config-dir .claws-mail.pierre 'pfortin claws-mail.desktop': # Changed "Exec=" to read: [Desktop Action ComposeMail] Exec=env GTK_THEME=Breeze /usr/local/bin/claws-mail --alternate-config-dir .claws-mail.pfortin --compose ... [Desktop Action GetMail] Exec=env GTK_THEME=Breeze /usr/local/bin/claws-mail --alternate-config-dir .claws-mail.pfortin --receive-all ... [Desktop Action SendFile] Exec=env GTK_THEME=Breeze /usr/local/bin/claws-mail --alternate-config-dir .claws-mail.pfortin --compose --attach %f ... [Desktop Entry] ... Exec=env GTK_THEME=Breeze /usr/local/bin/claws-mail --alternate-config-dir .claws-mail.pfortin %u Likewise for 'pierre claws-mail.desktop'
(In reply to Pierre Fortin from comment #26) In other words, this issue was caused by the theme.
I can confirm this in this environment and it makes no difference which GTK theme I use: KDE Plasma Version 5.24.4 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Graphics Platform X11 Claws Mail version: 4.0.0 GTK theme: Default or Emacs or Breeze or Greybird-Pro It happens any time I do anything that opens a child window in Claws Mail or when I cover the Claws Mail window by opening another program on top of it or moving another program over the top of it. When the main Claws Mail window loses focus, the message list colors go away until I leave the current folder and then open the folder again.
Here's an animated GIF that shows the behavior: https://imgur.com/a/IQ97IVY
For me, the problem was not the theme; it was that GTK_THEME was not set for whatever needs it to enable the theme to be used be CM; hence the "signpost" comment I made in the mailing list. I could use different ways to start CM; so that's why I put GTK_THEME in all those possible CM start options: - command line: probably best to use an alias... alias cm="env GTK_THEME=<theme> <path_to_CM> [<options>]" - Application Menu: *.desktop files (see comment 26 above). - CM Desktop icon: ditto As soon as that environment variable was set right before CM gets invoked, all was good... HTH
(In reply to Pierre Fortin from comment #30) There always is a GTK theme, using GTK_THEME just overrides the default theme.
My system(s): Claws 4.1.0 on Linux Mint 20.3 Xfce. I've tried a number of themes (including Greybird-Pro) and none of them have solved it for me. I'm now going to focus on desktop environment (DE), window manager (WM), etc. settings (sticking with the the Greybird-Pro theme as a fixed variable, since it's been confirmed by at least one other user of not having this problem on their system) to see if I can find one or more that fixes this on my system.
SOLVED This issue has been solved for me in Claws Mail 4.0.0 quite accidentally by mi in the Claws Mail mailing list, who contributed several CSS rules. it turns out that the "window" rule works the magic: To fix it, close Claws Mail, open the hidden ~/.config/gtk-3.0/gtk.css file in a text editor (you'll need to show hidden files to access it if you're using a GUI), add this rule to the bottom of the file (or paste it into the file if it's empty), save the file, and open Claws Mail: window { background-color: #d0d0d0; color: #404040; } Note that you may need to tweak those colors to match your GTK color scheme.
Just chiming in here with Claws-Mail 4.1.0 on GNOME 3.38 Wayland, Adwaita theme: The workaround by Little Girl works and (at least in my case) can be shortened to ``` window { color: @theme_fg_color; } ``` Before: leave focus -> message list text becomes grey -> enter focus -> message list text black, no colour labels. With CSS workaround: leave focus -> message list text stays same, no greying out -> enter focus -> message list same with colour labels ✅. As a note to the Claws devs: thank you so much for a very useful (if not the most useful) MUA. Let me also suggest that you try to provide the best out-of-box experience for your users. Fiddling around with CSS themes is not the best UX for new users, and it's probably a lot of users given Adwaita is the default GNOME theme. While I acknowledge that the bug lies somewhere with Adwaita or GTK-3, you might want to consider providing a workaround/solution in Claws proper until it's fixed in Adwaita/GTK, just for a better out-of-the-box UX and happier users :-).