tray icons fixed
This commit is contained in:
parent
28141a5bc3
commit
7426b15fb7
2 changed files with 38 additions and 18 deletions
|
|
@ -5,13 +5,15 @@ import AstalTray from "gi://AstalTray";
|
|||
const TrayItem = function ({ item }: { item: AstalTray.TrayItem }) {
|
||||
const popover = Gtk.PopoverMenu.new_from_model(item.menu_model);
|
||||
popover.insert_action_group("dbusmenu", item.action_group);
|
||||
popover.add_css_class("TrayItem");
|
||||
|
||||
return (
|
||||
<menubutton
|
||||
cursor={Gdk.Cursor.new_from_name("pointer", null)}
|
||||
icon_name={item.icon_name}
|
||||
popover={popover}
|
||||
/>
|
||||
>
|
||||
<image gicon={item.gicon} cssClasses={["Label"]} />
|
||||
</menubutton>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue