Преглед изворни кода

visionOS: use black instead of white for the mouse overlay

White is easier to see and people notice the overlay showing up when mouse input is enabled
Sam Lantinga пре 1 дан
родитељ
комит
7f7c1628cb
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/video/uikit/SDL_CurvedContentView.swift

+ 1 - 1
src/video/uikit/SDL_CurvedContentView.swift

@@ -167,7 +167,7 @@ internal struct SDL_CurvedContentView: View {
         .overlay {
             if mouseInputEnabled {
                 // This enables mouse motion events, but blocks hover location
-                Color.white
+                Color.black
                     .opacity(0.001)
                     .pointerStyle(.shape(Circle(), size: .zero))
             }