Skip to content

Commit dc3d389

Browse files
GlassySundewtkashkin
andauthored
make an option to preserve cursor-pointer (#334)
Co-authored-by: tkashkin <[email protected]>
1 parent 5312f76 commit dc3d389

30 files changed

Lines changed: 126 additions & 103 deletions

adwaita/css/_root/variables.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
/* Other global variables */
2-
32
:root
43
{
54
--adw-base-transition-curve: cubic-bezier(0.25, 0.46, 0.45, 0.94);
65

76
--adw-gameicon-radius: 4px;
87
--adw-gameicon-uninstalled-filter: grayscale(100%) opacity(50%);
8+
9+
--adw-cursor-pointer: default;
910
}

adwaita/css/chat/chat.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ html.client_chat_frame
7575
div.friendCollapseButton, div.chatTabOpenFriendsList
7676
{
7777
-webkit-app-region: no-drag;
78-
cursor: default !important;
78+
cursor: var(--adw-cursor-pointer) !important;
7979
box-sizing: border-box !important;
8080
width: 34px !important;
8181
height: 34px !important;

adwaita/css/chat/messages.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ html.client_chat_frame
5353

5454
div._2XZq-_f6npaQdAgeRzKIkz
5555
{
56-
cursor: default !important;
56+
cursor: var(--adw-cursor-pointer) !important;
5757
box-sizing: border-box !important;
5858
min-width: 150px !important;
5959
width: 0 !important;
@@ -223,7 +223,7 @@ html.client_chat_frame
223223
border-radius: 50% !important;
224224
margin: 0 !important;
225225
opacity: 0 !important;
226-
cursor: default !important;
226+
cursor: var(--adw-cursor-pointer) !important;
227227
}
228228

229229
div._1JXI4j2_xSpVK1YjyEuebr

adwaita/css/chat/sidebar.css

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ html.client_chat_frame
198198

199199
div.friendSearchClear
200200
{
201-
cursor: default !important;
201+
cursor: var(--adw-cursor-pointer) !important;
202202
width: 16px !important;
203203
height: 16px !important;
204204
right: 9px !important;
@@ -235,7 +235,7 @@ html.client_chat_frame
235235
div.searchIconButton, div.friendListButton, div.friendRequestButton
236236
{
237237
-webkit-app-region: no-drag;
238-
cursor: default !important;
238+
cursor: var(--adw-cursor-pointer) !important;
239239
box-sizing: border-box !important;
240240
width: 34px !important;
241241
height: 34px !important;
@@ -381,7 +381,7 @@ html.client_chat_frame
381381
div.currentUserAvatar
382382
{
383383
-webkit-app-region: no-drag;
384-
cursor: default !important;
384+
cursor: var(--adw-cursor-pointer) !important;
385385
box-sizing: border-box !important;
386386
width: 34px !important;
387387
height: 34px !important;
@@ -468,7 +468,7 @@ html.client_chat_frame
468468
line-height: normal !important;
469469
font-size: var(--adw-text-base-size) !important;
470470
font-weight: var(--adw-text-base-weight) !important;
471-
cursor: default !important;
471+
cursor: var(--adw-cursor-pointer) !important;
472472
}
473473

474474
&::before
@@ -501,7 +501,7 @@ html.client_chat_frame
501501
box-sizing: border-box !important;
502502
border-radius: 50% !important;
503503
margin: 0 !important;
504-
cursor: default !important;
504+
cursor: var(--adw-cursor-pointer) !important;
505505

506506
div, svg
507507
{
@@ -570,7 +570,7 @@ html.client_chat_frame
570570

571571
div.favoriteElement
572572
{
573-
cursor: default !important;
573+
cursor: var(--adw-cursor-pointer) !important;
574574
width: 36px !important;
575575
height: 36px !important;
576576
transition: width 200ms, height 200ms !important;
@@ -583,7 +583,7 @@ html.client_chat_frame
583583
width: 100% !important;
584584
height: 100% !important;
585585
transition: width 200ms, height 200ms !important;
586-
cursor: default !important;
586+
cursor: var(--adw-cursor-pointer) !important;
587587
}
588588

589589
div.ChatRoomGroupAvatar
@@ -709,7 +709,7 @@ html.client_chat_frame
709709
padding: 0 6px !important;
710710
margin: 0 calc(6px - var(--adw-scrollbar-size)) 2px 6px !important;
711711
background: none !important;
712-
cursor: default !important;
712+
cursor: var(--adw-cursor-pointer) !important;
713713
font-family: var(--adw-text-font) !important;
714714
font-size: var(--adw-text-gamelist-size) !important;
715715
font-weight: var(--adw-text-gamelist-weight) !important;
@@ -740,7 +740,7 @@ html.client_chat_frame
740740
letter-spacing: normal !important;
741741
text-transform: none !important;
742742
align-items: center !important;
743-
cursor: default !important;
743+
cursor: var(--adw-cursor-pointer) !important;
744744
}
745745

746746
span.groupCount
@@ -762,7 +762,7 @@ html.client_chat_frame
762762
margin: 3px 6px 3px 0 !important;
763763
opacity: 0.5 !important;
764764
color: inherit !important;
765-
cursor: default !important;
765+
cursor: var(--adw-cursor-pointer) !important;
766766
z-index: 1 !important;
767767

768768
svg
@@ -801,7 +801,7 @@ html.client_chat_frame
801801
top: 3px !important;
802802
opacity: 0.5 !important;
803803
color: inherit !important;
804-
cursor: default !important;
804+
cursor: var(--adw-cursor-pointer) !important;
805805
}
806806

807807
img.groupIcon, img.gameIcon
@@ -988,13 +988,13 @@ html.client_chat_frame
988988
{
989989
padding: 0 !important;
990990
margin: 0 !important;
991-
cursor: default !important;
991+
cursor: var(--adw-cursor-pointer) !important;
992992

993993
div.friendInviteButton
994994
{
995995
color: rgba(var(--adw-sidebar-fg-rgb), 0.5) !important;
996996
border-color: currentColor;
997-
cursor: default !important;
997+
cursor: var(--adw-cursor-pointer) !important;
998998

999999
svg, svg *
10001000
{

adwaita/css/dialogs/appproperties.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ div._1FyBL6obxHQ2Z2CsaV2Gbz
9797

9898
a
9999
{
100-
cursor: default !important;
100+
cursor: var(--adw-cursor-pointer) !important;
101101
border-radius: var(--adw-button-radius) !important;
102102
box-sizing: border-box !important;
103103
width: fit-content !important;
@@ -212,7 +212,7 @@ div._1FyBL6obxHQ2Z2CsaV2Gbz
212212
transition: var(--adw-button-transition) !important;
213213
margin: 0 0 1px 0 !important;
214214
position: relative !important;
215-
cursor: default !important;
215+
cursor: var(--adw-cursor-pointer) !important;
216216
align-items: center !important;
217217

218218
&:hover
@@ -403,7 +403,7 @@ div._1FyBL6obxHQ2Z2CsaV2Gbz
403403
box-shadow: none !important;
404404
border-radius: var(--adw-button-radius) !important;
405405
transition: var(--adw-button-transition) !important;
406-
cursor: default !important;
406+
cursor: var(--adw-cursor-pointer) !important;
407407

408408
&:hover
409409
{
@@ -477,7 +477,7 @@ div._1FyBL6obxHQ2Z2CsaV2Gbz
477477
text-indent: -9999px !important;
478478
font-size: 0 !important;
479479
line-height: 0 !important;
480-
cursor: default !important;
480+
cursor: var(--adw-cursor-pointer) !important;
481481

482482
&::before
483483
{
@@ -547,7 +547,7 @@ div._1FyBL6obxHQ2Z2CsaV2Gbz
547547

548548
span
549549
{
550-
cursor: default !important;
550+
cursor: var(--adw-cursor-pointer) !important;
551551
text-decoration: none !important;
552552
color: rgb(var(--adw-accent-rgb)) !important;
553553
position: relative !important;
@@ -725,7 +725,7 @@ div._1FyBL6obxHQ2Z2CsaV2Gbz
725725
background-blend-mode: overlay !important;
726726
border-radius: var(--adw-checkbox-radius) !important;
727727
box-shadow: none !important;
728-
cursor: default !important;
728+
cursor: var(--adw-cursor-pointer) !important;
729729

730730
svg
731731
{
@@ -770,7 +770,7 @@ div._1FyBL6obxHQ2Z2CsaV2Gbz
770770

771771
a._3FcoB9iwXEhr45sPG6g16h
772772
{
773-
cursor: default !important;
773+
cursor: var(--adw-cursor-pointer) !important;
774774
text-decoration: none !important;
775775

776776
/* Image */
@@ -785,7 +785,7 @@ div._1FyBL6obxHQ2Z2CsaV2Gbz
785785
border-radius: 6px !important;
786786
overflow: clip !important;
787787
transform: none !important;
788-
cursor: default !important;
788+
cursor: var(--adw-cursor-pointer) !important;
789789
}
790790
}
791791

adwaita/css/dialogs/login.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ body.DesktopUI div.VZ6x_grhNkIYJG__jEEyp div._1Qku5jMXBi5-wawzqY1kzG
140140
width: fit-content !important;
141141
margin: auto !important;
142142
padding: 4px !important;
143-
cursor: default !important;
143+
cursor: var(--adw-cursor-pointer) !important;
144144
}
145145

146146
/* Submit Button */
@@ -161,7 +161,7 @@ body.DesktopUI div.VZ6x_grhNkIYJG__jEEyp button.DjSvCZoKKfoNSmarsEcTS
161161
font-weight: 700 !important;
162162
-webkit-app-region: no-drag !important;
163163
box-shadow: none !important;
164-
cursor: default !important;
164+
cursor: var(--adw-cursor-pointer) !important;
165165
}
166166

167167
body.DesktopUI div[class*="login_Login_"] button[class*="newlogindialog_SubmitButton_"]:hover,
@@ -257,7 +257,7 @@ body.DesktopUI div.VZ6x_grhNkIYJG__jEEyp div._2Jkgs1ZwjavbwnJy76UgUm
257257
left: calc(var(--adw-windowcontrols-close-margin-left) + 6px) !important;
258258
-webkit-app-region: no-drag;
259259
z-index: 9 !important;
260-
cursor: default !important;
260+
cursor: var(--adw-cursor-pointer) !important;
261261
border-radius: var(--adw-button-radius) !important;
262262
box-sizing: border-box !important;
263263
width: 34px !important;
@@ -491,7 +491,7 @@ body.DesktopUI div.VZ6x_grhNkIYJG__jEEyp div._27A5ub1QLLIMmgywKVMg4z div._3SxgWh
491491
-webkit-app-region: no-drag !important;
492492
position: relative !important;
493493
margin: 0 0 1px 0 !important;
494-
cursor: default !important;
494+
cursor: var(--adw-cursor-pointer) !important;
495495
}
496496

497497
body.DesktopUI div[class*="login_Login_"] div[class*="login_UserChooser_"] div[class*="loginpanel_CachedUserList_"] > div:hover,
@@ -606,7 +606,7 @@ body.DesktopUI div.VZ6x_grhNkIYJG__jEEyp div._27A5ub1QLLIMmgywKVMg4z div._3SxgWh
606606
position: absolute !important;
607607
top: 8px !important;
608608
right: 12px !important;
609-
cursor: default !important;
609+
cursor: var(--adw-cursor-pointer) !important;
610610
border-radius: var(--adw-button-radius) !important;
611611
box-sizing: border-box !important;
612612
width: 34px !important;

adwaita/css/dialogs/pagedsettings/dialog.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ html.client_chat_frame div._2VY6HOZXxO2AsBaLssl0Uy
5353
margin: 0 !important;
5454
max-width: none !important;
5555
background: none !important;
56-
cursor: default !important;
56+
cursor: var(--adw-cursor-pointer) !important;
5757
font-family: var(--adw-text-font) !important;
5858
font-size: var(--adw-text-base-size) !important;
5959
font-weight: var(--adw-text-base-weight) !important;

adwaita/css/dialogs/pagedsettings/rows.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ body.DesktopUI div._2sssIwe0duyIrFvat2oXzH
3838

3939
a
4040
{
41-
cursor: default !important;
41+
cursor: var(--adw-cursor-pointer) !important;
4242
text-decoration: none !important;
4343
color: rgb(var(--adw-accent-rgb)) !important;
4444
position: relative !important;
@@ -146,7 +146,7 @@ body.DesktopUI div._2sssIwe0duyIrFvat2oXzH
146146

147147
&, div, a
148148
{
149-
cursor: default !important;
149+
cursor: var(--adw-cursor-pointer) !important;
150150
text-decoration: none !important;
151151
color: rgba(var(--adw-card-fg-rgb), var(--adw-dim-label-opacity)) !important;
152152
font-family: var(--adw-text-font) !important;
@@ -170,7 +170,7 @@ body.DesktopUI div._2sssIwe0duyIrFvat2oXzH
170170

171171
a
172172
{
173-
cursor: default !important;
173+
cursor: var(--adw-cursor-pointer) !important;
174174
text-decoration: none !important;
175175
color: rgb(var(--adw-accent-rgb)) !important;
176176
position: relative !important;
@@ -290,7 +290,7 @@ body.DesktopUI div._2sssIwe0duyIrFvat2oXzH
290290
/* Switch */
291291
div._9Ql-oVe_j8E-vsDdyVdWo
292292
{
293-
cursor: default !important;
293+
cursor: var(--adw-cursor-pointer) !important;
294294
padding: 0 !important;
295295
margin: 0 !important;
296296

@@ -325,7 +325,7 @@ body.DesktopUI div._2sssIwe0duyIrFvat2oXzH
325325
height: 24px;
326326
padding: 5px 12px;
327327
transition: var(--adw-button-transition) !important;
328-
cursor: default !important;
328+
cursor: var(--adw-cursor-pointer) !important;
329329
max-width: 250px;
330330
text-overflow: ellipsis !important;
331331
overflow: hidden;
@@ -360,7 +360,7 @@ body.DesktopUI div._2sssIwe0duyIrFvat2oXzH
360360
gap: 4px !important;
361361
align-items: center !important;
362362
justify-content: end !important;
363-
cursor: default !important;
363+
cursor: var(--adw-cursor-pointer) !important;
364364

365365
.DialogDropDown_CurrentDisplay
366366
{
@@ -510,7 +510,7 @@ body.DesktopUI div._2sssIwe0duyIrFvat2oXzH
510510
{
511511
min-width: 288px !important;
512512
box-sizing: border-box !important;
513-
cursor: default !important;
513+
cursor: var(--adw-cursor-pointer) !important;
514514
}
515515
}
516516

@@ -605,7 +605,7 @@ body.DesktopUI div._2sssIwe0duyIrFvat2oXzH
605605
flex-direction: column !important;
606606
justify-content: center !important;
607607
align-items: start !important;
608-
cursor: default !important;
608+
cursor: var(--adw-cursor-pointer) !important;
609609

610610
/* Title */
611611
&,

0 commit comments

Comments
 (0)