Update themerc - #4471
Conversation
Deleted Maximized offset=4 line. This makes selecting "close" "maximized" and "minimize" buttuns more easy on maximized windows. And, by the way, this line also doesn't exist on Yaru-dark variants.
|
Hi @fran00mmcc and thanks for your PR. |
Of course! I did 3 screenshots using 3 xfwm4 themes on Devuan Excalibur, these themes comes from yaru package called yaru-themes-gtk, avaiable on my distro through the main repos, that are almost identical from Debian Trixie. I pulled this request because I noticed that the close button behaved different, depending if it was selected "yaru", the white theme, or "yaru-dark", the dark theme, both of them having 3 variants: normal, hdpi, and xhdpi. When using the white variants, close button didn't appeared as selected, which was annoying to me because when I want to close a window, I just drag the cursor to the top right corner, without thinking if the cursor is inside the "close" window, or not. When using dark variants, this didn't happen. Reading the themerc files of the xfwm4 themes I discovered white and dark themes differed on one line: the "maximized_offset=4", which makes buttons go left by 4 pixels (I think). I really don't know which is the expected behaviour, there are 3 options:
I expect the correct option, or more precisely, the expected behaviour, to be the third one, but as I almost know nothing about UI editing, and Linux in general (I just opened a Github account to talk about this), I would be glad that someone corrects me about this. Here are a few examples of this, using yaru-hdpi. Cursor is located at top right corner of the screen. Window is maximized. All screenshots are 500x500px for comparing: This is the original yaru-hdpi. Note how "close button" is NOT selected: This is yaru-hdpi with the "maximized_offset=4" line deleted. Note how "close" button is selected: This is the original yaru-dark-hdpi. Note how "close" button is selected: I'm sorry if I have said or done something wrong, I'm new on this :) |
|
Hi @fran00mmcc and sorry for the late reply. |
|
@Jupi007 ok! but, what are the benefits to use |
|
Oh, okay, I understand now. I am personally in favor of your suggested modification. |
I trust on your expertise :) |



Deleted Maximized offset=4 line. This makes selecting the "close" button more easy on maximized windows. Before, if you clicked just on the top right (or left) corner of the screen, "close" button isn't selected. Now, with the deletion of this line, yes.
Also, this changes unifies Yaru-default xfwm4 (white variant) with Yaru-dark xfwm4 (dark variant) , as this line doesn't exist on Yaru-dark xfwm4's themerc file.