Pārlūkot izejas kodu

Second view logo hover zoom

Made-with: Cursor
huzaifahayat12 3 mēneši atpakaļ
vecāks
revīzija
84fa4cd5d9
2 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 1 0
      google_apps/AppTileView.swift
  2. 4 1
      google_apps/LauncherRootView.swift

+ 1 - 0
google_apps/AppTileView.swift

@@ -133,6 +133,7 @@ struct AppTileView: View {
             x: 0,
             y: isHovering ? 10 : 6
         )
+        .scaleEffect(isHovering ? 1.03 : 1.0)
         // Ensure tiles look consistent across the adaptive grid.
         .frame(maxWidth: .infinity, minHeight: 94)
         .contentShape(RoundedRectangle(cornerRadius: tileCornerRadius, style: .continuous))

+ 4 - 1
google_apps/LauncherRootView.swift

@@ -654,6 +654,8 @@ private struct PanelAppRowView: View {
         ZStack(alignment: .topTrailing) {
             HStack(spacing: 14) {
                 AppIconGlyph(app: app)
+                    .scaleEffect(isHovering ? 1.03 : 1.0)
+                    .animation(.spring(response: 0.22, dampingFraction: 0.85), value: isHovering)
                 Text(app.name)
                     .font(.system(size: 18, weight: .medium))
                     .foregroundStyle(.white.opacity(0.94))
@@ -882,7 +884,8 @@ private struct PanelQuickActionButton: View {
                 .shadow(color: .black.opacity(highlight ? 0.28 : 0.20), radius: highlight ? 12 : 8, x: 0, y: 4)
         }
         .buttonStyle(.plain)
-        .scaleEffect(highlight ? 1.08 : 1.0)
+        // Keep hover effects to highlight/shadow only (no scaling) so icons
+        // don't push outside the right edge.
         .animation(.spring(response: 0.28, dampingFraction: 0.85), value: highlight)
         .overlay(alignment: .top) {
             Text(action.title)