Use native arrow cursors for game surfaces and controls (by Codex)

This commit is contained in:
Codex committed 2026-10-29 22:54:24 +01:00
1 parent 012612b06f
commit 6f98f894f2
6 files changed
+48 -6

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ select selectarrow {width:10dp;height:10dp;border-bottom:2dp var(--muted);border
.native-select-menu>.native-select-option {display:flex;align-items:center;justify-content:flex-start;gap:12dp;width:100%;min-height:72dp;margin:0;padding:10dp 14dp;border:0dp;border-radius:8dp;background-color:transparent;color:var(--text);text-align:left;font-size:1em;line-height:1.3;tab-index:none;}
.native-select-menu.league>.native-select-option {gap:12dp;padding:10dp 14dp;border-radius:10dp;}
.native-select-menu>.native-select-option:hover,.native-select-menu>.native-select-option.is-cursor,.native-select-menu>.native-select-option:focus {background-color:var(--select-popup-hover);}
.native-select-menu>.native-select-option:disabled {opacity:0.4;cursor:default;background-color:transparent;}
.native-select-menu>.native-select-option:disabled {opacity:0.4;cursor:arrow;background-color:transparent;}
.native-select-check {display:flex;align-items:center;justify-content:center;width:28dp;min-width:28dp;flex-shrink:0;color:var(--accent);}
.native-select-menu.league .native-select-check {width:34dp;min-width:34dp;}
.native-select-check>.image-frame {flex-shrink:0;}
+8 -3
View File
@@ -24,16 +24,16 @@ body.matchday {
#background {position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;}
#canvas {position:absolute;width:3840dp;height:2160dp;overflow:hidden;}
button,input,select,textarea {font-family:Modern;color:var(--text);font-size:32dp;}
button {padding:16dp 26dp;background-color:var(--soft);border:2dp var(--border);border-radius:14dp;cursor:pointer;text-align:center;tab-index:auto;}
button {padding:16dp 26dp;background-color:var(--soft);border:2dp var(--border);border-radius:14dp;cursor:arrow;text-align:center;tab-index:auto;}
.control-button {display:flex;align-items:center;justify-content:center;}
.control-label {display:block;}
.choice.control-button {justify-content:flex-start;}
button:hover {background-color:var(--hover);}
button:disabled,button[disabled] {opacity:0.4;cursor:default;tab-index:none;}
button:disabled,button[disabled] {opacity:0.4;cursor:arrow;tab-index:none;}
button:focus-visible,input:focus-visible,select:focus-visible {border-color:var(--accent);}
button.primary {background-color:var(--selected);border-color:var(--accent);}
input,select,textarea {padding:14dp 20dp;border:2dp var(--border);border-radius:12dp;background-color:var(--input);tab-index:auto;}
select {width:520dp;padding-right:45dp;}
select {cursor:arrow;width:520dp;padding-right:45dp;}
.row select,.toolbar select {flex:1;min-width:0;}
select selectvalue {padding-right:24dp;}
select selectarrow {width:10dp;height:10dp;margin-right:-12dp;margin-top:6dp;border-bottom:2dp var(--muted);border-right:2dp var(--muted);transform:rotate(45deg);}
@@ -157,3 +157,8 @@ body.silver .app-tile {border-color:#edf7ff99;}
.gallery-card h2 {font-size:32dp;margin-bottom:24dp;}
.gallery-card p {font-size:26dp;color:var(--muted);margin:15dp 0;}
.gallery-card button {font-size:26dp;}
label,input[type=checkbox],input[type=radio],input[type=range] {cursor:arrow;}
/* Native SDL names: game controls use arrow, editing retains the I-beam. */
input[type=text],input[type=search],input[type=number],input[type=password],textarea {cursor:text;}
a[href] {cursor:pointer;}
+1 -1
View File
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-3.0-only */
.info-bar {z-index:1000;}
.desk-card {cursor:pointer;}
.desk-card {cursor:arrow;}
.desk-card:focus-visible {border-color:var(--accent);}
.desk-card-heading {height:70dp;display:flex;align-items:center;justify-content:space-between;gap:20dp;padding:22dp 30dp 12dp;font-size:25dp;line-height:1.2;color:var(--muted);}
.desk-card-heading>span {display:block;min-width:0;flex:1;white-space:nowrap;overflow:hidden;}