feat(ags): remove eventbox from systray because of bug
This commit is contained in:
parent
7b8d0d4b54
commit
1488f4992f
3 changed files with 51 additions and 36 deletions
|
@ -1,8 +1,8 @@
|
|||
const { SystemTray } = ags.Service;
|
||||
const { Box, Button, Icon, MenuItem } = ags.Widget;
|
||||
const { Gtk } = imports.gi;
|
||||
import { EventBox } from '../common.js';
|
||||
|
||||
// this one uses a MenuBar and shouldn't throw that destroyed widget warning
|
||||
const SysTrayItem = item => MenuItem({
|
||||
className: 'tray-item',
|
||||
child: Icon({
|
||||
|
@ -15,7 +15,7 @@ const SysTrayItem = item => MenuItem({
|
|||
}]]
|
||||
});
|
||||
|
||||
export const SysTrayModule = () => ags.Widget({
|
||||
const SysTrayModule = () => ags.Widget({
|
||||
type: Gtk.MenuBar,
|
||||
className: 'sys-tray',
|
||||
properties: [
|
||||
|
|
|
@ -11,6 +11,15 @@
|
|||
all: unset;
|
||||
padding: 0px 2px 0px 2px;
|
||||
font-size: 25px;
|
||||
border-radius: 100%;
|
||||
transition: background-color 0.5s ease-in-out,
|
||||
border 0.5s ease-in-out;
|
||||
&:hover {
|
||||
background: rgba(127, 132, 156, 0.4);
|
||||
border-radius: 100%;
|
||||
transition: background-color 0.5s ease-in-out,
|
||||
border 0.5s ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
menu {
|
||||
|
|
|
@ -138,7 +138,13 @@
|
|||
.sys-tray .tray-item {
|
||||
all: unset;
|
||||
padding: 0px 2px 0px 2px;
|
||||
font-size: 25px; }
|
||||
font-size: 25px;
|
||||
border-radius: 100%;
|
||||
transition: background-color 0.5s ease-in-out, border 0.5s ease-in-out; }
|
||||
.sys-tray .tray-item:hover {
|
||||
background: rgba(127, 132, 156, 0.4);
|
||||
border-radius: 100%;
|
||||
transition: background-color 0.5s ease-in-out, border 0.5s ease-in-out; }
|
||||
.sys-tray menu {
|
||||
background: #282a36;
|
||||
padding-top: 5px;
|
||||
|
|
Loading…
Reference in a new issue