[Bug 1948829] Re: AppIndicator icon looks squashed in Ubuntu focal
Add my example in below, and attach svg file for this example. I used python3 to run this example. -- import os import gi gi.require_version("Gtk", "3.0") gi.require_version('AppIndicator3', '0.1') from gi.repository import Gtk as gtk from gi.repository import AppIndicator3 as appindicator APPINDICATOR_ID = 'myappindicator' ICON_PATH = os.path.abspath('/home/x/linux-laptop.svg') def main(): indicator = appindicator.Indicator.new(APPINDICATOR_ID, ICON_PATH, appindicator.IndicatorCategory.SYSTEM_SERVICES) indicator.set_status(appindicator.IndicatorStatus.ACTIVE) indicator.set_menu(gtk.Menu()) indicator.set_label('TEST APP', '') gtk.main() if __name__ == "__main__": main() ** Attachment added: "linux-laptop.svg" https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-appindicator/+bug/1948829/+attachment/5536433/+files/linux-laptop.svg -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell-extension-appindicator in Ubuntu. https://bugs.launchpad.net/bugs/1948829 Title: AppIndicator icon looks squashed in Ubuntu focal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-appindicator/+bug/1948829/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1948829] Re: AppIndicator icon looks squashed in Ubuntu focal
thank you for your bug report, could you perhaps add your example to the report to make easier for others to try? ** Changed in: gnome-shell-extension-appindicator (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell-extension-appindicator in Ubuntu. https://bugs.launchpad.net/bugs/1948829 Title: AppIndicator icon looks squashed in Ubuntu focal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-appindicator/+bug/1948829/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1948829] Re: AppIndicator icon looks squashed in Ubuntu focal
** Description changed: Release of Ubuntu: Ubuntu 20.04 (focal) Version of gnome-shell: 3.36.9-0ubuntu0.20.04.2 + Version of gnome-shell-extension-appindicator: 33.1-0ubuntu0.20.04.2 I implemented a simple AppIndicator app using python which contains an icon and a label. The icon image is SVG file and image size is 300 x 200 in px. When running the AppIndicator app, the icon should be scaled based on AppIndicator bar height and keeps aspect ratio, but only image height is scaled and image width still keeps 300px so the icon looks squashed on AppIndicator bar. This issue was only happened if the icon image weight and height are different (eg. 300 x 200). I tried the icon image weight and height are the same (300 x 300), the issue was not reproduced. The same AppIndicator app works fine in Ubuntu 18.04 (bionic, gnome- shell version: 3.28.4-0ubuntu18.04.7), and both weight and height are scaled and keeps aspect ratio even if the icon image weight and height are different. So this issue is only happened in gnome-shell 3.36. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell-extension-appindicator in Ubuntu. https://bugs.launchpad.net/bugs/1948829 Title: AppIndicator icon looks squashed in Ubuntu focal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-appindicator/+bug/1948829/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1948829] Re: AppIndicator icon looks squashed in Ubuntu focal
** Description changed: Release of Ubuntu: Ubuntu 20.04 (focal) Version of gnome-shell: 3.36.9-0ubuntu0.20.04.2 - I implemented a simple AppIndicator in python which contains an icon and - a label. The icon image is SVG file and image size is 300x200 in px. - When running the AppIndicator app, the icon should be scaled based on - AppIndicator bar height and keeps aspect ratio, but only image height is - scaled and image width still keeps 300px so the icon looks squashed on - AppIndicator bar. + I implemented a simple AppIndicator app using python which contains an + icon and a label. The icon image is SVG file and image size is 300 x 200 + in px. When running the AppIndicator app, the icon should be scaled + based on AppIndicator bar height and keeps aspect ratio, but only image + height is scaled and image width still keeps 300px so the icon looks + squashed on AppIndicator bar. + + This issue was only happened if the icon image weight and height are + different (eg. 300 x 200). I tried the icon image weight and height are + the same (300 x 300), the issue was not reproduced. The same AppIndicator app works fine in Ubuntu 18.04 (bionic, gnome- shell version: 3.28.4-0ubuntu18.04.7), and both weight and height are - scaled and keeps aspect ratio. So this issue is only happened in gnome- - shell 3.36. + scaled and keeps aspect ratio even if the icon image weight and height + are different. So this issue is only happened in gnome-shell 3.36. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell-extension-appindicator in Ubuntu. https://bugs.launchpad.net/bugs/1948829 Title: AppIndicator icon looks squashed in Ubuntu focal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-appindicator/+bug/1948829/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1948829] Re: AppIndicator icon looks squashed in Ubuntu focal
** Tags added: focal ** Package changed: gnome-shell (Ubuntu) => gnome-shell-extension- appindicator (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1948829 Title: AppIndicator icon looks squashed in Ubuntu focal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-appindicator/+bug/1948829/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs