Skip to content

Commit 2932e39

Browse files
committed
Main menu hover performance fix (#317)
1 parent 6dc3731 commit 2932e39

5 files changed

Lines changed: 43 additions & 22 deletions

File tree

adwaita/adwaita.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@
5454

5555
:root
5656
{
57-
--adw-version: "3.9";
57+
--adw-version: "3.10";
5858
}

adwaita/css/dialogs/settings.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,13 @@ body.DesktopUI div._2sssIwe0duyIrFvat2oXzH
395395
flex-grow: 1 !important;
396396
}
397397

398+
div.W4h3bEBn32WnhtC3IKSvZ
399+
{
400+
order: 2 !important;
401+
margin-right: 28px !important;
402+
cursor: default !important;
403+
}
404+
398405
div.eKmEXJCm_lgme24Fp_HWt
399406
{
400407
&,

adwaita/css/main/headerbar/menu.css

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ div._3Z7VQ1IMk4E3HsHvrkLNgo div._3s0lkohH8wU2do0K1il28Y
1111
position: absolute !important;
1212
right: calc(var(--adw-windowcontrols-margin-right) + 6px) !important;
1313
top: 6px !important;
14+
width: 38px !important;
1415
height: 38px !important;
1516
border-radius: var(--adw-button-radius) !important;
16-
background: transparent !important;
17+
background: rgb(var(--adw-headerbar-bg-rgb)) !important;
18+
transition: width 200ms var(--adw-base-transition-curve), background 200ms var(--adw-base-transition-curve) !important;
1719

1820
/* Menu button */
1921
div._2UyOBeiSdBayaFdRa39N2O
@@ -25,9 +27,13 @@ div._3Z7VQ1IMk4E3HsHvrkLNgo div._3s0lkohH8wU2do0K1il28Y
2527
height: 34px !important;
2628
padding: 9px !important;
2729
transition: var(--adw-button-transition);
28-
display: none !important;
2930
color: rgb(var(--adw-headerbar-fg-rgb)) !important;
3031

32+
/* Keep all menu buttons visible and in the same place to prevent Steam from recalculating menu positions */
33+
position: absolute !important;
34+
top: 2px !important;
35+
right: 2px !important;
36+
3137
&:hover
3238
{
3339
background: rgba(var(--adw-headerbar-fg-rgb), var(--adw-hover-opacity)) !important;
@@ -72,38 +78,46 @@ div._3Z7VQ1IMk4E3HsHvrkLNgo div._3s0lkohH8wU2do0K1il28Y
7278
-webkit-mask-image: var(--adw-icon-menu-main);
7379
}
7480

75-
&:nth-of-type(2)::before
81+
&:nth-of-type(2)
7682
{
77-
-webkit-mask-image: var(--adw-icon-menu-view);
83+
right: 42px !important;
84+
&::before
85+
{
86+
-webkit-mask-image: var(--adw-icon-menu-view);
87+
}
7888
}
7989

80-
&:nth-of-type(3)::before
90+
&:nth-of-type(3)
8191
{
82-
-webkit-mask-image: var(--adw-icon-menu-friends);
92+
right: 82px !important;
93+
&::before
94+
{
95+
-webkit-mask-image: var(--adw-icon-menu-friends);
96+
}
8397
}
8498

85-
&:nth-of-type(4)::before
99+
&:nth-of-type(4)
86100
{
87-
-webkit-mask-image: var(--adw-icon-menu-games);
101+
right: 122px !important;
102+
&::before
103+
{
104+
-webkit-mask-image: var(--adw-icon-menu-games);
105+
}
88106
}
89107

90-
&:nth-of-type(5)::before
108+
&:nth-of-type(5)
91109
{
92-
-webkit-mask-image: var(--adw-icon-menu-help);
110+
right: 162px !important;
111+
&::before
112+
{
113+
-webkit-mask-image: var(--adw-icon-menu-help);
114+
}
93115
}
94116
}
95117

96-
&:hover,
97118
&:has(div._3rgV8pPmQvZC-01x9l-q-N)
98119
{
120+
width: 198px !important;
99121
background: rgb(var(--adw-secondary-sidebar-bg-rgb)) !important;
100122
}
101-
102-
/* Show all menu buttons on hover or when a menu is open */
103-
&:hover div._2UyOBeiSdBayaFdRa39N2O,
104-
&:has(div._3rgV8pPmQvZC-01x9l-q-N) div._2UyOBeiSdBayaFdRa39N2O,
105-
div._2UyOBeiSdBayaFdRa39N2O:first-child
106-
{
107-
display: block !important;
108-
}
109123
}

skin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Adwaita",
33
"author": "tkashkin",
44
"description": "A skin to make Steam look more like a native GNOME app",
5-
"version": "3.9",
5+
"version": "3.10",
66

77
"github": {
88
"owner": "tkashkin",

theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Adwaita",
33
"author": "tkashkin",
44
"description": "A skin to make Steam look more like a native GNOME app",
5-
"version": "3.9",
5+
"version": "3.10",
66

77
"manifest_version": 8,
88
"target": "Desktop",

0 commit comments

Comments
 (0)