This commit is contained in:
Alin
2024-04-27 19:28:33 -06:00
parent e964f9529b
commit a54371fb14
20 changed files with 591 additions and 769 deletions
+3 -2
View File
@@ -25,7 +25,7 @@ struct AppListItems: View {
let itemId = UUID()
let appInfo: AppInfo
var isSelected: Bool {
appState.appInfo.id == appInfo.id
appState.appInfo.path == appInfo.path
}
@State private var hoveredItemPath: URL? = nil
var body: some View {
@@ -39,7 +39,8 @@ struct AppListItems: View {
Image(nsImage: appIcon)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: (isHovered || isSelected) ? 32 : 30, height: (isHovered || isSelected) ? 32 : 30)
.frame(width: 30)
// .frame(width: (isHovered || isSelected) ? 32 : 30, height: (isHovered || isSelected) ? 32 : 30)
.clipShape(RoundedRectangle(cornerRadius: 8))
// .shadow(color: Color("pop").opacity(0.8), radius: isSelected ? 2 : 0)
}