-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flags are not scaled correctly #11
Comments
Can you paste the image you are using? |
I can reproduce this using the icon set below: The issue can be seen in the screenshot below: The flags are rectanglular. The system try icon is made a square and therefore appears streached vertically. However, the flags in the Layout selector are not stretched. Flags are also correctly scale in the screen unlocker. |
Having the same issue; Just needed to add, if it helps, I definitely have seen this in MATE 1.6, and I'm seeing it again in MATE 1.8. MATE Panels version is 1.8.0. Looking for a solution, can't find any so far. |
Any solution in sight anytime soon? |
I found a workaround which avoids the problem for now. Simply use flags that are square in shape and you're OK. In Linux Mint, the ones under Still it would be nice to find a real solution. I looked through the code again now, and from a quick glance I am not able to spot where things are being rescaled. Clearly, the Pixbuf should keep the right shape, but something else rescales it. |
I added flags to mate-icon-theme and released 1.16.1 and 1.18.1. |
Better use svg flags in .icons/flags. |
Ok, New images are 4.3 but applet is a rectangle. But is this really a problem? |
The world is not going down, but it does not show the specified image as it "should" look. That is indeed a bug, right? :) I imagine it should be fixable (I did try before but got unexpectedly shut down). |
I just want to confirm that this is still an issue. When activating show-flags on a fresh install of ubuntu-mate 19.10, I see this: That is not how the US flag looks like. It incorrectly reshapes the 3x4 image into 1x1. I have not installed any additional flags, I believe the ones from |
I enabled showing flags by
and adding flags to ~/.icons/flags.
The flags appear and work as they should in all respects except one; the aspect ratio of the status icon in the panel is not correct. Instead of keeping the shape of the input image, it is stretched to span the entire space of the status icon. I believe this is a bug.
Btw, the icon showed at other places e.g. when unlocking the screen lock or in lightdm is correct, so this seams to be limited to libmatekbd-status.[ch].
Although I have absolutely no experience with gnome/gtk/gdk programming, I looked in the code to see if I could find anything. As far I understand, the flag image is loaded in libmatekbd-status.c:312:
Now, this should do the right thing and maintain the aspect ratio, at least according to the manual.
In my infinite ignorance, here is where I'm stuck. I would be happy very grateful for some hints and pointers on where to continue with this!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: