tray icons fixed
This commit is contained in:
parent
28141a5bc3
commit
7426b15fb7
2 changed files with 38 additions and 18 deletions
42
style.scss
42
style.scss
|
|
@ -20,19 +20,19 @@ button {
|
||||||
all: initial;
|
all: initial;
|
||||||
|
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
|
background: $base100;
|
||||||
label {
|
|
||||||
transition:
|
transition:
|
||||||
border 0.35s,
|
border 0.35s,
|
||||||
background 0.35s,
|
background 0.35s,
|
||||||
color 0.35s;
|
color 0.35s;
|
||||||
background: $base100;
|
border-radius: 8px;
|
||||||
}
|
padding: 0 8px;
|
||||||
|
}
|
||||||
|
|
||||||
label:hover {
|
button:hover {
|
||||||
background: $primary;
|
background: $primary;
|
||||||
|
label {
|
||||||
color: $base300;
|
color: $base300;
|
||||||
// border: 3px solid $primary;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -42,9 +42,6 @@ label {
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: $basecontent;
|
color: $basecontent;
|
||||||
padding: 0 12px;
|
|
||||||
// background: $base200;
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
popover > contents {
|
popover > contents {
|
||||||
|
|
@ -77,7 +74,7 @@ popover > contents {
|
||||||
.Pywal {
|
.Pywal {
|
||||||
label {
|
label {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
padding: 4px 16px 4px 10px;
|
padding: 4px 6px 4px 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -97,10 +94,10 @@ popover > contents {
|
||||||
}
|
}
|
||||||
|
|
||||||
.Tray > * {
|
.Tray > * {
|
||||||
margin: 0 6px;
|
margin: 0 2px;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
-gtk-icon-size: 20px;
|
-gtk-icon-size: 18px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -123,6 +120,27 @@ popover > contents {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.TrayMenu {
|
||||||
|
all: initial;
|
||||||
|
|
||||||
|
contents {
|
||||||
|
button {
|
||||||
|
margin: 4px;
|
||||||
|
padding: 4px;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: $base200;
|
||||||
|
transition:
|
||||||
|
border 0.5s,
|
||||||
|
background 0.5s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $base300;
|
||||||
|
background: $primary;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.CalendarMenu {
|
.CalendarMenu {
|
||||||
contents {
|
contents {
|
||||||
button {
|
button {
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,15 @@ import AstalTray from "gi://AstalTray";
|
||||||
const TrayItem = function ({ item }: { item: AstalTray.TrayItem }) {
|
const TrayItem = function ({ item }: { item: AstalTray.TrayItem }) {
|
||||||
const popover = Gtk.PopoverMenu.new_from_model(item.menu_model);
|
const popover = Gtk.PopoverMenu.new_from_model(item.menu_model);
|
||||||
popover.insert_action_group("dbusmenu", item.action_group);
|
popover.insert_action_group("dbusmenu", item.action_group);
|
||||||
|
popover.add_css_class("TrayItem");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<menubutton
|
<menubutton
|
||||||
cursor={Gdk.Cursor.new_from_name("pointer", null)}
|
cursor={Gdk.Cursor.new_from_name("pointer", null)}
|
||||||
icon_name={item.icon_name}
|
|
||||||
popover={popover}
|
popover={popover}
|
||||||
/>
|
>
|
||||||
|
<image gicon={item.gicon} cssClasses={["Label"]} />
|
||||||
|
</menubutton>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue